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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

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