Octahedron Posted August 23, 2009 Share Posted August 23, 2009 Hey,is it possible to amend the New Products block and make it display more then 2 thumbnail pictures instead of product names written below?Please see the pictures I have attached to get the idea.Cheers! Link to comment Share on other sites More sharing options...
thriftybeatnik.co.uk Posted August 23, 2009 Share Posted August 23, 2009 I too would like this but I'm concerend as after the upgrade my new products don't appear in 'new products' Link to comment Share on other sites More sharing options...
Octahedron Posted August 23, 2009 Author Share Posted August 23, 2009 I have found the solution! :-)You need to edit blocknewproducts.tpl file and after those lines of code: getImageLink($new_products.0.link_rewrite, $new_products.0.id_image, 'medium')}" alt="{$new_products.0.legend|escape:htmlall:'UTF-8'}" /> {if $new_products|@count > 1}getImageLink($new_products.1.link_rewrite, $new_products.1.id_image, 'medium')}" height="{$mediumSize.height}" width="{$mediumSize.width}" alt="{$new_products.1.legend|escape:htmlall:'UTF-8'}" /> add another pair(s) of thumbnail images: getImageLink($new_products.2.link_rewrite, $new_products.2.id_image, 'medium')}" height="{$mediumSize.height}" width="{$mediumSize.width}" alt="{$new_products.2.legend|escape:htmlall:'UTF-8'}" /> getImageLink($new_products.3.link_rewrite, $new_products.3.id_image, 'medium')}" height="{$mediumSize.height}" width="{$mediumSize.width}" alt="{$new_products.3.legend|escape:htmlall:'UTF-8'}" /> You can add as many rows of thumbnails as you like but need to remember to change the each new product number/id in:$new_products.NUMBER.link$new_products.NUMBER.legend$new_products.NUMBER.link_rewrite$new_products.NUMBER.id_imageExamine the above code to understand it.Also, you would need to remove all those links that appeared below thumbnails by deleting the code that was between: If you choose to have 8 thumbnails to be displayed - you will also have remember to set this number of products in your New Products module through the Back Office! Link to comment Share on other sites More sharing options...
thriftybeatnik.co.uk Posted August 23, 2009 Share Posted August 23, 2009 Cheers man. Just another question along the same lines. Is there a way I can select items to go in the sidebar like the new items product list?This way I could choose what products potential buyers would see first Link to comment Share on other sites More sharing options...
diamond204 Posted August 23, 2009 Share Posted August 23, 2009 Hi - thank you for this great info - I have attached a modified TPL file for all to use.If features 4 thumbnails, and no product info text. Make sure you set "Number of Products to Display" to 5 in the Modules Back Office (if it is not already set to that) blocknewproducts.zip Link to comment Share on other sites More sharing options...
Degsey Posted August 23, 2009 Share Posted August 23, 2009 Good addition, I suppose you could use the same priciple for top sellers as well Link to comment Share on other sites More sharing options...
Mmops Posted August 24, 2009 Share Posted August 24, 2009 yes, if you want to display more than 4 for top sellersmodify blockbestsellers.php line 35 $bestsellers = ProductSale::getBestSalesLight(intval($params['cookie']->id_lang), 0, 5); $bestsellers = ProductSale::getBestSalesLight(intval($params['cookie']->id_lang), 0, 10); tpl will be the same changes Link to comment Share on other sites More sharing options...
Octahedron Posted August 24, 2009 Author Share Posted August 24, 2009 Cheers man. Just another question along the same lines. Is there a way I can select items to go in the sidebar like the new items product list?This way I could choose what products potential buyers would see first well, yeah, there is a way to do it. you just need to use a link and picture of your desired product, instead of code that brings out the latest added items.but wouldn't it be better to promote (as that's what you wanna do, right?) specific products through your Featured Products block? Link to comment Share on other sites More sharing options...
dulux Posted August 24, 2009 Share Posted August 24, 2009 MMops can you explain how did you make in your nice web, to show 4 photos in your top sellers and new products block?thanks Link to comment Share on other sites More sharing options...
KeK0 Posted August 24, 2009 Share Posted August 24, 2009 it's possible to put this blocks in the center? Like featured products. Thx's Link to comment Share on other sites More sharing options...
Octahedron Posted August 24, 2009 Author Share Posted August 24, 2009 can't you just modify the look of Featured Products block to show pictures only or something? Link to comment Share on other sites More sharing options...
Mmops Posted August 25, 2009 Share Posted August 25, 2009 can't you just modify the look of Featured Products block to show pictures only or something? I think it is in homefeatured.tpl line 15, I didnt try yet, but should be here {$product.description_short|strip_tags|truncate:130:'...'} Link to comment Share on other sites More sharing options...
Mmops Posted August 25, 2009 Share Posted August 25, 2009 just testedhomefeatured.tpl Product name is here line 14 {$product.name|truncate:27:'...'|escape:'htmlall':'UTF-8'} homefeatured.tpl Product description line 15 {$product.description_short|strip_tags|truncate:130:'...'} you can go to my website see the demo Link to comment Share on other sites More sharing options...
zenco Posted October 5, 2009 Share Posted October 5, 2009 this post was very usefull thank you all for the info Link to comment Share on other sites More sharing options...
FrankDarela Posted October 23, 2009 Share Posted October 23, 2009 Hey. Friend Octahedron. I read your post on "NEW PRODUCTS block modification", very good. But you see, is it possible to do the same with Block Specials, causing it to show 5 products on promotion (pictures and description), because the block only shows 1 standard ... Need to make this change and still could not solve it, if you can help me thank you very much. Frank Darela www.naommotores.com.br/shopping Link to comment Share on other sites More sharing options...
gfxpixeldesigns Posted November 20, 2009 Share Posted November 20, 2009 Any idea how i could do something similar to the new product block, only keeping the product titles and descriptions? Basically i want to add a product image to the left of the product description. Ive managed to add images to the left but the images come out the same, so i have 8 products with the same image ! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now