Jump to content

Short description on my product page


Recommended Posts

Hi

 

I have prestashop 1.5.6.0

 

I have changed my product list page to grid view with help from mypresta.eu tutorial.

 

But i would like to have short description under product name and make product name

smaller.

 

I would also like to make the picture a little bigger if possible.

 

Is this possible and can anyone help me with this.

 

I attach a picture so you will understand.

 

Thanks

 

plutten22

post-718236-0-47499700-1409568432_thumb.jpg

Link to comment
Share on other sites

to change product image smaller go to preferences > images and change image size for thumbnail named: home_default

to display short description in product-list.tpl, somewhere in {foreach} loop inside <li> element use this {$product.description_short}

Link to comment
Share on other sites

Hi vekia.

 

I used {$product.description_short} in product-list.tpl as you said and it works, but in some places i get

to much text.

 

Can i limit the amount of text that will be shown ?

 

And how can i make the produkt name smaller.

 

Thanks / plutten22

Link to comment
Share on other sites

sure you can limit text

you can use variable with |truncate modifier:

 

{$product.description_short|truncate|truncate:245:'...'}

code above means that description short will be cutted off after 245 code, and if it will be cutted, script will add three dots ...

  • Like 1
Link to comment
Share on other sites

Hi Vekia,

{$product.description_short} in product-list.tpl

works fine only when i refresh my page.

When switching between grid and list the product description dissapears.

Toy can see my page at 

 

http://e-dj.gr/25-dvdcd-decks-players

 

Any ideas?

Thanks

 

can you show a part of code with this new variable you added?

everything depends on this, i bet that you placed it only for design related to list view

Hi Vekia

 

You can see my page att : http://www.cykelstaden.se/index.php?id_category=6&controller=category

 

plutten

it's centered i think  ;)

xfd0bZS.png

Link to comment
Share on other sites

Hi Vekia,

I have place {$product.description_short}  at  in product-list.tpl as you suggested 

 

--can you show a part of code with this new variable you added?

I think i can see all the part of the code, i mean i see what i expect to see (i dont fully understand your quuestion)

 

--everything depends on this, i bet that you placed it only for design related to list view

Yes i have made this modification for design perposes.

The problem is that when i switch between grid and list view it doesnt work. I order to work a pape refresh must be done. I think that i have to change something else too in order to force the code to refresh the page or keep the information.

 

Best regards 

Link to comment
Share on other sites

Hi Vekia

 

HeHe.  :)   Yes I solved the problem. Thank you.

 

But how can i center the normal prise  9995,00 kr

 

Plutten22

Look in product_list.css you will find

ul#product_list li span.old_price_productlist {
    display: block;
    font-size: 12px;
    height: 12px;
    padding-bottom: 10px;
    text-align: right;
    text-decoration: line-through;
}

change text-align: right to text-align: center

Link to comment
Share on other sites

Hi Vekia.

 

I bought (pop up) module from you yesterday. very nice thanks.

 

I have have also before bought (html pro) from you and i have a question about this.

 

I would like to put a ikon under the product picture on product list page.

 

Is it possible to do this with html pro.

 

Plutten22

Link to comment
Share on other sites

×
×
  • Create New...