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

Featured Products in Sub-Categories

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-09-2006, 02:59 PM
 
nevets1219 nevets1219 is offline
 

eXpert
  
Join Date: Jun 2006
Posts: 351
 

Default 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.
__________________
4.1.8
Reply With Quote
  #2  
Old 11-09-2006, 03:09 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 11-09-2006, 03:44 PM
 
nevets1219 nevets1219 is offline
 

eXpert
  
Join Date: Jun 2006
Posts: 351
 

Default 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
__________________
4.1.8
Reply With Quote
  #4  
Old 11-09-2006, 03:47 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Featured Products in Sub-Categories

Ahhh...no, that was for the version in your signature
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 11-09-2006, 03:51 PM
 
nevets1219 nevets1219 is offline
 

eXpert
  
Join Date: Jun 2006
Posts: 351
 

Default Re: Featured Products in Sub-Categories

Guess it's time for the inevitable....time to update the signature :S
__________________
4.1.8
Reply With Quote
  #6  
Old 11-09-2006, 03:52 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Featured Products in Sub-Categories

Looks like 4.1.3 has the same code...it didn't fix anything?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 11-09-2006, 04:10 PM
 
nevets1219 nevets1219 is offline
 

eXpert
  
Join Date: Jun 2006
Posts: 351
 

Default 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.
__________________
4.1.8
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 11:46 AM.

   

 
X-Cart forums © 2001-2020