If I use an add to cart element on a single page (not product page) inside a query loop, when I add the product to the cart I get redirected to the product page instead.
The issue is visible on the first bundle at the bottom of the page, second ATC element. The others are made with Bricks ultimate ATC element, but the result is still the same.
iāll reply here just because this thread is the newest.
iāve just found plugins enabling the ajax thing both in the query loop and in the single product pages, and some are free, preventing the loading of both pages (quite handy). i canāt speak php, but they work.
BUT if we are able to make it work without a plugin iāll be very happy. the ādisable the loopā is not clear anyway, because the loop is exactly what we need if we want to populate a product list designed by hand. if your solution works in every page, but not in a query loop, the issue is sadly still live and kickin.
I resolved this via my add-to-cart element. He is using my add-on also. Those two options are in my element. I setup the options and all are working as per his requirement.
I am not talking about the Bricks query loop builder. My element has the option āAre you using inside the Bricks query loopā. It is an on/off option and I did some work based on this option. Thatās it.
iād like to try your package, you got some interesting stuff. but itās now a subscription, and itās not cheap. i missed the ltd maybe. 100 one time seems nice, 130 every year, well, if i found 130 on the ground count me in. for a year.
i also messaged your team days ago, asking if your add to cart button actually works like i need, but no answers yet.
anyway: i think that the whole topic here, and in my original post, was about to understand if the current behavior is a bug or not, and how to fix it.
is it normal that if you put the add to cart (default) button in a query loop, it loads the product page?
do we have to fix it subscribing to a whole package, from you or from other developers?
Sorry! Maybe I missed your email or I did not get it.
Yes. I changed the price plan and am going for a yearly subscription. No extra discount option(BF/CM deal). Users will get a 30% renewal discount only.
It was not a bug. Element is not configured the right way. If you want, then the element can go to the product page. There has an option for redirecting URL. You can set any redirecting URL(like cart/checkout page) there.
so, with the module in your pack, i can set it to not reload the single product page or the shop page or any page with a query loop and the button in it, right? i can set any quantity, add them to cart, without loading the single product page? am i correct?
iām trying ultimate too, inside a dynamic lightbox from bricks extras. the act button does not work properly. iāve emailed you, and also the guys at extras. they said:
Iāve realised youāre using a different plugin for your add to cart, not Bricks defaults.
I took a quick look at the JS from that element, and found a function called ābuatcdoajax()ā that seems to add the functionality that is needed on page load, you may need to confirm with the developer, but from our end any code can be run when a lightbox is opened using the āx_lightbox:openā event. (mentioned in the docs)
So putting these together, adding this JS to your pageā¦
This will run that function any time the lightbox is open, so that specific functionality should work correctly.
i have issues about the + and - button not clickable, and i cannot customize the act button as i want, for example i canāt set a margin between the quantity and the button.