Please submit a private ticket if you need to share sensitive information, such as license details and admin credentials.

Okay
  Public Ticket #3672391
Ajax add to card problem
Open

Comments

  • Łukasz started the conversation
    Problem adding composite product to cart in WooCommerce (Important.socom.pl)

    Problem description:

    On the page https://important.socom.pl/wdf/produkt/woda-staropolska-zestaw-3-palet/ there is a problem adding the composite product "Woda Staropolska Zestaw 3 Palet" to the cart. Instead of the expected AJAX action, which adds the product to the cart without reloading the page and opens the side cart panel, the page reloads completely. Other products on the site work correctly, using the AJAX action. The problem occurs despite using the WooCommerce Composite Products plugin, which should allow for the correct addition of composite products.

    Steps to reproduce the problem:

    1. Open the product page: https://important.socom.pl/wdf/produkt/woda-staropolska-zestaw-3-palet/
    2. Select any options for the composite product (e.g., quantity, variants).
    3. Click the "Add to cart" button.
    4. Observe that the page reloads instead of adding the product to the cart using the AJAX action and opening the side cart panel.

    Additional information:

    • The WooCommerce Composite Products plugin is installed and active.
    • The AJAX action works correctly for other products on the site.
    • The problem occurs only with the composite product "Woda Staropolska Zestaw 3 Palet".

    Goal:

    I would like composite products, such as "Woda Staropolska Zestaw 3 Palet", to be correctly added to the cart using the AJAX action, without reloading the page, and for the side cart panel to open, as it does for other products on the site.

    Request for help:

    Please help me solve this problem. What steps can I take to make composite products work correctly with the AJAX action and the side cart panel?

  •  1,226
    Dustin replied

    Hi Łukasz,

    Please try the free AJAX Add to Cart plugin from us: https://wordpress.org/plugins/wpc-ajax-add-to-cart/

    It works fine with other WPC plugins.

    Best regards,
    Dustin

  • Łukasz replied

    Dear Dustin,

    I am experiencing an issue after attempting to install the WP Clever plugin on my website. Here's a detailed description of the problem along with the steps that lead to it:

    1. Installation: I successfully installed the WP Clever plugin.
    2. Initial Action: I tried to use the WPC Ajax add to cart feature.
    3. Issue Observed: When the 'Add to Cart' action is initiated via WPC Ajax, it seems to function correctly at first.
    4. Subsequent Problem: Immediately following the Ajax action, the page unexpectedly reloads.
    5. Result: Both actions (Ajax add to cart and page reload) occur sequentially, which seems unintended and affects the user experience.

      https://wodadlafirmy.pl/produkt/woda-staropolska-zestaw-3-palet/

    Could you please assist in resolving this issue, as it appears there might be a conflict or a bug causing the page to reload after the Ajax action completes? Any guidance on how to fix this would be greatly appreciated.

    Thank you for your assistance.

    Best regards,

  •  1,226
    Dustin replied

    I see that the plugin Oxy Ultimate Woo has an AJAX add-to-cart feature. Please find and turn it off.

    4222983968.png


    Best regards,
    Dustin

  • Łukasz replied

    I understand that the plugin conflicts with Ajax add to cart, but it works across the entire store and is integrated with other cart functionalities, so I cannot disable it. As I mentioned, it also works with the WooCommerce Composite plugin, which suggests that something in the structure of Smart Composite is causing the plugin not to perform the expected actions. Is there any way to identify the location in the Ultimate script where I need to change the logic to accommodate the structure of composite products?