Jump to:

2076 Posts in 857 Topics by 449 members

E-Commerce Modules

SilverStripe Forums » E-Commerce Modules » Swipestripe + Categories & how to order across multiple categories

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba, simon_w

Page: 1
Go to End
Author Topic: 328 Views
  • flipsidenz
    Avatar
    Community Member
    49 Posts

    Swipestripe + Categories & how to order across multiple categories Link to this post

    I have setup a site using Swipestripe, with Swipestripe categories. My client now wants to re-order their products differently across categories. However every product belongs to multiple categories.

    Reordering the SiteTree won't work as doing this will affect the ordering of all the categories a product belongs to (if that makes sense?).

    I am thinking that I will have to create another dataobject to manage a category/product/ordering relationship - but I just thought i'd check to see if anyone else has had to solve this problem?

  • Nivanka
    Avatar
    Community Member
    395 Posts

    Re: Swipestripe + Categories & how to order across multiple categories Link to this post

    I havent used the module before. but cant you use many_many_extrafields ?

    http://www.silverstripe.org/data-model-questions/show/19965

  • frankmullenger
    Avatar
    Forum Moderator
    51 Posts

    Re: Swipestripe + Categories & how to order across multiple categories Link to this post

    You can use a DataObject which maps to the join table (ProductCategory_Products) - this can be an easier way of managing than extraFields imo. If the client does not need an exact ordering across different categories you might be able to get away with a simple numeric field on Product which is a kind of weighting and then order products according to this value? It depends on whether they have a few products that they want to put front and centre of different categories or if they want a fairly specific order to the products I think.

    328 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.