Hello, there is a problem if there are two “Buy/Add to cart” buttons on the same page/product. Since my product pages are fairly long, I add the tag {j2store}XX|cart{/j2store} at the top of the page to the default buy button (at the bottom of the page). However, on product pages that offer variants, if I select a variant from the first button (the one at the top of the page) and then scroll to the bottom, where I find the default button, and select another variant, the price displayed remains that of the first choice. If I add the product to the cart, the correct price is calculated, but I think that this failure to update the displayed price may cause confusion for the customer.
If, on the other hand, I immediately select the variant in the default button at the bottom of the page, it does not show any price.
You can check it here: https://www.squilibri.it/catalogo/crinali/erica-boschiero-un-posto-sulla-terra
How can I avoid this problem?
Thank you
#646 Variants issue
This is a public ticket
Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Latest post by Olivier on Sunday, 25 January 2026 18:44 UTC
Thursday, 22 January 2026 15:01 UTC
Sunday, 25 January 2026 18:44 UTC
Hello Antonio,
yes, this is a problem because the 2 forms do have the same id number (an other fields on the form as well). The form ids are created from the product id. That is why the scripts get 'confused'.
For an immediate fix, I would suggest:
instead of having the second shortcode at the bottom, add a button 'Acquista' that slides the visitors back to the top of the page where they can purchase.
Olivier.
Growing Together
Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.
Stay Updated
Subscribe for free and be the first to know about the latest features, updates, and new additions.