Front end Category Page

192 views
Skip to first unread message

Matthew Turk

unread,
Feb 22, 2018, 2:14:19 PM2/22/18
to XMPie Interest Group
Okay ... so I want to do something similar to the "random products" thing used on the Coffee homepage or in the group-products.html page BUT INSTEAD of random products display products from a specific Category.

Can I start with the following snippet but replace "data.randomProducts" with something that specifies a ProductGroupId?

<a class=""
   
href="{{product.Url}}"
   
role="button"
   
ng-repeat="product in data.randomProducts">

   ... content ...

</a>

Any help is greatly appreciated ...


Matt

p.s. is there a reference of front-end templates tags, ie  {{product.Name}} , {{product.Price}} , etc ......

Dave L

unread,
Feb 26, 2018, 5:03:04 PM2/26/18
to XMPie Interest Group
If I'm understanding you correctly, that functionality is built in, in the box.

In the config.xml file, you can specify which product group to show with the following line:
homePageGroupId="XXX"

XXX would be the product group # that you want to show. You can also create a specific group (something like "Featured Products") and have that as the products shown on the landing page. That way you can pull different products from different categories and have control over what is showing.

Matthew Turk

unread,
Mar 1, 2018, 12:46:18 PM3/1/18
to XMPie Interest Group
Dave,

I love simple solutions! Thank you ... I'd seen that before but didn't think homePageGroupId was related to the slider.

Thanks again for pointing out the "not-obvious-enough for me" to me.

Matt
Reply all
Reply to author
Forward
0 new messages