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 Not Showing? (https://forum.x-cart.com/showthread.php?t=34358)

crcool75 10-03-2007 08:52 PM

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

pauldodman 10-04-2007 12:24 AM

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.

crcool75 10-04-2007 05:57 AM

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?

pauldodman 10-04-2007 06:15 AM

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}

crcool75 10-04-2007 06:52 AM

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.

crcool75 10-04-2007 12:42 PM

Re: Featured Products Not Showing?
 
I suppose nobody knows how to show featured products on a category page that has products already?


All times are GMT -8. The time now is 05:55 AM.

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