Jump to content
fredalva

Ean13 code not display

Recommended Posts

Hello, 

I wan to report  in products page with Ean13 code and no declinaison.Ean code is not displaying product detail page.

Someone can confirm that is bug? I am on last 1.7.2 presatshop release.

Thanks


Fred

Share this post


Link to post
Share on other sites

You should edit file product_details.tpl in templates/catalog/_partials on your theme catalog 

copythis:

{block name='references'}
      
      {if isset($product.ean13)} 
        <section class="product-features" {if empty($product.ean13) || !$product.ean13} style="display: none;"}{/if}>
          <h3>{l s='Specific References' d='Shop.Theme.Catalog'}</h3>
            <dl class="data-sheet">
              {foreach from=$product.ean13 item=reference }
                <dt class="name">EAN13</dt>
                <dd class="value">{$reference}</dd>
              {/foreach}
            </dl>
        </section>
  {/if}
          
    {/block}


If product has combinations the EAN code will be displayed by default. 

For presta 1.7.2

 

  • Like 2

Share this post


Link to post
Share on other sites

Hi,

1.7.6.1

1.5 years later, already the same bug

{block name='references'}
    {if empty($product.specific_references)}
      <section class="product-features">
        <p class="h6">{l s='Specific References' d='Shop.Theme.Catalog'}</p>
          <dl class="data-sheet">
          	{if isset($product.ean13)}
            <dt class="name">EAN13</dt>
            <dd class="value">{$product.ean13}</dd>
            {/if}
            {*Your special code here*}
          </dl>
      </section>
    {/if}
  {/block}

 

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More