Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Pictures in recommends.tpl for 3 column format

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 05-09-2004, 10:21 AM
 
mlfnet mlfnet is offline
 

Member
  
Join Date: Apr 2004
Posts: 12
 

Default 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.
Reply With Quote

The following user thanks mlfnet for this useful post:
RedandBlue (11-12-2009)
  #2  
Old 05-09-2004, 10:25 AM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

Good one, thanks!

What version is this codee for?

I'm sure a Moderator will come along and move this to Custom Mods soon.
Reply With Quote
  #3  
Old 05-17-2004, 03:03 PM
 
mlfnet mlfnet is offline
 

Member
  
Join Date: Apr 2004
Posts: 12
 

Default Version 3.5.x

It works on mine which is 3.5.5
Reply With Quote
  #4  
Old 05-20-2004, 11:40 PM
 
donavichi donavichi is offline
 

X-Adept
  
Join Date: Apr 2004
Location: United Kingdom
Posts: 697
 

Default

Works on 3.5.7 too!

Thank you
__________________
Best regards,

Donavichi.
- - -

Website Copywriting || Web Design || FAQs || Home & Garden Blog
Reply With Quote
  #5  
Old 05-21-2004, 01:26 PM
 
GM GM is offline
 

eXpert
  
Join Date: Mar 2004
Location: Canada
Posts: 293
 

Default

Nice one! and just in time, I was just wandering how to do this
__________________
v. 4.0.14 (GM Style)
O.S. Linux
Build Your Own Diamond Ring
Reply With Quote
  #6  
Old 05-27-2004, 09:48 AM
 
donavichi donavichi is offline
 

X-Adept
  
Join Date: Apr 2004
Location: United Kingdom
Posts: 697
 

Default

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
__________________
Best regards,

Donavichi.
- - -

Website Copywriting || Web Design || FAQs || Home & Garden Blog
Reply With Quote
  #7  
Old 05-29-2004, 05:43 PM
 
xcell67 xcell67 is offline
 

Senior Member
  
Join Date: Dec 2003
Posts: 149
 

Default

don,

were u able to figure out how to call it from the filesystem rather than the DB?
Reply With Quote
  #8  
Old 05-31-2004, 01:58 AM
 
donavichi donavichi is offline
 

X-Adept
  
Join Date: Apr 2004
Location: United Kingdom
Posts: 697
 

Default

not as yet, no.

Any ideas?
__________________
Best regards,

Donavichi.
- - -

Website Copywriting || Web Design || FAQs || Home & Garden Blog
Reply With Quote
  #9  
Old 12-03-2004, 01:31 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #10  
Old 12-03-2004, 02:37 PM
  ETInteractive.com's Avatar 
ETInteractive.com ETInteractive.com is offline
 

X-Adept
  
Join Date: Dec 2002
Posts: 747
 

Default

Just look at products.tpl or products_t.tpl

this has the smarty call for product thumbnails.
__________________
ETInteractive.com
X-Cart 3.5.x
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:41 PM.

   

 
X-Cart forums © 2001-2020