joansplr Posted August 14, 2023 Share Posted August 14, 2023 In my product settings I can choose individual reference numbers for my variant. But on the product pages in my shop theres always only the main reference number of the product which does not change when switching the variant. I found this in my product-details.tpl: {if isset($product.reference_to_display) && $product.reference_to_display neq ''} <div class="product-reference"> <label class="label">{l s='Reference' d='Shop.Theme.Catalog'} </label> <span itemprop="sku">{$product.reference_to_display}</span> </div> {/if} Is there any method to make the number change when switching product variant? Im using version 1.7.6 Link to comment Share on other sites More sharing options...
JBW Posted August 14, 2023 Share Posted August 14, 2023 It's working fine in classic theme and is done in Javascript event dynamically. If this is missing in your theme you should contact it's developer. Link to comment Share on other sites More sharing options...
giannisbou Posted October 18, 2023 Share Posted October 18, 2023 Just solve this problem... from this path classic(theme)/templates/catalog/_partials product-details.tpl I copied the <div id="product-details"> and place it like this <div id="product-details"> {if isset($product.reference_to_display) && $product.reference_to_display neq ''} <div class="product-reference"> <label class="label">{l s='Reference' d='Shop.Theme.Catalog'} </label> <span>{$product.reference_to_display}</span> </div> {/if} </div> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now