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)
-   -   customizing the featured product on homepage (https://forum.x-cart.com/showthread.php?t=52920)

Tami Indra 03-20-2010 03:09 PM

customizing the featured product on homepage
 
I'm using the following tag to display featured products on my homepage (welcome.tpl):

Code:

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

It works perfectly, but displays the product exactly the same as it does on category pages, and I need to change that.

I need to resize the thumbnail and omit all but the product name, so the customer will click through to the product page for more info.

The problem I'm having is with featured.tpl. I've stripped out everything but the following code, since I'm not using a featured products page:

Code:

{include file="dialog.tpl" content=$smarty.capture.dialog extra='width="100%"'}

How do I work with this? Or, is there another way to go about it?

cflsystems 03-21-2010 01:03 PM

Re: customizing the featured product on homepage
 
If you want them to look differently you need to create new products_t or products_list template to use one front page

drudden 04-04-2010 12:53 PM

Re: customizing the featured product on homepage
 
Quote:

Originally Posted by Tami Indra
How do I work with this? Or, is there another way to go about it?


You might be able to use a conditional statement in products_t.tpl to accomplish what you need.

Code:

{if $main eq "catalog" && $current_category.category eq ""} show these product thumbnail dimensions on the homepage
{else}
show the default product thumbnail dimensions on all other pages
{/if}



All times are GMT -8. The time now is 09:18 AM.

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