NO BUG: Ajax Add To Cart Archive Page not working (including mini-cart)

Bricks Version: 1.6.2
Browser: Chrome 90
OS: Windows
URL: Products – Happy Brew Kombucha and for single product page Midnight Lychee – Happy Brew Kombucha

NOTE: I have checked all other articles and none solved or pointed in the right direction.

On the shop/archive page the Add To Cart does not support Ajax despite the settings being enabled in woocommerce and on in bricks itself. For example, on single product page it works flawlessly.

Additionally, the mini cart does not work on the archive page either (item does get added to cart, number does change) which works flawlessly on the single product page.

This “refresh of the page” and jump to the top is not user friendly and is a major friction point, as the user should be able to keep scrolling and shopping :slight_smile:

Hope there is a solution and if needed can send credentials to log in

Hi Jerry,
Thanks so much for your report, and welcome to the forum!

Please see: NO BUG: Woocommerce theme style (and any other woo stuffs) not working - #4 by itchycode

Works for me without any problems at https://staging.happybrewkombucha.com/shop/
CleanShot 2023-02-20 at 15.33.01

Best regards,
timmse

Thats a shame about the Ajax for now (it also affects the Related Products) and sadly makes woocommerce element of Bricks a little naked (and it has so much more potential!)…

However for Add to cart, the menu doesn’t slide open like it does on the single product page but assumably that is because of the same issue due only single product page was done, right?

1 Like

Hi Jerry,

Thanks for your email as well. Just replied to your email.

As Stefan mentioned, Bricks only add the AJAX add to cart feature on Single Product Page’s Add To Cart button in 1.6.1

As per my email explanation, your shop page products / related products (products loop) AJAX add to cart not working well, that’s because you might add some custom code for the quantity input. By default, WooCommerce will not output quantity input in the products loop.

Your code might cause the Woo AJAX add to cart function to stop working and so the mini cart is not triggered. (IMHO, that’s the reason Woo doesn’t output the quantity field in the products loop)

Hope this explains it.

Regards,
Jenn

No worries and thank you! Found another solution for it

1 Like

From your answer it follows that the ajax add to cart button on the archives page will not work, and also the quantity field will not work? And nothing can be done about it. Did I understand it correctly?

Honestly, I’m tired of being a raw software tester and getting stumped in the minutiae in this builder :roll_eyes: I’ve spent a great deal of time and still can’t make a properly working website.

Yup… Its a great builder and I really love it, but as often is the case, woocommerce gets neglected because they are more focused on service providers…

Nonetheless, the guys at Bricksultimate implemented the solution in no time, along with a few additional woocommerce solutions…

Even though it is an additional plugin, I have to say Bricks still does it for me and I am confident that over time they’ll bring some love to the woocommerce side too… Its much needed in the wordpress space…

If Bricks wont solve your issues, I highly recommend Kadence theme and shop kit too! Or even Cwicly is making strides!

3 Likes