plutten22 Posted September 1, 2014 Share Posted September 1, 2014 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 Link to comment Share on other sites More sharing options...
vekia Posted September 1, 2014 Share Posted September 1, 2014 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 More sharing options...
plutten22 Posted September 1, 2014 Author Share Posted September 1, 2014 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 More sharing options...
vekia Posted September 1, 2014 Share Posted September 1, 2014 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 ... 1 Link to comment Share on other sites More sharing options...
plutten22 Posted September 3, 2014 Author Share Posted September 3, 2014 Hi Vekia Works perfect / thank you. Also, what is the code to get a button or text with (view) in color blue to get transported to product page. Plutten22 Link to comment Share on other sites More sharing options...
vekia Posted September 3, 2014 Share Posted September 3, 2014 <a href="" class="button"></a> create button with <a> method, with class="button" Link to comment Share on other sites More sharing options...
dias11 Posted September 3, 2014 Share Posted September 3, 2014 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 Link to comment Share on other sites More sharing options...
plutten22 Posted September 3, 2014 Author Share Posted September 3, 2014 Hi Vekia Thank you. I put this code: <a class="button" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{l s='View'}">{l s='View'}</a> But how can i get the view button in center under the description text on all products. Plutten22 Link to comment Share on other sites More sharing options...
plutten22 Posted September 3, 2014 Author Share Posted September 3, 2014 Hi Vekia You can see my page att : http://www.cykelstaden.se/index.php?id_category=6&controller=category plutten Link to comment Share on other sites More sharing options...
vekia Posted September 4, 2014 Share Posted September 4, 2014 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 Link to comment Share on other sites More sharing options...
dias11 Posted September 4, 2014 Share Posted September 4, 2014 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 More sharing options...
plutten22 Posted September 4, 2014 Author Share Posted September 4, 2014 Hi Vekia HeHe. Yes I solved the problem. Thank you. But how can i center the normal prise 9995,00 kr Plutten22 Link to comment Share on other sites More sharing options...
mickeyboy1 Posted September 4, 2014 Share Posted September 4, 2014 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 More sharing options...
plutten22 Posted September 5, 2014 Author Share Posted September 5, 2014 Hi Vekia. Thank you for your help. Im going to buy a pop up module from you soon. Have a nice weekend Plutten22 Link to comment Share on other sites More sharing options...
vekia Posted September 5, 2014 Share Posted September 5, 2014 wow, thank you if you will need any additional assistance - just let me know Link to comment Share on other sites More sharing options...
plutten22 Posted September 9, 2014 Author Share Posted September 9, 2014 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 More sharing options...
vekia Posted September 10, 2014 Share Posted September 10, 2014 hello it is possible but in this case - with custom hook only, or if you're on 1.6 default theme with hooks like: displayProductListFunctionalButtons displayProductPriceBlock (add them in html box pro) Link to comment Share on other sites More sharing options...
Recommended Posts