Jump to content

Variants don't show their individual reference numbers


joansplr

Recommended Posts

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

  • 2 months later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...