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

4 products to a column? Is it possible?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-01-2005, 01:49 AM
 
spence88mph spence88mph is offline
 

Advanced Member
  
Join Date: Jan 2005
Posts: 95
 

Default 4 products to a column? Is it possible?

Hi There,

sorry if this has been covered, I did a search with non luck,

is it possible to have 4 thumbnails across in the products list, it only lets me do 3?

Thanks!

Spence
__________________
-------------------
4.2.2
4.1.9
Reply With Quote
  #2  
Old 05-01-2005, 06:38 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

In the template /customer/main/products.tpl change the line
Code:
{if $usertype eq "C" and $config.Appearance.products_per_row ne "" and $config.Appearance.products_per_row gt 0 and $config.Appearance.products_per_row lt 4 and ($featured eq "Y" or $config.Appearance.featured_only_multicolumn eq "N")}

to

Code:
{if $usertype eq "C" and $config.Appearance.products_per_row ne "" and $config.Appearance.products_per_row gt 0 and $config.Appearance.products_per_row lt 5 and ($featured eq "Y" or $config.Appearance.featured_only_multicolumn eq "N")}
Reply With Quote
  #3  
Old 05-01-2005, 02:44 PM
 
spence88mph spence88mph is offline
 

Advanced Member
  
Join Date: Jan 2005
Posts: 95
 

Default Thanks!

Thank-you so much mate!
__________________
-------------------
4.2.2
4.1.9
Reply With Quote
  #4  
Old 05-10-2005, 08:32 AM
 
phil_ phil_ is offline
 

Advanced Member
  
Join Date: Feb 2003
Location: Northern Ireland
Posts: 56
 

Default

Yes thanks, works a treat in version 3 also.

Philip
__________________
-----------------------------------------
X-Cart5 v5.2.16 (Live)
-----------------------------------------
Reply With Quote
  #5  
Old 05-20-2005, 08:41 AM
 
Online Michael Online Michael is offline
 

eXpert
  
Join Date: Mar 2005
Location: Melbourne, Australia
Posts: 273
 

Default

Quote:
Originally Posted by TelaFirma
In the template /customer/main/products.tpl change the line
Code:
{if $usertype eq "C" and $config.Appearance.products_per_row ne "" and $config.Appearance.products_per_row gt 0 and $config.Appearance.products_per_row lt 4 and ($featured eq "Y" or $config.Appearance.featured_only_multicolumn eq "N")}

to

Code:
{if $usertype eq "C" and $config.Appearance.products_per_row ne "" and $config.Appearance.products_per_row gt 0 and $config.Appearance.products_per_row lt 5 and ($featured eq "Y" or $config.Appearance.featured_only_multicolumn eq "N")}

I see the only difference between the original and new code above is the 4 changing to a 5. I did this and for some reason it didn't work. I'm starting to think that it could have something to do with the version I'm using (x-cat 4.013). Any thoughts?
__________________
X-Cart 5.3.5.4
Reply With Quote
  #6  
Old 05-20-2005, 09:32 AM
 
zardos zardos is offline
 

Senior Member
  
Join Date: Jun 2004
Location: UK England
Posts: 140
 

Default

Hi Online Michael

Did you enable it in your admin under general settings from 3 columns to 4
__________________
X-Cart V4.0.18
PHP 4.3.10
MySQL Server 4.0.22
Apache/1.3.33 (unix)
OS - Linux
Reply With Quote
  #7  
Old 05-20-2005, 12:15 PM
 
1320AutoSports 1320AutoSports is offline
 

Advanced Member
  
Join Date: Apr 2003
Posts: 89
 

Default

Thanks.. This worked great
Reply With Quote
  #8  
Old 05-21-2005, 03:12 AM
 
Online Michael Online Michael is offline
 

eXpert
  
Join Date: Mar 2005
Location: Melbourne, Australia
Posts: 273
 

Default

Quote:
Originally Posted by zardos
Hi Online Michael

Did you enable it in your admin under general settings from 3 columns to 4

I did now... and it works fantastic. Sorry about that, I thought that simply changing 4 to 5 was all that needed doing. Thanks for your help Zardos.

However, I'm not out of the woods yet. What I would like to do is make the 'featured products' dialog a 2 column products dialog while everything else is in 4 column format (particularly the 'product listing' page). Would this be too difficult to do? I've tried to do it using the following method:

I duplicated the products.tpl file by naming it products_featured.tpl and then changed all references in the featured.tpl

From:

Code:
{include file="customer/main/products.tpl" products=$f_products featured="Y"}

to:

Code:
{include file="customer/main/products_featured.tpl" products=$f_products featured="Y"}

I then started editing the products_featured.tpl file to make it into a 2 column format and not matter what I did, I either got 4 columns or nothing at all.

Has anyone managed to do this kind of thing before?
__________________
X-Cart 5.3.5.4
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 03:32 PM.

   

 
X-Cart forums © 2001-2020