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 in Sub-Categories (https://forum.x-cart.com/showthread.php?t=26496)

nevets1219 11-09-2006 02:59 PM

Featured Products in Sub-Categories
 
In another thread I was testing variants and featured products list when I noticed this strange little thing. I'm not entirely sure if I misunderstood the X-Cart documentation but my understanding is in any category including root category we can have a seperate featured product lists which is viewable upon viewing the category. Now I'm not sure if it is viewable on the 2nd page of a particular sub-category but I'm not too worried about that just now, what I am concerned with is the fact that I'm not able to view ANY "featured product list" on my sub-category. At first I thought it was because one of the featured products was listed in that category already so I added another product from another category which yielded the same results. Looking at Webmaster Mode, it didn't show the featured product list's TPL so I'm wondering if I misunderstood something. I've looked on both the printable and regular pages and tested it on the demo X-Cart site and could not see the featured product list in my sub-category. Root category displays without any problems.

I'm not sure if one of the settings I have enabled/modified for X-Cart made it so but I'm using multiple columns (X-Cart demo isn't). If someone could verify or clarify the issue, that would be great.

balinor 11-09-2006 03:09 PM

Re: Featured Products in Sub-Categories
 
Open up customer/main/subcategories.tpl. Replace this:

{if $products eq ""}
{if $f_products ne ""}
<P>
{include file="customer/main/featured.tpl"}
{/if}
{/if}

with this:


{if $f_products ne ""}
<P>
{include file="customer/main/featured.tpl"}
{/if}

nevets1219 11-09-2006 03:44 PM

Re: Featured Products in Sub-Categories
 
Hm...I'm sorry I forgot to mention this was for a 4.1.3 site. Not sure if it makes a difference but it doesn't seem to include the featured product lists.

Thanks for the reply :)

balinor 11-09-2006 03:47 PM

Re: Featured Products in Sub-Categories
 
Ahhh...no, that was for the version in your signature :(

nevets1219 11-09-2006 03:51 PM

Re: Featured Products in Sub-Categories
 
Guess it's time for the inevitable....time to update the signature :S

balinor 11-09-2006 03:52 PM

Re: Featured Products in Sub-Categories
 
Looks like 4.1.3 has the same code...it didn't fix anything?

nevets1219 11-09-2006 04:10 PM

Re: Featured Products in Sub-Categories
 
Nope, I even added a little "Hello" message inside the IF like below and that didn't show. Cleared my cache too. Let me output $f_products to see what's in it.
Code:

{if $f_products ne ""}
HELLO
<P>
{include file="customer/main/featured.tpl"}
{/if}


EDIT: Yup $f_products is empty.


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

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