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)
-   -   Categories featured products on a home page (https://forum.x-cart.com/showthread.php?t=46527)

TanyaG 03-25-2009 02:47 AM

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

balinor 03-25-2009 02:57 AM

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?

TanyaG 03-25-2009 03:45 AM

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

balinor 03-25-2009 03:46 AM

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?

TanyaG 03-25-2009 03:52 AM

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

balinor 03-25-2009 03:55 AM

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?

TanyaG 03-25-2009 04:50 AM

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.

balinor 03-25-2009 05:30 AM

Re: Categories featured products on a home page
 
You'd need to have something like that custom developed.

TanyaG 03-27-2009 01:16 AM

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


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.