Jump to content

EAN + product code at product-list.tpl


Recommended Posts

On the product page (product.tpl) product codes and EAN13 are written this way:

<p id="product_reference" {if isset($groups) OR !$product->reference}style="display: block;"{/if}><label for="product_reference">{l s='Reference :'} </label><span class="editable">{$product->reference|escape:'htmlall':'UTF-8'}</span></p>
	  <p id="product_reference" {if isset($groups) OR !$product->ean13}style="display: block;"{/if}><label for="product_reference">{l s='EAN :'} </label><span class="editable">{$product->ean13|escape:'htmlall':'UTF-8'}</span></p>

 

But when I tried the same thing on the list of items (product-list.tpl) - where I need to get it also product codes and EAN13 are written only this way:

Reference:
EAN:

 

Is somebody here who can help me please? Thanks in advance!

Link to comment
Share on other sites

product ID + EAN in product_list.tpl

 

<p id="product_reference" {$product.id_product|truncate:35:'...'|escape:'htmlall':'UTF-8'}style="display: block;"><label for="product_reference">{l s='Kód zboží :'} </label><span class="editable">{$product.id_product|truncate:35:'...'|escape:'htmlall':'UTF-8'}</span></p>	
  <p id="product_reference" {$product.ean13|truncate:35:'...'|escape:'htmlall':'UTF-8'}style="display: block;"><label for="product_reference">{l s='EAN :'} </label><span class="editable">{$product.ean13|truncate:35:'...'|escape:'htmlall':'UTF-8'}</span></p>

Link to comment
Share on other sites

  • 2 years later...
×
×
  • Create New...