Jump to content

How to add reference code/text?


Recommended Posts

Hi everyone...

 

I have been pulling my hair of my head the last couple of days to fix this little problem i have, and therefore i hope someone can help me out abit..

 

I want to add the reference code/text under the product name in the product list.

 

i have an online candy/ chocolate store, and there i want the product list to look the like:

 

Snickers (product name)

48 x 51g  (reference text /code) --- this is want i want added..

£12.95 (price)

 

 

Have is a photo, to give you are better idea, what i am talking about...

Hope some kan help me out abit.... thanks..

 

 

 

post-797730-0-10953200-1413405144_thumb.jpg

Link to comment
Share on other sites

Hello

 

Not sure if this is what your after:

http://screencast.com/t/tpslBv6yB2U8

 

If so then go to:

public_html/Your Shop/themes/default-bootstrap/product-list.tpl

 

And add:

<p>{$product.reference}</p>

 

<div class="right-block">
 
<h5 itemprop="name">
{if isset($product.pack_quantity) && $product.pack_quantity}{$product.pack_quantity|intval|cat:' x '}{/if}
 
 
 
<a class="product-name" href="{$product.link|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}" itemprop="url" >
{$product.name|truncate:45:'...'|escape:'html':'UTF-8'}
 
<p>{$product.reference}</p>
 
</a>
 
</h5>
{hook h='displayProductListReviews' product=$product}

 

<p class="product-desc" itemprop="description">
 
Before
After
 
Using PS 1.6.0.5 default theme
 
Paul
Edited by Paulito (see edit history)
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...