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

Categories featured products on a home page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-25-2009, 02:47 AM
 
TanyaG TanyaG is offline
 

Advanced Member
  
Join Date: Nov 2007
Posts: 94
 

Default Categories featured products on a home page

Hi, I would like to display 1 featured product from each category on a home page. Is anybody know how it can done? Many thanks
__________________
Tanya

x-cart version: 4.1.7 4.1.9. 4.2
Reply With Quote
  #2  
Old 03-25-2009, 02:57 AM
 
balinor balinor is offline
 

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

Default Re: Categories featured products on a home page

Easiest way is to manually add them in the featured products area. Are you saying you want them random?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 03-25-2009, 03:45 AM
 
TanyaG TanyaG is offline
 

Advanced Member
  
Join Date: Nov 2007
Posts: 94
 

Default Re: Categories featured products on a home page

Hi Balinor, thanks a lot for your reply. The thing is I want to display it somewhere in this code:

{foreach from=$subcategories item=subcat}
{ $subcat.category|escape }
{/foreach}.

Many thanks
__________________
Tanya

x-cart version: 4.1.7 4.1.9. 4.2
Reply With Quote
  #4  
Old 03-25-2009, 03:46 AM
 
balinor balinor is offline
 

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

Default Re: Categories featured products on a home page

You said the home page, that code is for showing the sub-categories - you can't show featured products within the sub-categories loop. Perhaps you could explain exactly what you are after?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 03-25-2009, 03:52 AM
 
TanyaG TanyaG is offline
 

Advanced Member
  
Join Date: Nov 2007
Posts: 94
 

Default Re: Categories featured products on a home page

Quote:
Originally Posted by balinor
You said the home page, that code is for showing the sub-categories - you can't show featured products within the sub-categories loop. Perhaps you could explain exactly what you are after?

This code displays root categories on a home page
__________________
Tanya

x-cart version: 4.1.7 4.1.9. 4.2
Reply With Quote
  #6  
Old 03-25-2009, 03:55 AM
 
balinor balinor is offline
 

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

Default Re: Categories featured products on a home page

Yes, but you still can't put featured products inside that code. Are you trying to show a featured product next to each category?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 03-25-2009, 04:50 AM
 
TanyaG TanyaG is offline
 

Advanced Member
  
Join Date: Nov 2007
Posts: 94
 

Default Re: Categories featured products on a home page

Quote:
Originally Posted by balinor
Yes, but you still can't put featured products inside that code. Are you trying to show a featured product next to each category?

Yes, I▓m would like to have root subcategories and featured product from each one.
__________________
Tanya

x-cart version: 4.1.7 4.1.9. 4.2
Reply With Quote
  #8  
Old 03-25-2009, 05:30 AM
 
balinor balinor is offline
 

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

Default Re: Categories featured products on a home page

You'd need to have something like that custom developed.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #9  
Old 03-27-2009, 01:16 AM
 
TanyaG TanyaG is offline
 

Advanced Member
  
Join Date: Nov 2007
Posts: 94
 

Default Re: Categories featured products on a home page

Balinor, thanks a lot for that. Maybe I didn’t explain my issue correctly but do you think it’s no easy way to display $f_products where $subcat.categoryid = “X”?

Many thanks
__________________
Tanya

x-cart version: 4.1.7 4.1.9. 4.2
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 03:29 PM.

   

 
X-Cart forums © 2001-2020