Dear Sir,
Good day to you.
I would like to customize the behavior of the out-of-stock products on my website. Currently, when a user clicks the “Add to Cart” button on a product that is out of stock, a default popup appears with the message:
“Sorry, this product is unavailable. Please choose a different combination.”
Instead, I want to replace this with a custom popup that shows the following:
Message for Out of Stock Products:
“Product is not in stock. Please submit your inquiry.”
👉 Along with this message, an inquiry form should also appear in the popup for the user to fill in.
Confirmation After Inquiry Submission:
Once the form is submitted, the system should:
Display a confirmation message:
“We have received your request. You will receive a response shortly. Thank you for contacting SSTC. Contact No: 111111.”
Send a confirmation email to the requester, acknowledging receipt of the inquiry and including the inquiry details.
🔗 Example product (out of stock): https://safeandsecureksa.com/product/dakar/
Can you please guide me on how to achieve this functionality?
Thank you.