X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Thumbnails in Upselling Table (https://forum.x-cart.com/showthread.php?t=31709)

hoosierglass 06-07-2007 08:56 AM

Thumbnails in Upselling Table
 
I got this idea from the way the best sellers works when it is in the main section not in a side menu.

The original template for upselling lists the product with the product ID#. We do not use that number and in most cases this means nothing to the customer. So I decided to take out the ID# and replace it with a small thumbnail. Here is an example:
http://www.kennedyhardware.com/menu.JPG

So here is the changes to the /mycart/skin1/modules/Upselling_Products/related_products.tpl
Code:

{* $Id: related_products.tpl,v 1.15 2005/12/07 14:07:32 max Exp $ *}
{if $product_links ne ""}
{capture name=dialog}
<table cellspacing="5">
{section name=cat_num loop=$product_links}
<tr class="ItemsList">
        <td width="1%">{include file="product_thumbnail.tpl" productid=$product_links[cat_num].productid image_x=25 product=$product_links[cat_num].productid}</td>
        <td width="99%"><a href="product.php?productid={ $product_links[cat_num].productid }"{if $config.Upselling_Products.upselling_new_window eq 'Y'} target="_blank"{/if} class="ItemsList">{$product_links[cat_num].product}</a></td>
</tr>
{/section}
</table>
{/capture}
{include file="dialog.tpl" title=$lng.lbl_related_products content=$smarty.capture.dialog extra='width="100%"'}
{/if}


I am trying to do the same for recommends.tpl but for some reason I cannot get it to work. If someone want to help out I can post the template I have so far.

balinor 06-07-2007 10:58 AM

Re: Thumbnails in Upselling Table
 
Did these not work for you?

http://forum.x-cart.com/showthread.php?t=10773

http://forum.x-cart.com/viewtopic.php?t=10230

hoosierglass 06-07-2007 12:18 PM

Re: Thumbnails in Upselling Table
 
First you have to see them! <sheepish grin>
Did some playing around and got it all to work the way I would like.

Somebody made mention of adding the price but I could never find how this was done. Since you seem to have all of the good posts commited to memory, could you direct me to something that would give me an idea on how to add price to the recommends and related items.

Thanks a bundle Balinor

balinor 06-07-2007 12:49 PM

Re: Thumbnails in Upselling Table
 
Heh...don't have them committed to memory, have them committed to a very large bookmark folder ;)

I don't recall how I ended up getting the price to work, let me see if I can track down the store we implemented that on.

hoosierglass 06-07-2007 07:01 PM

Re: Thumbnails in Upselling Table
 
Well I have found that sometimes the upsell does not work and I have yet to understand why. I thought it might have been the bi-directional but I cleared the products and reset them and they just don't show up on detailed view of a product. It does however show up fine in the exupsell as the item is added to the cart.


All times are GMT -8. The time now is 04:21 PM.

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