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?
You must be logged in
to view attached files.