Initial directory structure.

git-svn-id: https://silverstripe-ecommerce.googlecode.com/svn/trunk@1 950b781c-c544-efab-2f99-90083ee69683
initial code import (ss E-Commerce 0.6 beta 1)

Imported SilverStripe e-commerece 0.6 code to start the ball rolling on this project. Further comits will be made from this point.

git-svn-id: https://silverstripe-ecommerce.googlecode.com/svn/trunk@2 950b781c-c544-efab-2f99-90083ee69683
Bulk comit of changes by Jeremy. Details as follows:


    * Modified code to work with SS 2.4, and payment trunk as @ revision 103257. This mainly involved supporting the Money class.
    * Separated out unnecessary css styling. The default style is very much tied to black candy. (This can be put into a theme)
    * Improved efficiency of ProductGroup to make one database call to retrieve products. All ProductGroup children are retrieved by default, rather than just the immediate children.
    * Removed 'ShowInMenus' condition for displaying group products.
    * Added sorting controls to ProductGroup pages
    * Added pagination to default ProductGroup template
    * Removed separation of featured and non-featured products. The default sort is set to show featured products, then the rest by title (similar to TradeMe.co.nz)
    * Tidied up invoice printing
    * Got the 'all orders' SS report working again
    * Added 'Store' model admin for orders
	* Show products in multiple categories (does not yet include recursive sub-category products)
	* Variations of the same product can now be added to the cart together
	* Prevented order payment form showing on checkout template if nothing is in shopping cart.
	* Re-ordered CMS fields so they are more visible (eg price, weight, model)
	* Updated sitetree icons (product = package, checkout = shopping cart, account = contact card)
	* Include shopping cart page type
	* Removed quantity selectors from products on group page, as they can be updated using the cart on the left.

git-svn-id: https://silverstripe-ecommerce.googlecode.com/svn/trunk@3 950b781c-c544-efab-2f99-90083ee69683
Replaced all instances of Database::alteration_message with DB::alteration_message

thanks to HansR for finding this.

git-svn-id: https://silverstripe-ecommerce.googlecode.com/svn/trunk@17 950b781c-c544-efab-2f99-90083ee69683
Included invoice template

git-svn-id: https://silverstripe-ecommerce.googlecode.com/svn/trunk@49 950b781c-c544-efab-2f99-90083ee69683
Fixed order not deleting in 'store' ModelAdmin.
Now when an order is deleted, the associated attributes, statuslogs, and payments are deleted also.

Resolves issue: 3

Thanks to: rw.DusXYZ for finding the bug

git-svn-id: https://silverstripe-ecommerce.googlecode.com/svn/trunk@50 950b781c-c544-efab-2f99-90083ee69683
Introduced NumberSold Product attribute. The number of products sold is re-calculated when an order is placed.

Added reporting to the back-end.

Added sort option for 'Most Popular'.

git-svn-id: https://silverstripe-ecommerce.googlecode.com/svn/trunk@51 950b781c-c544-efab-2f99-90083ee69683
template changes. Removing default styling.

git-svn-id: https://silverstripe-ecommerce.googlecode.com/svn/trunk@52 950b781c-c544-efab-2f99-90083ee69683
Created Burnbright branch for separate code work

git-svn-id: https://silverstripe-ecommerce.googlecode.com/svn/branches/burnbright@53 950b781c-c544-efab-2f99-90083ee69683
Introduced the ability to disable purchasing on the site via a static variable.

Fixed up basic css, and template styling slightly

git-svn-id: https://silverstripe-ecommerce.googlecode.com/svn/branches/burnbright@54 950b781c-c544-efab-2f99-90083ee69683
fixed up AllowPurchase function conflicting with db field

git-svn-id: https://silverstripe-ecommerce.googlecode.com/svn/branches/burnbright@55 950b781c-c544-efab-2f99-90083ee69683
modified Product template so variations still show even if they can't be purcahsed. Modified AllowPurchase on variation to check if the Product itself can be purcahsed. Made model/InternalItemID fields longer.


git-svn-id: https://silverstripe-ecommerce.googlecode.com/svn/branches/burnbright@73 950b781c-c544-efab-2f99-90083ee69683
Removed 'this is a featured product' from Product template.
Changed wording of variations table.

Modified behaviour of ProductGroup ProductsShowable ...now shows products if allow purchase is disabled.

git-svn-id: https://silverstripe-ecommerce.googlecode.com/svn/branches/burnbright@74 950b781c-c544-efab-2f99-90083ee69683
Added recording member on payment.
Modified payment summary, searchable fields and default sort. Also added setPaidObject method on EcommercePayment decorator.
Added ability to disable AjaxQuantityField javascript.
Renamed 'AjaxQuantityField' to 'QuantitityField'
Modified shopping cart to allow showing Quantity field, even if quantity is 0.
Modified shopping cart to store Product_OrderItems in session indexed by productID.
Added functions to shoppingcart: get_item($key,$value), get_item_by_id($id)
Added clear function to shopping cart controller
Modified cart controller additem function to create a new item when no item exists.
Modified summary fields on product, added default sort, changed Item() function to return a dud item (qty 0) if there is no such item in the cart.
Added decorator hooks to various classes

git-svn-id: https://silverstripe-ecommerce.googlecode.com/svn/branches/burnbright@75 950b781c-c544-efab-2f99-90083ee69683
Attempting to change Payment static fields messes with DataObject static fields

git-svn-id: https://silverstripe-ecommerce.googlecode.com/svn/branches/burnbright@77 950b781c-c544-efab-2f99-90083ee69683
Cart improvements

git-svn-id: https://silverstripe-ecommerce.googlecode.com/svn/branches/burnbright@79 950b781c-c544-efab-2f99-90083ee69683
re-enabled price required for purchase

git-svn-id: https://silverstripe-ecommerce.googlecode.com/svn/branches/burnbright@80 950b781c-c544-efab-2f99-90083ee69683
Merged in burnbright branch.
- various comments
- checkout messages now have proper css classes eg: saved details is 'good' , not 'bad'
- attempted to add summary fields for payment
- Order Country is now Varchar instead of Text
- added default_sort to order
- removed 'number sold' calculation - too intensive (should be done by a daily task or something)
- fixed a 2.4/Payment compatibilty issue with Ammount
- Added summary fields to OrderAttribute
- added ability to disable AjaxQuantityField javascript
- renamed AjaxQuantityField to QuantityField
- Allowed having a quantity of 0 in an AjaxQuantityField (required some changes to cart, product, variations too)
- Increased length of Model, and InternalItemID on Product
- added ability to globally disable purchasing (only viewing)
- moved add/remove product functions to cart controller, rather than Product controller
-added hook to OrderForm for modifying order form
-various default css and template changes

git-svn-id: https://silverstripe-ecommerce.googlecode.com/svn/trunk@84 950b781c-c544-efab-2f99-90083ee69683
creating sunnysideup branch

git-svn-id: https://silverstripe-ecommerce.googlecode.com/svn/branches/sunnysideup@85 950b781c-c544-efab-2f99-90083ee69683
first go at replacing ` in SQL statements with ` / " depending on the SS version / requirements.

git-svn-id: https://silverstripe-ecommerce.googlecode.com/svn/branches/sunnysideup@88 950b781c-c544-efab-2f99-90083ee69683