Home Forums WoodMart support forum how to add function to add_to_cart ajax button

how to add function to add_to_cart ajax button

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #246031

    sajadsaadat
    Participant

    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.
    #246088

    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.

    #246095

    sajadsaadat
    Participant

    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

    #246109

    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.

Viewing 4 posts - 1 through 4 (of 4 total)