how to add function to add_to_cart ajax button
-
Hi
I’m going when the user clicks the button Add to Shopping Cart perform a function.
Is there a hook for this?
Is there a hook for this?
screenshot attached!
Attachments:
You must be
logged in to view attached files.
Hello,
I saw the screenshot you attached.
Sorry, but we could not provide you with such a hook. Because the add to cart in Woocommerce functionality and our theme doesn’t influence.
Regards.
Xtemos Studios.
Thank you for your response
I added a code to WooCommerce to control the number of purchases of the user’s product.
The only part that I have a problem with that does not work is the part that is done by ajax.
And I felt that you wrote your own function for the theme and did not use WooCommerce functions.
Do you have a suggestion that can help me in this matter?
Regards
sajad
Hello,
Sorry, but we could not help you with this as you are asking for core file customizations and this is beyond our limitation and support policy.
Best Regards.