X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Yet more effective Upsell/Related Products mod (https://forum.x-cart.com/showthread.php?t=2589)

YuriC 05-06-2003 08:26 PM

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

adpboss 05-10-2003 04:39 PM

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! :)

nuevojefe 07-11-2003 08:43 PM

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

adpboss 07-11-2003 09:25 PM

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.

groovico 07-12-2003 07:23 AM

Nice simple mod :) I love small mods that can seriously help your upsell.

nuevojefe 07-12-2003 08:12 AM

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

adpboss 07-12-2003 08:29 AM

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!


All times are GMT -8. The time now is 08:00 PM.

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