3 column layout with thumbnail for Related Products
I just installed the mod from mlfnet that displays the Recommended Products in 3 columns with a product icon, and I thought it would be nice to have the Related Products do the same thing. Tested in version 3.5.13, but should work for previous 3.5.x versions as well. Replace your /modules/Upselling_Products/related_products.tpl with this:
Code:
{* $Id: related_products.tpl,v 1.7.6.1 2004/12/06 svowl Exp $ *} |
Awesome mod! This seems to work with 4.0.8 as well.
|
Thanks, I would add in
Code:
{else} just before the last {/if} in case there is no upselling products, otherwise it's blank. |
Oops...my bad. Nice catch Philj, thanks! :)
|
Thanks for this mod. Works in 4.0.11 :D
|
Very small change needed to make sure that if you have the 'open in new window' option selected in modules admin the thumbnail as well as the link opens in a new window.
|
Thanks balinor! This mod is great and I put in below the product details and removed the dialog. Looks (and works) great.
PhilJ- not sure why you need an else statement there ... related products are manually added and there already is an if statement in the product.tpl for the module (if active). If there aren't related products then there is no header. Thanks, - Mike |
Works great in v3.4.6
Thanks Balinor |
this is great!
Is there a way to include a part of the product detail? -- got it - simple modification of the related_products.php replace the sql code with this Quote:
and in your related_products.tpl you just need to add this wherever you want: Quote:
hope that helps! -edit- and if the description is too long..then add this: Quote:
and then add a 'read more here' link to the end of the dots... Quote:
you can see the example here: http://www.yoyonation.com/product.php?productid=63&cat=0&page=1 - it's still in testing and we haven't loaded in our yoyo products yet... if anyone can help me out with the comment thing below.. would like to add an edit/delete option in the admins..having trouble programming that - but if i get it, will definitely add it into the mod page.! |
no luck using with a two column
|
All times are GMT -8. The time now is 04:31 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.