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)
-   -   product position (https://forum.x-cart.com/showthread.php?t=2649)

mrbill 05-11-2003 09:59 AM

product position
 
Hello,

I would like to figure out how to modify how the cart lists my products when a customer clicks on a catagory. Right now it lists them like this:
X
X
X
X

I would like it to list them like this so the user does not have to scroll so much.

X X
X X

Anyone?

kpriest 05-11-2003 02:51 PM

Displaying Products 2 Across
 
mrbill -

Replace your skin1/customer/main/products.tpl file with this (courtesy of funkydunk's "newest products" mod):
Code:

{* $Id: products.tpl,v 1.16.2.3 2002/11/19 12:57:44 alfiya Exp $ *}

<table border=0 width=100%>
<tr>
{section name=product loop=$products}

<td width=90 align=center valign=top>
<a href=product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}>{include file="product_thumbnail.tpl" productid=$products[product].productid image_x=70 product=$products[product].product}
{ $lng.lbl_see_details }</a>
</td>

<td valign=top>
{$products[product].product|escape}</font> <font class=TableCenterProductTitleOrange></font>
<font size=1>

 

 
{$products[product].descr|truncate:300:"...":true}

 
</font>
<hr size=1 noshade width=100 align=left>
{if $active_modules.Subscriptions ne "" and $products[product].catalogprice}
{include file="modules/Subscriptions/subscription_info_inlist.tpl"}
{else}
{if $products[product].price ne 0}
{if $products[product].discount ne 0}
<font class=MarketPrice>{$lng.lbl_market_price}: <s>
{math equation="price/(1-(discount/100))" price=$products[product].price discount=$products[product].discount format="%d.00" assign=unformatted}{include file="currency.tpl" value=$unformatted}
</s></font>
 
{/if}
<font class=TableCenterProductTitleOrange>{$lng.lbl_our_price}: {include file="currency.tpl" value=$products[product].price}</font><font class=MarketPrice>{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$products[product].price}</font>{if $products[product].discount ne 0}, save {$products[product].discount}%{/if}{if $config.General.use_vat eq "Y"}, including VAT {$products[product].vat}%{/if}
{else}
<font class=TableCenterProductTitleOrange>{$lng.lbl_enter_your_price}</font>
{/if}
{/if}

 

</td>

{if $smarty.section.product.index is odd}
</tr><tr>
<td>
</td>
</tr>
<tr>
{/if}

{/section}

</tr>
</table>


 

 



hth

kpriest 05-11-2003 03:04 PM

...don't forget to change the styles (class=) to the ones in your own stylesheet.

mrbill 05-11-2003 06:30 PM

yep
 
I tried the tip but did it did not work until I changed the "class". Works now.

Thanks for the help

StylinFX 05-29-2003 11:10 PM

Is there a way to do this feature in the subcategories.

EX: When someone click on the categorie it shows the subcategories in this same way.


Thanks,


All times are GMT -8. The time now is 02:18 AM.

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