Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

E-Commerce Modules /

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, Ed, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba

How to extend Ecommerce without affedting the upgrade path of the module


Go to End


1158 Views

Avatar
DusX

Community Member, 12 Posts

29 January 2011 at 11:56am

I know that ecommerce is going through a lot of development :)
so I am asking this question here, since some of you may know what will be the best long term answer for me.

I am creating a site that will use the ecommerce module.
I have a public ecommerce shop (broken into 2, 1 for english 1 for french)
I want to use the products in the store admin to populate data in a complex order form for wholesale customers.

So we have products being sold to the public (retail) and we have products offered at wholesale pricing.
each product will need a Boolean (visible) for each of: Public, Wholesale, and a Public product catalogue (used to solicit wholesale customers)
So that I can determine if it will be offered in the Public store, Wholesale, catalogue, order form, a combination, or not at all.

Of course there will be additional data that I must add for each product that will only appear depending on the section it is being viewed and the user rights at that time.

SO I ask, for suggestions on how to add my data to the ecommerce.Products in a method that is least likely to cause problems in the near future?

Can this be accomplished by decorating, or is this going to be too much to decorate? Is there another method I should be looking at, I know there are plans to have extensions to ecommerce, so would that be a better approach? AND if so what is the approach to creating an extension?