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

2-3 products per row viewing in product listing

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-06-2002, 11:16 PM
 
bkmdano bkmdano is offline
 

Newbie
  
Join Date: Oct 2002
Posts: 8
 

Default 2-3 products per row viewing in product listing

I see that the new version has the option to list 2 or 3 products per row, but I have not gotten this thing to work. Anyone get this to show properly?
Once I do get this, I would like to do the same for like "related products" section. It is in bullets now, but I would like to show thumbnail along with short description. Showing at least 3 per row.
Reply With Quote
  #2  
Old 10-07-2002, 01:26 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

What exactly are you refering to?
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #3  
Old 10-07-2002, 06:35 PM
 
bkmdano bkmdano is offline
 

Newbie
  
Join Date: Oct 2002
Posts: 8
 

Default product display

Sorry if i wasn't clear. what i'm trying to do is to display 3 products per row win the main window. default now only displays 1 per row. The page i am talking about is the product listing page with the thumbnails.
how and what page do i need to modify to reflect this?

i would also like to do the same for the recommended list table. presently, it shows text only with link, but i would like to show a thumbnail 3 per row with a short description.

thanks in advance.
Reply With Quote
  #4  
Old 10-10-2002, 07:40 PM
 
Funinc Funinc is offline
 

Senior Member
  
Join Date: Sep 2002
Location: CA
Posts: 108
 

Default Great Idea

I would also like to do the same. If you have a large number of products in each category, it would be nice to see 2 or 3 per row instead of just 1.

Anyone know how to achieve this?
__________________
Timm
Internet Performance
http://internetperformance.net

Baggagequest.com (V-4.1.6)- ton of custom work
Jodyforster.com (V-4.1.6) XC SEO-VARAINTS
Planetdrywash.com (V-4.1.9) XC SEO
Nastygear.com (V-4.1.3)
Reply With Quote
  #5  
Old 10-10-2002, 10:05 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

[skin1]/customer/main/products.tpl

Code:
<table border=0 width=100%><tr><td> <table border=0 width=100%> {section name=product loop=$products} {if $smarty.section.product.index is div by 2} </tr><tr valign="top"> {/if} <td valign="top"> <table border=0 width=100%><tr> <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:100:"...":true} </font><hr size=1 noshade width=130 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/(100-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} {else} <font class=TableCenterProductTitleOrange>{$lng.lbl_enter_your_price}</font> {/if} {/if} </td></tr> </table> </td> {/section} </td></tr></table> </td></tr></table>

Change is div by 2 to adjust columns, I also truncated the description by 200 less charchters as well as adjusted the table size so 2-3 would fit, anyone going over that is going to get a horizontal scrollbar.

hth.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #6  
Old 10-11-2002, 06:40 AM
 
Funinc Funinc is offline
 

Senior Member
  
Join Date: Sep 2002
Location: CA
Posts: 108
 

Default

Thanks works great....

You the MAN...
__________________
Timm
Internet Performance
http://internetperformance.net

Baggagequest.com (V-4.1.6)- ton of custom work
Jodyforster.com (V-4.1.6) XC SEO-VARAINTS
Planetdrywash.com (V-4.1.9) XC SEO
Nastygear.com (V-4.1.3)
Reply With Quote
  #7  
Old 10-15-2002, 08:18 PM
 
bkmdano bkmdano is offline
 

Newbie
  
Join Date: Oct 2002
Posts: 8
 

Default thanks! works fine here also

Reply With Quote
  #8  
Old 10-25-2002, 10:16 PM
 
matt matt is offline
 

Advanced Member
  
Join Date: Oct 2002
Location: LA, Calif.
Posts: 47
 

Default

Dunno why I missed this post, but I'm glad I found it
Reply With Quote
  #9  
Old 10-26-2002, 03:57 AM
  seaCOAST's Avatar 
seaCOAST seaCOAST is offline
 

X-Adept
  
Join Date: Oct 2002
Location: New Hampshire
Posts: 569
 

Default

Quote:
Originally Posted by matt
Dunno why I missed this post, but I'm glad I found it

Same here!

In addition...if you want to make it look a little neater, you can adjust the border width.
__________________
Xcart V4.5.5 Gold
seaCOAST
"Live FREE or DIE!"
Reply With Quote
  #10  
Old 10-26-2002, 07:18 AM
 
japanchick japanchick is offline
 

Advanced Member
  
Join Date: Oct 2002
Posts: 64
 

Default thanks ~!

Thanks boomer thats grrrreat!!!!!!!!!!!!!
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:15 AM.

   

 
X-Cart forums © 2001-2020