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

Featured Products

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-15-2009, 09:18 AM
 
Panther Panther is offline
 

Senior Member
  
Join Date: Feb 2009
Posts: 108
 

Default Featured Products

Any way to add additional products to a row under the Feature Products on my main site? I would like to have 5 products going across instead of the default 3.

Any ideas on how to do this?

Thanks
__________________
Panther
X-Cart Pro v4.4.4
Reply With Quote
  #2  
Old 03-15-2009, 10:39 AM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Featured Products

you want this only in the featured products?
__________________
xcart 5.1.2
Reply With Quote
  #3  
Old 03-15-2009, 11:23 AM
 
Panther Panther is offline
 

Senior Member
  
Join Date: Feb 2009
Posts: 108
 

Default Re: Featured Products

Yes
__________________
Panther
X-Cart Pro v4.4.4
Reply With Quote
  #4  
Old 03-19-2009, 03:55 PM
 
Panther Panther is offline
 

Senior Member
  
Join Date: Feb 2009
Posts: 108
 

Default Re: Featured Products

Anyone know how to do this?
__________________
Panther
X-Cart Pro v4.4.4
Reply With Quote
  #5  
Old 03-19-2009, 04:02 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Featured Products

oh sorry forgot to look. can you just put a 5 in the admin?
__________________
xcart 5.1.2
Reply With Quote
  #6  
Old 03-19-2009, 04:27 PM
 
Panther Panther is offline
 

Senior Member
  
Join Date: Feb 2009
Posts: 108
 

Default Re: Featured Products

In Admin, it says "Display products list in multiple columns (1-3) (leave empty to use standard format) ". I have it set it 3 right now. Before I posted this message, I checked to see if I could put 5 in and got an error that says invalid data entered into the field.
__________________
Panther
X-Cart Pro v4.4.4
Reply With Quote
  #7  
Old 03-20-2009, 12:48 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Featured Products

There is should be enough place to display 5 products
change in your customer/main/featured.tpl
Code:
{include file="customer/main/products.tpl" products=$f_products featured="Y"}
to
Code:
{include file="customer/main/products.tpl" products=$f_products featured="Y" per_row=5}

and in your customer/main/products_t.tpl
Code:
{list2matrix assign="products_matrix" assign_width="cell_width" list=$products row_length=$config.Appearance.products_per_row}
to
Code:
{if $per_row} {assign var=row_length value=$per_row} {else} {assign var=row_length value=$config.Appearance.products_per_row} {/if} {list2matrix assign="products_matrix" assign_width="cell_width" list=$products row_length=$row_length}
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote

The following 2 users thank Victor D for this useful post:
am2003 (09-24-2009), golfland (05-06-2010)
  #8  
Old 03-20-2009, 03:41 PM
 
Panther Panther is offline
 

Senior Member
  
Join Date: Feb 2009
Posts: 108
 

Default Re: Featured Products

To have 5 featured products/thumbnails going across in a row instead of 3, I applied the following SQL patch and it worked. After adding this patch, I was able to go into the admin panel and change the 3 to 5 and it worked perfectly.

UPDATE xcart_config SET validation="^[0-5]?$" WHERE name="products_per_row";
__________________
Panther
X-Cart Pro v4.4.4
Reply With Quote

The following user thanks Panther for this useful post:
am2003 (09-24-2009)
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:49 PM.

   

 
X-Cart forums © 2001-2020