Webshop

Author Message

Evgeniy K

Thursday 27 April 2006 3:30:51 am

Hello.
I'm newbie, and now I'm trying eZ.
Is it possible to sort products at webshop by price attribute on the site pages? And is it possible to sort products randomly (shuffle)?
Thanks.
Sorry for my bad English, I'm Russian.
Best regards.
Evgeniy.

Stuart Fenton

Monday 01 May 2006 1:36:48 pm

You can specify sorting in the fetch statement used to fetch the objects to display. Add the ?sort_by? array to you fetch statement.

Have a look at:
http://ez.no/products/ez_publish/documentation/customization/tips_tricks/fetch_function_examples

Or if your using fetch_alias look at:
http://ez.no/products/ez_publish/documentation/reference/template_functions/miscellaneous/fetch_alias

You could link this to buttons on your screen to sort in the order you want.

As for random ordering their is a contribution called ?Shuffle? which will randomly sort an array.

You can find it here:
http://ez.no/community/contribs/template_plugins/extension_shuffle

Regards
Fats

-- Stuart

[email protected]
http://www.grandmore.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.