@maykato thanks for the reply
I need to replace the JS alert box, not the text on it. I want to show the bootstrap modal instead of the alert box to make it beautiful. I tried the above snippet but it only changed the text.
Hi @waqasgoraya,
This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.
Take a look at these threads for more input on how to change the JS alert box to bootstrap modal:
– https://github.com/woocommerce/woocommerce/issues/20428
– https://stackoverflow.com/questions/50367310/woocommerce-product-variation-select-alert-box-customization
– https://stackoverflow.com/questions/53432561/how-to-set-bootstrap-modal-as-confirm-dialog
– https://stackoverflow.com/questions/26199642/change-js-confirm-to-a-twitter-bootstrap-modal
You can also visit the WooCommerce Facebook Community group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.
Cheers.
Hi there,
We’ve not seen any activity on this thread for a while, so I’m marking it as resolved.
Hopefully, you were able to find a solution and the above resources were helpful. If you have further questions, please feel free to open a new topic.
Thanks.