Guest Posted July 20, 2010 Share Posted July 20, 2010 Hi,How to display more pics in the top sellers module please?Any file should I modify?Thank you very much Link to comment Share on other sites More sharing options...
Mikael Bellina Posted July 21, 2010 Share Posted July 21, 2010 Hi,You have to go in the module folder, blockbestsellers module, and edit the file blockbestsellers.tplAfter you have to add different lign on the TPL. Iff you want 4 pics in the bloc add the code : getImageLink($best_sellers.2.link_rewrite, $best_sellers.2.id_image, 'medium')}" height="{$mediumSize.height}" width="{$mediumSize.width}" alt="{$best_sellers.2.legend}" /> getImageLink($best_sellers.3.link_rewrite, $best_sellers.3.id_image, 'medium')}" height="{$mediumSize.height}" width="{$mediumSize.width}" alt="{$best_sellers.3.legend}" /> Under : {if $best_sellers|@count > 1}getImageLink($best_sellers.1.link_rewrite, $best_sellers.1.id_image, 'medium')}" height="{$mediumSize.height}" width="{$mediumSize.width}" alt="{$best_sellers.1.legend}" />{/if} I remain at your disposal.Best Regards Mikaël Link to comment Share on other sites More sharing options...
D34N0 Posted August 4, 2010 Share Posted August 4, 2010 Hi MikaëlI found the above code did not work in version 1.3.1.and found you were missing '{$link->' before the getImageLink function. The code should be. getImageLink($best_sellers.2.link_rewrite, $best_sellers.2.id_image, 'medium')}" height="{$mediumSize.height}" width="{$mediumSize.width}" alt="{$best_sellers.2.legend}" /> getImageLink($best_sellers.3.link_rewrite, $best_sellers.3.id_image, 'medium')}" height="{$mediumSize.height}" width="{$mediumSize.width}" alt="{$best_sellers.3.legend}" /> I found the best place to insert the code is. {if $best_sellers|@count > 1}getImageLink($best_sellers.1.link_rewrite, $best_sellers.1.id_image, 'medium')}" height="{$mediumSize.height}" width="{$mediumSize.width}" alt="{$best_sellers.1.legend}" />[iNSERT HERE]{/if} Hope this helpsregardsDean Link to comment Share on other sites More sharing options...
Mikael Bellina Posted August 4, 2010 Share Posted August 4, 2010 It worked when i test it one week ago ... Link to comment Share on other sites More sharing options...
D34N0 Posted August 4, 2010 Share Posted August 4, 2010 Hi MikaëlMany Thanks for the code it helped me show multiple images in the top sellers module.It could have been a setting on my server, but to get it to work for me I had to do the above.RegardsDean Link to comment Share on other sites More sharing options...
Riv3n Posted August 8, 2010 Share Posted August 8, 2010 Thanks D34N0, it worked like you said.cheersL.J Link to comment Share on other sites More sharing options...
Recommended Posts