| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
|
|
||||||||||
| X-Cart Home |
Categories featured products on a home page | |||
![]() |
|
||
|
|
Thread Tools | Search this Thread |
|
#1
|
|||||||
|
|||||||
|
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 |
|||||||
|
#2
|
|||||||
|
|||||||
|
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 |
|||||||
|
#3
|
|||||||
|
|||||||
|
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 |
|||||||
|
#4
|
|||||||
|
|||||||
|
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 |
|||||||
|
#5
|
|||||||
|
|||||||
|
Quote:
This code displays root categories on a home page
__________________
Tanya x-cart version: 4.1.7 4.1.9. 4.2 |
|||||||
|
#6
|
|||||||
|
|||||||
|
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 |
|||||||
|
#7
|
|||||||
|
|||||||
|
Quote:
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 |
|||||||
|
#8
|
|||||||
|
|||||||
|
You'd need to have something like that custom developed.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
#9
|
|||||||
|
|||||||
|
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 |
|||||||
|
|
|||
|
X-Cart forums © 2001-2020
|
|||