Groove Posted December 8, 2012 Share Posted December 8, 2012 Hi I'm trying to edit the new products block on the left column to include a picture of the item, the product name and price only (see attached picture) I have had a look at the newproductblock.tpl but can't seem to get the pictures beside the text of each product, all 3 seems to site about the description and product names. Any help would be really welcome All the best Chris Link to comment Share on other sites More sharing options...
mohsart Posted December 8, 2012 Share Posted December 8, 2012 (edited) Try this. It's a modified blocknewproducts (I didn't find the original thread, but I didn't make it. All cred to the original poster) with a small modification by me to show the price. /Mats blocknewproducts2.zipFetching info... Edited December 8, 2012 by mohsart (see edit history) 1 Link to comment Share on other sites More sharing options...
Groove Posted December 8, 2012 Author Share Posted December 8, 2012 Thanks Mohsart I worked it out, however it'll be handy to look at this file to see it's similar to waht i worked. Once again thank. All the best Chris Link to comment Share on other sites More sharing options...
David Klhufek Posted December 20, 2012 Share Posted December 20, 2012 (edited) thx to mohsart, it's what i looking for.. any idea how to show also product description will be good.. Edited December 20, 2012 by David Klhufek (see edit history) Link to comment Share on other sites More sharing options...
Alex Simonchik BelVG Posted December 20, 2012 Share Posted December 20, 2012 (edited) Hi, David Klhufek, you can try the code below in your blocknewproducts2.tpl: {$newproduct.description_short} Regards Edited December 20, 2012 by Alexander Simonchik (see edit history) Link to comment Share on other sites More sharing options...
David Klhufek Posted December 21, 2012 Share Posted December 21, 2012 nice, i look at github.. and this working fine.. {if $newproduct.description_short}<dd class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}"><a href="{$newproduct.link}">{$newproduct.description_short|strip_tags:'UTF-8'|truncate:44:'...'}</a><br /></dd>{/if} Link to comment Share on other sites More sharing options...
Kouros Posted July 4, 2013 Share Posted July 4, 2013 thank you Mohsart! module works! Link to comment Share on other sites More sharing options...
Recommended Posts