Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Soft79

    (@josk79)

    Please try with a default theme like Storefront.

    Can you send me an url and instructions to reproduce the issue on your store?

    Thread Starter ConceptJulian

    (@julianali)

    Hi Soft79,

    here is the url: https://tinyurl.com/jftwmyl

    add some items to reach an order value of just under 25 euro, then add a cross sell product in the cart, and see the error for yourself.

    Thread Starter ConceptJulian

    (@julianali)

    Hi Soft79,

    I have manually added this to my functions.php (in the child theme):

    add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 999 );

    This adds an add to cart button to all products, also on the cross sells products in the cart itself.

    Could this be the problem causing the discount not being applied correctly when adding cross sells to the cart?

    Plugin Author Soft79

    (@josk79)

    Why do you need to add that action? The add to cart button should be there by default.
    What happens if you run it on the StoreFront theme?
    Any errors in debug.log (if you enable WP_DEBUG)?

    Thread Starter ConceptJulian

    (@julianali)

    I use the Divi theme from ElegantThemes. I have tested it with the StoreFront themes, it does work there!

    So there is no add to cart button by default in the Divi theme, they said you have to add this action to your functions.php to add the add to cart button:
    add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 999 );

    I think it’s strange that it does work with other products in the shop, but not with cross sells in the cart itself. Could this have something to do with AJAX? Should the add to cart button have AJAX, to work with the “WooCommerce Extended Coupon Features” plugin.

    I don’t have enough knowledge of this to get it solved.

    Plugin Author Soft79

    (@josk79)

    AJAX is working fine on the frontend, but the new subtotal part does not have the new values added. Very strange.

    Any errors in debug.log (if you enable WP_DEBUG)?

    Thread Starter ConceptJulian

    (@julianali)

    How can i check this:

    Any errors in debug.log (if you enable WP_DEBUG)?

    Plugin Author Soft79

    (@josk79)

    Problem solved. There was an issue with a functions.php to hide the apply coupon form.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Error with Cross Sells in Cart’ is closed to new replies.