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
  #61  
Old 01-04-2008, 07:03 AM
 
Acquamarina Acquamarina is offline
 

X-Adept
  
Join Date: Aug 2006
Location: USA
Posts: 811
 

Default Re: Pictures in recommends.tpl for 3 column format

Hi,

It doesn't work for me on 4.1.9 It does not display anything.

Does anyone have the tpl for 4.1.9?

Thanks in advance!

PS: HWT- the template you have here is not for the Recommended Products that are randomly generated by x-cart. It is for Related Products which one chooses in Admin - that's a different mod all together.
__________________
Vera B
4.4.5
CFLSystems.com mods, Kosmos eBay Integration, Feed Manager Pro, custom mods, BCSEngineering Mods, CDSEO PRO
Hosting by EWDHosting - The best home for your x-cart.
Reply With Quote
  #62  
Old 01-04-2008, 05:44 PM
 
MoonDog MoonDog is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 93
 

Default Re: Pictures in recommends.tpl for 3 column format

Acquamarina,
Try this. It's for the Recommended products list for v4.1.8 and v4.1.9

Replace your skin1/modules/Recommended_Products/recommends.tpl file with the file below:

Code:
{* $Id: recommends.tpl,v 1.9 2006/03/21 07:17:18 svowl Exp $ *} {if $recommends} {capture name=recommends} {assign var="tmp" value="0"} {section name=num loop=$recommends} {if $recommends[num].productid}{assign var="tmp" value="1"}{/if} {/section} {section name=num loop=$recommends} {if %num.first%} <table border=0 width="100%"> <tr> {/if} {if $smarty.section.num.index is div by 3} </tr><tr valign="top"> {/if} <td width=33% align=center valign=top class="PListCell";> <a href="product.php?productid={$recommends[num].productid}" class="ItemsList">{$recommends[num].product}</a> <br /> <a href="product.php?productid={$recommends[num].productid}">{include file="product_thumbnail.tpl" productid=$recommends[num].productid image_x=$config.Appearance.thumbnail_width product=$recommends[num].product type="T"}</a> <br /> <font class="ProductPrice">{$lng.lbl_our_price}: {include file="currency.tpl" value=$recommends[num].taxed_price}</font> </td> {if %num.last%} </tr></table> {/if} {/section} {/capture} {include file="dialog.tpl" title=$lng.lbl_recommends content=$smarty.capture.recommends extra='width="100%"'} {else} {capture name=dialog} No recommends with this product. {/capture} {/if}

- MoonDog -
__________________
X-CART Gold v4.1.8
Reply With Quote

The following 2 users thank MoonDog for this useful post:
fmoses (10-16-2010), Yrik (07-17-2009)
  #63  
Old 01-04-2008, 06:27 PM
 
Acquamarina Acquamarina is offline
 

X-Adept
  
Join Date: Aug 2006
Location: USA
Posts: 811
 

Default Re: Pictures in recommends.tpl for 3 column format

MoonDog,

It works like a charm! Thank you so much! It looks great.
__________________
Vera B
4.4.5
CFLSystems.com mods, Kosmos eBay Integration, Feed Manager Pro, custom mods, BCSEngineering Mods, CDSEO PRO
Hosting by EWDHosting - The best home for your x-cart.
Reply With Quote
  #64  
Old 03-18-2008, 03:43 PM
  ScrapProfessor's Avatar 
ScrapProfessor ScrapProfessor is offline
 

Advanced Member
  
Join Date: Mar 2008
Posts: 90
 

Smile Re: Pictures in recommends.tpl for 3 column format

YAY! Thank you MoonDog! I am running x-cart PRO v 4.1.9 and your code worked perfectly for me as well.

THANK YOU!!!
__________________
Joli Kirk,
"Life is not measured by the number of breaths we take, but by the number of moments that take our breath away"

X-Cart PRO 4.3.1 | Linux | PHP 5 | MySQL 5


AlteredCart.com - Download Expander; Product Page Downloads
BCSEngineering.com - On Sale Products; Newest Added Products
Reply With Quote
  #65  
Old 03-21-2008, 10:21 AM
 
cooldude cooldude is offline
 

Member
  
Join Date: Mar 2008
Posts: 23
 

Default Re: Pictures in recommends.tpl for 3 column format

It works great Moondog. You are my hero!
__________________
X-Cart 4.1.9 (current version)
X-FancyCategories,
X-Cart Tabs Menu
David A.
Owner
Mandalay Design Inc.
Wholesaler & Manufacturer of Fine Jewelry
www.mandalayla.com
Reply With Quote
  #66  
Old 04-05-2008, 11:32 AM
 
yuichi yuichi is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 42
 

Default Re: Pictures in recommends.tpl for 3 column format

Great work Moondog!!
__________________
X-Cart Ver: 4.1.9 Gold
X-Cart Ver: 4.1.10 Gold
Reply With Quote
  #67  
Old 04-06-2008, 07:56 AM
 
m28m m28m is offline
 

Member
  
Join Date: Feb 2008
Posts: 20
 

Default Re: Pictures in recommends.tpl for 3 column format

Hi Moondog,your code load the photo from DB,can you supply the code that load the photo from file system?Thank you very much!
__________________
Ken

X-Cart Gold version 4.1.9
Add-ons: x-fancycat-4,x-aom-4, x-offers-4, x-magnifier-4
Reply With Quote
  #68  
Old 04-06-2008, 09:44 PM
 
MoonDog MoonDog is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 93
 

Default Re: Pictures in recommends.tpl for 3 column format

Hi m28m,

Code:
...your code load the photo from DB, can you supply the code that load the photo from file system?...

I think you might be mistaken. The code I placed above works with the images in the file system and not from the database. Try installing it and it should work.

- MoonDog -
__________________
X-CART Gold v4.1.8
Reply With Quote
  #69  
Old 04-28-2008, 11:31 AM
 
EN4U EN4U is offline
 

eXpert
  
Join Date: Feb 2008
Location: AZ
Posts: 379
 

Default Re: Pictures in recommends.tpl for 3 column format

Moondog,

I added your code and it sets up the table good and all, but images arent showing up.. its just showing a box and within it "image not available"

i use telafirmas image mod...is there somethign i need to add to your mod to make it work....?

Thanks
__________________
Regards, Dan
X-Cart Gold Version 4.1.10

1 - One page checkout
2 - Image Generator
3 - CSDEO Pro
4 - Shop By Price
5 - Next - Previous
6 - On Sale
7 - Shop By Price

8 - Froogle & Google Base Feed
9 - Buy Together
10 - Customer Loyalty Points
11 - Customer Reward Points
Customer Reward Points Referral Add-on
12 - Product Reviews
13 - Other Custom Modifications
----------------------
http://www.townsqjewelry.com/
http://www.eroticnights4u.com/ <---- Adult Oriented - Toys
Reply With Quote
  #70  
Old 04-28-2008, 10:52 PM
 
mismouss mismouss is offline
 

Advanced Member
  
Join Date: Dec 2007
Posts: 38
 

Default Re: Pictures in recommends.tpl for 3 column format

Hello,

I have exactly the same problem. I use also the Telafirma Images Mod.

This mod causes me problems for each other module which uses the images. For example, module RSS Export of Magneticone which uses the initial format of the images. I have enormous images; I cannot thus generate a Rss flow. If I do not find script returning to the images (cached directory) create by the module of Telafirma, I give up this module because I have many other modules using the images.

I should not be and would not be the only one to have this problem. Telafirma must find a solution.

David
__________________
David
Carteq
x-cart 4.1.9
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 06:02 AM.

   

 
X-Cart forums © 2001-2020