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

product position

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-11-2003, 09:59 AM
 
mrbill mrbill is offline
 

Member
  
Join Date: May 2003
Posts: 10
 

Default 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?
Reply With Quote
  #2  
Old 05-11-2003, 02:51 PM
  kpriest's Avatar 
kpriest kpriest is offline
 

eXpert
  
Join Date: Apr 2003
Location: Seattle, WA
Posts: 263
 

Default 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
__________________
-Ken
X-Cart User / Developer Since April 2003
(Varying versions, multiple client sites, 3.x through 4.4.x)
www.pointbweb.com
Reply With Quote
  #3  
Old 05-11-2003, 03:04 PM
  kpriest's Avatar 
kpriest kpriest is offline
 

eXpert
  
Join Date: Apr 2003
Location: Seattle, WA
Posts: 263
 

Default

...don't forget to change the styles (class=) to the ones in your own stylesheet.
__________________
-Ken
X-Cart User / Developer Since April 2003
(Varying versions, multiple client sites, 3.x through 4.4.x)
www.pointbweb.com
Reply With Quote
  #4  
Old 05-11-2003, 06:30 PM
 
mrbill mrbill is offline
 

Member
  
Join Date: May 2003
Posts: 10
 

Default yep

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

Thanks for the help
Reply With Quote
  #5  
Old 05-29-2003, 11:10 PM
 
StylinFX StylinFX is offline
 

Advanced Member
  
Join Date: Oct 2002
Location: US
Posts: 36
 

Default

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,
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 10:59 PM.

   

 
X-Cart forums © 2001-2020