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

What tables or templates do I need to edit?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 10-25-2005, 01:00 PM
 
bishop237 bishop237 is offline
 

Member
  
Join Date: Oct 2005
Posts: 17
 

Default

I didn't change the products.tpl file... I thought that I did, but changed another file.

There is no "products per row" selection in the General Settings/Appearance options. I have gone through all of that with no luck.
__________________
thanks!
version 4.0.16
Reply With Quote
  #12  
Old 10-25-2005, 01:05 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Sorry, the EXACT wording of the setting in General Settings/Appearance options is:

Quote:
Display products list in multiple columns (1-3) (leave empty to use standard format):

This does work fine, I do it all the time. In fact, I just tested it out on a fresh install and it works fine. This means that somewhere along the line you either edited products.tpl or products_t.tpl, so I suggest restoring them both and starting over on your mods to those templates.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #13  
Old 11-08-2005, 10:28 AM
 
Smitty123 Smitty123 is offline
 

Newbie
  
Join Date: Oct 2005
Posts: 5
 

Default 1 item per row

I'm having the same problem...I haven't changed products.tpl and would like to see only one featured product per row on my main page

I changed "Display products list in multiple columns (1-3) (leave empty to use standard format):" to one (1) with no visible change on my site. (Featured still appear in two columns)

I'm kind of stumped....some kind of odd voodo going on here...any help appreciated! Thanks!
Reply With Quote
  #14  
Old 11-08-2005, 10:33 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Quote:
(leave empty to use standard format)

You need to leave it empty, not put 1 in the box
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #15  
Old 11-08-2005, 10:52 AM
 
Smitty123 Smitty123 is offline
 

Newbie
  
Join Date: Oct 2005
Posts: 5
 

Default 1 product per row, cont'd

I have left it empty and in fact, i've tried every number that looks "legal" (0-3)

For some reason, I still see products side by side and would like to see only one per row...really odd. I actually just replaces products.tpl with the original to double-check I hadn't accidentally edited it. Anyway, havea look if you'd like...I've only spent two hours skinning this thing after creating the design last night...if I can figure this one little problem out, I'm sure (well, pretty sure ) I can handle the rest.

http://www.2wgmedia.com/store/home.php

This store will be built off of a flash site I'm currently working on which can be found at:

http://www.2wgmedia.com/temp/index.html

Thanks again, Ryan...really appreciate the help!
-matt(at)mattworks.com
Reply With Quote
  #16  
Old 11-08-2005, 11:00 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Well, don't know what to tell you, you have some broken table cells in there and that is what is causing the problem. Technically it should be products.tpl displayed there, but if you have messed with subcategories.tpl you may have caused some problems. I'd restore products.tpl, products_t.tpl, featured.tpl and subcategories.tpl from their original and see if that solves the problem. Backup your current templates if you have made any changes and you can add them back in one by one to see what caused the issue.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #17  
Old 11-08-2005, 11:08 AM
 
Smitty123 Smitty123 is offline
 

Newbie
  
Join Date: Oct 2005
Posts: 5
 

Default

odd. I've replaced all of the files you suggested to no avail. Is there a way for possibly forcing the display of featured products row by row other than changing it in the admin section? Possibly in a php file? Just curious...

Thanks Again,
-m
Reply With Quote
  #18  
Old 11-08-2005, 11:12 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

The templates control it, and they are controled by the setting in Appearance Options. Did you buy a pre-made template or is this the default X-Cart template you are working with?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #19  
Old 11-08-2005, 11:19 AM
 
Smitty123 Smitty123 is offline
 

Newbie
  
Join Date: Oct 2005
Posts: 5
 

Default

This is the defaul x-cart template I'm working with..when installing I selected "small shop"

The template itself is one I designed on my own. I just found a hack since this is such a small shop that will fix the problem for now by displaying only one product per page, but ideally I'm sure my client will want to see at least two products featured in two rows on the main page. You can see the "hack/fix" here...

http://www.2wgmedia.com/store/home.php

I'm about to go through and change the css, etc....a little fugly at the moment
Reply With Quote
  #20  
Old 11-08-2005, 12:30 PM
 
Smitty123 Smitty123 is offline
 

Newbie
  
Join Date: Oct 2005
Posts: 5
 

Default

I figured out a hack/mod to "products.tpl" that seems to work fine if anyone is having a simliar problem. This mod will display products in rows instead of columns if you are having the same problem I was -cheers

Code:
{* $Id: products.tpl,v 1.5 2004/07/13 13:35:43 svowl Exp $ *} {section name=product loop=$products} <table border="0" width="100%"> <tr> <td width="90" align="center" valign="top"><a href="product.php?productid={$products[product].productid}"> {include file="product_thumbnail.tpl" productid=$products[product].productid image_x=$config.Appearance.thumbnail_width product=$products[product].product tmbn_url=$products[product].tmbn_url} {$lng.lbl_see_details} </a> </td> <td valign="top"><a href="product.php?productid={$products[product].productid}"><font class="ProductTitle"> {$products[product].product} </font></a> <font size="1"> {$products[product].descr|truncate:300:"...":true} </font> <hr size="1" noshade="noshade" width="230" align="left" /> {if $products[product].product_type eq "C"} {include file="buttons/details.tpl" href="product.php?productid=`$products[product].productid`&cat=`$cat`&page=`$navigation_page`"} {else} {if $active_modules.Subscriptions ne "" and $products[product].catalogprice} {include file="modules/Subscriptions/subscription_info_inlist.tpl"} {else} {if $products[product].taxed_price ne 0} {if $products[product].list_price gt 0 and $products[product].taxed_price lt $products[product].list_price} {math equation="100-(price/lprice)*100" price=$products[product].taxed_price lprice=$products[product].list_price format="%d" assign=discount} {if $discount gt 0} <font class="MarketPrice"> {$lng.lbl_market_price} : <S> {include file="currency.tpl" value=$products[product].list_price} </S></font> {/if} {/if} <font class="ProductPrice"> {$lng.lbl_our_price} : {include file="currency.tpl" value=$products[product].taxed_price} </font><font class="MarketPrice"> {include file="customer/main/alter_currency_value.tpl" alter_currency_value=$products[product].taxed_price} </font> {if $discount gt 0} , {$lng.lbl_save_price} {$discount} % {/if} {if $products[product].taxes} {include file="customer/main/taxed_price.tpl" taxes=$products[product].taxes} {/if} {else} <font class="ProductPrice"> {$lng.lbl_enter_your_price} </font> {/if} {/if} {if $usertype eq "C" and $config.Appearance.buynow_button_enabled eq "Y"} {include file="customer/main/buy_now.tpl" product=$products[product]} {/if} {/if} </td> </tr> </table>{/section}
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 06:11 AM.

   

 
X-Cart forums © 2001-2020