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

Firetank - Customers who bought this also bought...

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #1  
Old 05-19-2008, 09:18 AM
 
Lingerieblowout Lingerieblowout is offline
 

X-Adept
  
Join Date: Sep 2003
Location: Annapolis, MD
Posts: 415
 

Default Firetank - Customers who bought this also bought...

Anyone have the code that will allow the Customers who bought this also bought... module from Firetank to display a loop 3 products across instead of a looping 1 product.
__________________
http://www.lingerieblowout.com
Version 4.1.10

http://www.topnichewebsites.com
Version 4.4.5

Michael
Reply With Quote
  #2  
Old 05-19-2008, 09:31 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Firetank - Customers who bought this also bought...

Try this -- I have it set for 4 products in the

$limit = 4;

setting in the mod

I am using a css class "listing1" and "listing2" to highlight/shade the table cell on hover.

This will make a horizontal table and fill it with products. image_y=100 -- fixes the image height at 100px.

Hope this helps

Jeremy


Code:
{if $also_bought_products|@count gt 0} {capture name=also_bought} <table align="center"> <tr>{section name=i loop=$also_bought_products} <td align="center" class="listing1" onmouseover="this.className='listing2'" onmouseout="this.className='listing1'"><a href="product.php?productid={$also_bought_products[i].productid}" target="{$targetwin}">{include file="product_thumbnail.tpl" productid=$also_bought_products[i].productid image_y=100 product=$also_bought_products[i].product tmbn_url=$also_bought_products[i].tmbn_url}</a><br /> <div align="center"> <a href="product.php?productid={$also_bought_products[i].productid}" target="{$targetwin}">{$also_bought_products[i].product}</a></div></td> <td><img src="{$ImagesDir}/spacer.gif" alt="" height="1" width="7" border="0" /></td> {/section}</tr> </table><br /> {/capture} {include file="dialog.tpl" title="Customers who bought this also bought..." content=$smarty.capture.also_bought extra="width=100%"} {/if}
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #3  
Old 05-19-2008, 10:40 AM
 
Lingerieblowout Lingerieblowout is offline
 

X-Adept
  
Join Date: Sep 2003
Location: Annapolis, MD
Posts: 415
 

Default Re: Firetank - Customers who bought this also bought...

Works like a charm if you dont want it to loop for more prducts.

Here what it looks like

https://www.lingerieblowout.com/bracli-double-pearl-thong-g-string-lingerie-pr-17451.html
__________________
http://www.lingerieblowout.com
Version 4.1.10

http://www.topnichewebsites.com
Version 4.4.5

Michael
Reply With Quote
  #4  
Old 05-19-2008, 11:25 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Firetank - Customers who bought this also bought...

It's always a pleasure to click on a link and see a pearl g-string as the sample item.

there's a slight pixel shift on the hover... could it be the listing and listing2 css class?

.listing { border: 1px solid; padding: 7px; [snip]
.listing2 { padding: 7px; border: 1px solid #B18BA2; [snip]

although both have padding defined, could the fact that listing2 has a color defined for the border make a difference? It looks weird with the padding shift...

I noticed this in Firefox and Safari.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #5  
Old 05-19-2008, 06:22 PM
 
Lingerieblowout Lingerieblowout is offline
 

X-Adept
  
Join Date: Sep 2003
Location: Annapolis, MD
Posts: 415
 

Default Re: Firetank - Customers who bought this also bought...

LOL .. I removed the hover until i can figure it out. Your right it was driving my eyes crazy too looking at the padding shifting ....
__________________
http://www.lingerieblowout.com
Version 4.1.10

http://www.topnichewebsites.com
Version 4.4.5

Michael
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4


Thread Tools

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:50 PM.

   

 
X-Cart forums © 2001-2020