Home Forums WoodMart support forum Add additional product to cart

Add additional product to cart

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

    matevz.golavsek
    Participant

    Hey,

    so i’m looking for a help, to add additional product in cart. So i have a checkbox on a Product page with other product id and if it is checked i would like to add both products to cart. I’m using AJAX add to cart theme functionality.

    i tried to use something like add_action('woocommerce_add_to_cart', 'add_upsell_to_cart'); but it seems like the function (add_upsell_to_cart) is not ran.

    Do you have any idea, if it is possible and how?

    Thanks!

    Attachments:
    You must be logged in to view attached files.
    #455415

    Artem Temos
    Keymaster

    Hello,

    Thank you so much for purchasing our theme and contacting our support center.

    Your question requires additional code customization which is out of our theme support scope. We would be glad to help you but we don’t have a working instruction for this.

    Kind Regards
    XTemos Studio

    #455951

    matevz.golavsek
    Participant

    Thanks for reply.

    Ok, i have noticed that it only doesn’t ran when AJAX Add to cart is on in theme settings. Is there possibility or action that runs on when add to cart is clicked with Ajax?

    #455999

    Artem Temos
    Keymaster

    Unfortunately, we don’t have a fix for this. Probably, this code is not made to work with AJAX and needs some extra hooks or something.

    Kind Regards

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