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

Featured Products Not Showing?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-03-2007, 08:52 PM
 
crcool75 crcool75 is offline
 

Advanced Member
  
Join Date: Jan 2006
Posts: 87
 

Default Featured Products Not Showing?

Hello,

I think we may have modified a template somehow removing featured products from displaying. When I add a featured product to a category it just doesn't show. Any ideas where to start? I see nothing in the home.tpl file.

Thanks
__________________
X-Cart Gold 4.4.0
Reply With Quote
  #2  
Old 10-04-2007, 12:24 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default Re: Featured Products Not Showing?

Are they appearing on the home page as they should?
Home page featured products are called from skin1/customer/main/welcome.tpl

Featured products on the categories pages are called from skin1/customer/main/subcategories.tpl
Look for this code at the bottom:
{include file="customer/main/featured.tpl"}

Don't forget, featured products only appear on the categories pages when there are no actual products, ie just subcategories.
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #3  
Old 10-04-2007, 05:57 AM
 
crcool75 crcool75 is offline
 

Advanced Member
  
Join Date: Jan 2006
Posts: 87
 

Default Re: Featured Products Not Showing?

Thanks paul,

No, they're not showing on the home page, but that's probably because I've altered something there. Our home page is different now.

How do I get it to show featured products at the top of the page regardless of if there are products in a category?
__________________
X-Cart Gold 4.4.0
Reply With Quote
  #4  
Old 10-04-2007, 06:15 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default Re: Featured Products Not Showing?

Try removing the if statement around it that says "if there are no products, show the featured products".
So:
{if $products eq ""}
{if $f_products ne ""}
<p />
{include file="customer/main/featured.tpl"}
{/if}
{/if}
becomes:

{if $f_products ne ""}
<p />
{include file="customer/main/featured.tpl"}
{/if}
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #5  
Old 10-04-2007, 06:52 AM
 
crcool75 crcool75 is offline
 

Advanced Member
  
Join Date: Jan 2006
Posts: 87
 

Default Re: Featured Products Not Showing?

I tried this different ways and it still won't work. I did test it in an empty category and they did show up though. I just need this on pages with products.
__________________
X-Cart Gold 4.4.0
Reply With Quote
  #6  
Old 10-04-2007, 12:42 PM
 
crcool75 crcool75 is offline
 

Advanced Member
  
Join Date: Jan 2006
Posts: 87
 

Default Re: Featured Products Not Showing?

I suppose nobody knows how to show featured products on a category page that has products already?
__________________
X-Cart Gold 4.4.0
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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:38 AM.

   

 
X-Cart forums © 2001-2020