- Priority: 0
- Status: Waiting on customer
- Theme: Alysum
-
Assigned To:
Fred
- Private: No
- Open Date: 01.06.26, 10:49
- Opened by: Ernesto Escribano Cabezuelo
Ticket #26517 - Product variant changes not updating when Smarty cache is enabled
When Smarty cache is enabled in PrestaShop, changing product variants (combinations) on the product page does not trigger dynamic updates of product information. The page remains static and does not reflect the selected variant’s data.
The following elements do NOT update when changing variants with cache enabled:
Add to cart button - Does not enable/disable based on stock availability, stock message - Does not update to show availability status, any other variant-specific data does not update
PrestaShop Version: 9.1.0
Last Theme: Version
With Smarty cache disabled, everything works correctly
Best regards.
Comments
Hi, Ernesto Escribano Cabezuelo.
Could you please give me a link to a product page where I could see the issue?
Hi.
Already solved
The problem is with crosseling products in product page, with smarty cache activated.
The fix:
Module pkelements file→ pkminiaturebuttons.tpl
Line 26, change this → {assign var='blockClasses' value=['product-actions', 'elementor-pm-buttons']}
For this:
{assign var='blockClasses' value=['elementor-pm-buttons']}
It's a conflict between the cross selling "product-actions" class and the variant class.
After removing the "product-actions" class from miniature, changing variants works again.
Hi, Ernesto Escribano Cabezuelo.
I really appreciate your work. I'm going to apply that fix in the next theme update.