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

add file upload to product


Go to End


3 Posts   2083 Views

Avatar
maryfran

Community Member, 12 Posts

16 December 2009 at 7:47am

Hi!

I am building an e-commerce site that would require the ability to upload an image from a customer's computer to a product. Is this possible, and where would I start?

Any advice would be appreciated as it is my first e-commerce site and I am building it for a friend as a favor and I really don't want to learn drupal or joomla to make this happen.

Avatar
Stijn

Community Member, 46 Posts

18 January 2011 at 8:47pm

Anybody?

Avatar
Jedateach

Forum Moderator, 238 Posts

19 January 2011 at 10:44am

@maryfran: to do this you'll need to understand how to "Decorate" dataobjects, how to build forms in SS, and also how to edit .ss templates.
You'll want to decorate Product with an ImageUploadForm that uploads the customer image to the product.

If you want 'many' images for one product, you'll probably want to decorate Product with "many_many" CustomerImages.

Following the SS tutorials may be a good place to start: http://doc.silverstripe.org/sapphire/en/tutorials