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.

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

EProducts module

Go to End



Community Member, 59 Posts

14 April 2011 at 3:06pm

Edited: 14/04/2011 3:41pm

I'm working on an EProducts module so people can sell E-Books and mp3s etc as per here

using this codebase

svn checkout silverstripe-ecommerce-read-only
svn checkout

2 things:


When adding a product to a cart in


mode I get an Notice error on line 256 of Shoppingcart.php saying $status is an undefined variable - just set it to null and the error goes away

if($className = Session::get(self::get_shopping_cart_message_index().".Status", $status)) {


How can I find the Products in from a particular Order?

I think it's got something to do with the OrderAttribute table which says which type of Products were in the Order but not exactly which ProductID

I thought OrderItem might be a clue but that just has a BuyableID which I think is the ProductID but no reference to the Order (that I can tell)


If you stare at something long enough till come to you :P

Order.ID = OrderAttribute.OrderID and OrderAttribute.ID = OrderItem.ID and OrderItem.BuyableID = Product.ID