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

customizing the featured product on homepage

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-20-2010, 03:09 PM
 
Tami Indra Tami Indra is offline
 

Member
  
Join Date: Aug 2008
Posts: 16
 

Default 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?
__________________
Version 4.1.9
Add-on: X-SpecialOffers
Add-on: X-AOM (Advanced Order Management)
Reply With Quote
  #2  
Old 03-21-2010, 01:03 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default 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
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 04-04-2010, 12:53 PM
 
drudden drudden is offline
 

Advanced Member
  
Join Date: Dec 2005
Posts: 66
 

Default 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}
__________________
Thanks,

Dan

X-Cart Version 4.3.1
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 04:30 AM.

   

 
X-Cart forums © 2001-2020