Support » Plugin: WooCommerce Better Usability » Ajax no working on product pages (PRO)

  • Resolved cfonzy

    (@fighterstyle)


    I just purchased PRO and ajax is not working on simple product pages. If I enable Ajax on archive pages (WooCommerce setting) ajax works but it only adds 1 quantity regardless of the number in the quantity field.

    These are the only settings my using right now:

    X Show item quantity as select instead of numeric field
    X Enable AJAX add to cart on product page (simple products only)
    X Synchronize quantity automatically with minicart

    I have the latest version of woocommerce 3.5.5, wordpress 5.1 and WBU PRO 1.0.23

    Please help. I need ajax and quantity field working.

    Thank you!

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • cfonzy

    (@fighterstyle)

    I wanted to add that I have tested this with all plugins disabled in a staging environment and I get the same results. I’m using Astra theme and elementor page builder.

    Plugin Author moiseh

    (@moiseh)

    Hello!

    I’m working in this problem, other users related same. It affects the free version also.

    If it’s urgent, you can try make a quick fix now enabling this option:
    “Always enqueue assets for better compatibility (eg. custom product pages)”

    And, in your theme functions.php, add this code:
    add_filter('wbu_is_shop_loop', function(){ return is_page('a-la-carte'); });

    Or
    add_filter('wbu_is_shop_loop', function(){ return true; });

    Regards

    cfonzy

    (@fighterstyle)

    I was able to get quantity field AJAX working with “Always enqueue assets for better compatibility (eg. custom product pages)” enabled.

    The quantity field now says “please wait” while its adding products to cart.

    However, the Add to Cart button AJAX is not working even with function code added. Tried both codes you suggested. Still refreshes the page to add products to cart.

    Will there be a fix released soon?

    Thank you for your help.

    Plugin Author moiseh

    (@moiseh)

    Ok, let’s try do this so i can continue my testings in your site:

    – Ensure this option in WBU is enabled:
    – Allow to change product quantity on shop page (simple products)

    – Enable “Ajax on archive pages” (WooCommerce setting) – Keep this enabled also in the case it not work so i can make a test later

    – Update the PRO plugin through “Update” button in plugins tab (to fix a small issue i found in shop loop detection).

    It’s possible i will need to do more tweaks after this steps to make it works.

    Sorry for this but in this forum is not allowed to talk about the PRO version so if it’s possible please send me next messages to moiseh [at] gmail [dot] com or with the “Get support” button in plugin.

    Thanks

    cfonzy

    (@fighterstyle)

    I sent you an email from my personal email address.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Ajax no working on product pages (PRO)’ is closed to new replies.