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)
-   -   2 PRoducts in a Row only on Frontpage ? (https://forum.x-cart.com/showthread.php?t=908)

MOC 12-09-2002 07:43 AM

2 PRoducts in a Row only on Frontpage ?
 
Hi
i have changed the productslistings with a code from the forum. Now products will be displayed 2 per row.

Does anybody know i can change it, that this will be displayed on the frontpage or just on hte featured category ?
I need that the listings in a category are still have the old format. 1 product per row.

Thanks Saskia

funkydunk 12-13-2002 09:50 AM

create a new template products2arow.tpl which is your 2 products a row list. Revert the products.tpl to the original settings.

create a copy of featured.tpl as featured2arow.tpl
as follows:
Code:

{* $Id: featured2arow.tpl,v 1.13 2002/05/20 06:55:20 lucky Exp $ *}
{capture name=dialog}
{if $f_products ne ""}
{include file="customer/main/products2arow.tpl" products=$f_products}
{else}
{$lng.txt_no_featured}
{/if}
{/capture}
{include file="dialog.tpl" title=$lng.lbl_featured_products content=$smarty.capture.dialog extra="width=100%"}


Then amend welcome.tpl to be
Code:

{* $Id: welcome.tpl,v 1.21 2002/09/10 12:36:34 zorg Exp $ *}
{if ($active_modules.Greet_Visitor ne "") AND ($smarty.cookies.GreetingCookie ne "")}
<h3>{$lng.lbl_welcome_back}, {$smarty.cookies.GreetingCookie} </h3>
{else}
<h3>{$lng.lbl_welcome_to} { $config.Company.company_name }</h3>
{/if}
{$lng.txt_welcome}



{if $active_modules.Bestsellers ne "" and $config.Modules.bestsellers_menu ne "Y"}
{include file="modules/Bestsellers/bestsellers.tpl"}
{/if}



{include file="customer/main/featured2arow.tpl" f_products=$f_products}

This should do it.

MOC 12-13-2002 03:43 PM

THANKS
 
HI,
thanks it works fine !!

THANKs THANKs THANKs

saskia :D


All times are GMT -8. The time now is 06:22 PM.

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