X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Pictures in recommends.tpl for 3 column format (https://forum.x-cart.com/showthread.php?t=7506)

mlfnet 05-09-2004 10:21 AM

Pictures in recommends.tpl for 3 column format
 
I was looking around the forums to display pictures in the recommends.tpl and came across some code, but it had prices and was setup for 1 column. I edited it so it would display in a 3 colums with just the picture and title.


Code:

{* $Id: recommends.tpl,v 1.3 2004/03/01 16:26:00 salsabeel Exp $ *}
{if $recommends}
{capture name=recommends}

<table border=0 width=100%>
<tr>

{section name=num loop=3}
<td width=90 align=center valign=top>
{$recommends[num].product}</font>
</td>
{/section}

</tr>
</table>


{/capture}
{include file="dialog.tpl" title=$lng.lbl_recommends content=$smarty.capture.recommends extra="width=100%"}{/if}


Hope this helps some of you out. It could probably stand to be cleaned up a little. I just hacked it enough to make it do what I needed it to do.

adpboss 05-09-2004 10:25 AM

Good one, thanks!

What version is this codee for?

I'm sure a Moderator will come along and move this to Custom Mods soon.

mlfnet 05-17-2004 03:03 PM

Version 3.5.x
 
It works on mine which is 3.5.5

donavichi 05-20-2004 11:40 PM

Works on 3.5.7 too!

Thank you

GM 05-21-2004 01:26 PM

Nice one! and just in time, I was just wandering how to do this :D

donavichi 05-27-2004 09:48 AM

I have thumbnail images stored on file system not in database

Can you tell me how to adapt the code to display the images?

Many thanks,

Donavichi

xcell67 05-29-2004 05:43 PM

don,

were u able to figure out how to call it from the filesystem rather than the DB?

donavichi 05-31-2004 01:58 AM

not as yet, no.

Any ideas?

balinor 12-03-2004 01:31 PM

This mod works very nicely for the recommended products.....however I would like to adapt it for the related products/upselling links. Basically a three column layout with icons, just like this. I saw another mod that tweaked the upsell links, but added way too much info for me, and in only one column.

If anyone has happened to adapt this mod to the upsell template, please post it. Thanks! :)

ETInteractive.com 12-03-2004 02:37 PM

Just look at products.tpl or products_t.tpl

this has the smarty call for product thumbnails.


All times are GMT -8. The time now is 02:53 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.