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

Product matrix vs list

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-12-2009, 10:36 AM
 
mrerotic mrerotic is offline
 

eXpert
  
Join Date: Feb 2009
Posts: 264
 

Default Product matrix vs list

Is there anyway to have a certain category display all products in 3 column matrix view and leave all others at list view?
__________________
x-cart 4.2.3
AlteredCart Smart Search
Auto Featured Products Mod (Personal Mod)
BCSE Product Importer Pro & Drop Shipper Pro
CDSEO Pro
CMS EZRecommends
EE slider login (Personal Mod)
Next Prev Link Mod (Customized)
ShadowBox Detailed Images (Personal Mod)
Shop By Price (Customized)
Social Media (Personal Mod)
Switch Layout View (Personal Mod)
Special Offers
Testimonials (Personal Mod)
Whats New (Customized)
Reply With Quote
  #2  
Old 08-12-2009, 11:38 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Product matrix vs list

You can use an if statement in subcategories.tpl where the calls for subcategories_t.tpl and subcategories_list.tpl are made
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 08-12-2009, 11:52 AM
 
mrerotic mrerotic is offline
 

eXpert
  
Join Date: Feb 2009
Posts: 264
 

Default Re: Product matrix vs list

Like {if $cat eq '433'} do this ?
__________________
x-cart 4.2.3
AlteredCart Smart Search
Auto Featured Products Mod (Personal Mod)
BCSE Product Importer Pro & Drop Shipper Pro
CDSEO Pro
CMS EZRecommends
EE slider login (Personal Mod)
Next Prev Link Mod (Customized)
ShadowBox Detailed Images (Personal Mod)
Shop By Price (Customized)
Social Media (Personal Mod)
Switch Layout View (Personal Mod)
Special Offers
Testimonials (Personal Mod)
Whats New (Customized)
Reply With Quote
  #4  
Old 08-12-2009, 12:14 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Product matrix vs list

This is what's there by default
Code:
{if $config.Appearance.subcategories_per_row eq 'Y'} {if $current_category.description ne ""} <div class="subcategory-descr">{$current_category.description}</div> {/if} {if $subcategories} {include file="customer/main/subcategories_t.tpl"} {/if} {else} ............. {if $subcategories} {include file="customer/main/subcategories_list.tpl"} {/if} .............
so you can do something like this
Code:
{if $config.Appearance.subcategories_per_row eq 'Y'} {if $current_category.description ne ""} <div class="subcategory-descr">{$current_category.description}</div> {/if} {if $subcategories and $current_category.categoryid eq "433"} {include file="customer/main/subcategories_t.tpl"} {/if} {else} ............. {if $subcategories} {include file="customer/main/subcategories_list.tpl"} {/if} .............
or the same for subcategories_list.tpl, depending on how you need it
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 05:27 PM.

   

 
X-Cart forums © 2001-2020