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

EProducts module


Reply


641 Views

Avatar
wildflower1975

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

https://code.google.com/p/silverstripe-ecommerce/issues/detail?id=131&colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Reporter%20Summary%20Opened

using this codebase

svn checkout http://silverstripe-ecommerce.googlecode.com/svn/trunk/ silverstripe-ecommerce-read-only
svn checkout http://svn.silverstripe.com/open/modules/payment/tags/0.3.0

2 things:

1.

When adding a product to a cart in

Director::set_environment_type("dev");

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)) {

2.

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)

cheers
Haydn

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