X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Featured Products (https://forum.x-cart.com/showthread.php?t=46287)

Panther 03-15-2009 09:18 AM

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

ARW VISIONS 03-15-2009 10:39 AM

Re: Featured Products
 
you want this only in the featured products?

Panther 03-15-2009 11:23 AM

Re: Featured Products
 
Yes

Panther 03-19-2009 03:55 PM

Re: Featured Products
 
Anyone know how to do this?

ARW VISIONS 03-19-2009 04:02 PM

Re: Featured Products
 
oh sorry forgot to look. can you just put a 5 in the admin?

Panther 03-19-2009 04:27 PM

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.

Victor D 03-20-2009 12:48 AM

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}


Panther 03-20-2009 03:41 PM

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";


All times are GMT -8. The time now is 07:12 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.