• Resolved denialdesign

    (@denialdesign)


    The basket is emptying everytime I visit a variable product page. If I add 3 or 4 simple products to the cart then click on a variable product to select the options the basket is emptied. I don’t even have to interact with the variable product page, the basket just empties straight away. I’ve tried disabling the PayPal Payments plugin and the basket stays populated as expected.

    I’m running the latest version of WordPress, WooCommerce and the PayPal plugin.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Krystian Syde

    (@inpsydekrystian)

    Hello @denialdesign

    I’m also not sure if I’m fully understanding the issue, or if I’m missing something, as you can see here, I’m on a variable product page with a couple of simple products still in the cart.

    I also tried to reproduce the issue in my environment. I added three simple products to the cart, then visited a variable product page, and the cart remained intact, as expected. You can see the result here.

    If you can reproduce it, then give a try conflict test. The fact that disabling PayPal Payments makes the issue disappear could mean it’s contributing somehow, but I strongly suspect there’s another plugin in play as well.

    To properly isolate this, please:

    1. Disable all other plugins except WooCommerce and PayPal Payments.
    2. Try to reproduce the problem
    3. If the cart stays populated, start enabling your other plugins in portions or one by one, and keep testing.
    4. Eventually, one of them should trigger the issue when combined with PayPal Payments.

    Let me know once you narrow it down, and I’ll gladly help with the next steps.

    Kind Regards,
    Krystian

    Thread Starter denialdesign

    (@denialdesign)

    Sorry. I found the issue. I had the Cart Simulation disabled with this code in my functions file.

    add_filter( 'woocommerce_paypal_payments_simulate_cart_enabled', '__return_false' );
    add_filter( 'woocommerce_paypal_payments_simulate_cart_prevent_updates', '__return_false' );

    Plugin Support Krystian Syde

    (@inpsydekrystian)

    Hello @denialdesign

    Glad it’s solved, wish you a great weekend.

    Kind regards,
    Krystian

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Adding a Variable Product empties the cart with PayPal pluginactive’ is closed to new replies.