I'm working on an EProducts module so people can sell E-Books and mp3s etc as per here
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