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

Yet more effective Upsell/Related Products mod

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-06-2003, 08:26 PM
 
YuriC YuriC is offline
 

Advanced Member
  
Join Date: Mar 2003
Posts: 66
 

Default Yet more effective Upsell/Related Products mod

Following template results in a small table that contains the links to upsell/related products. I placed it right under the product image. That way it gets more exposure. Remember, average user wont scroll more then 90 lines



Code:
{* $Id: related_products.tpl,v 1.7 05/06/2003 10:27:05 acidleak Exp $ *} {if $product_links ne ""} <table border=0 width="170" cellspacing=0 cellpadding=1> <tr><td class=DialogBorder><font class=UpsellTitle>This works well with</font></td> <tr><td class=DialogBorder> <TABLE border=0 cellPadding=3 cellSpacing=0 width="100%"> <tr class="ItemsList"> <td class="DialogBox"> {section name=cat_num loop=$product_links} <a href="product.php?productid={ $product_links[cat_num].productid }" target=_blank> <font class=UpsellLinkText>•{$product_links[cat_num].product}</font> </a> {/section} </td> </tr> </table> </td></tr> </table> {/if}

Use it as follows:
Code:
<center> {if $active_modules.Upselling_Products ne ""} {include file="modules/Upselling_Products/related_products_small.tpl" } {/if} </center>

Next post show how to display upsells inside of cart.php (have to figure it out)

-----
happy hacking,
AcidLeak
Reply With Quote
  #2  
Old 05-10-2003, 04:39 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

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

Default

Nice Mod Acidleak.

Just implemented it and I like it.

Note: the name of the tpl should be related_products_small.tpl. Do not overwrite your existing related_products.tpl. This way you can have the mod working under your thumbnail as well as the upselling links at the bottom of the product detail.

Let's sell more!
Reply With Quote
  #3  
Old 07-11-2003, 08:43 PM
 
nuevojefe nuevojefe is offline
 

Member
  
Join Date: Jul 2003
Location: U.S.
Posts: 24
 

Default what file?

Where does the first code need to be placed?

And the second, needs to be placed in the file, and at a spot where you actually want it to appear correct?

Thanks
Reply With Quote
  #4  
Old 07-11-2003, 09:25 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

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

Default

The first set of code creates your "NEW" .tpl file.

The second is the implementation in customer/product.tpl.

You can see it on my site at http://www.adpmods.com/xcart.
Reply With Quote
  #5  
Old 07-12-2003, 07:23 AM
  groovico's Avatar 
groovico groovico is offline
 

X-Man
  
Join Date: Apr 2003
Location: Firetanksoftware.com
Posts: 2,326
 

Default

Nice simple mod I love small mods that can seriously help your upsell.
Reply With Quote
  #6  
Old 07-12-2003, 08:12 AM
 
nuevojefe nuevojefe is offline
 

Member
  
Join Date: Jul 2003
Location: U.S.
Posts: 24
 

Default New .tpl

where should I place this new .tpl file?

is it to be named related_products_new.tpl? and do I need to specify this name in any other .tpl's to call it up?

Thanks
Reply With Quote
  #7  
Old 07-12-2003, 08:29 AM
  adpboss's Avatar 
adpboss adpboss is offline
 

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

Default

The path for the new file is called out in the second chunk of code.

Skin1/modules...

the second chunk of code calls the new .tpl from products.tpl

Make sure you read through the code. It is all there.....

Good Luck! LOL!
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 08:52 PM.

   

 
X-Cart forums © 2001-2020