Commit Graph

39 Commits

Author SHA1 Message Date
Rohan Mitchell
f3ffba378a Add a product with variants to the cart with max quantity for a group buy 2012-08-03 18:05:45 +10:00
Rohan Mitchell
2d89640271 Instrument orders controller to debug populate_variant_attributes 2012-08-03 14:11:59 +10:00
Rohan Mitchell
768a170bb8 Fix with_products_on_hand query for server db compatibility 2012-08-03 08:21:45 +10:00
Rohan Mitchell
2db2fbcade Change set_variant_attribute to set_variant_attributes, implement it on Order 2012-08-02 14:45:27 +10:00
Rohan Mitchell
ea05f05576 When adding a group buy product to the cart, set the max quantity on the order 2012-08-02 14:29:05 +10:00
Rohan Mitchell
63bf25293d Only show distributors in sidebar that have products in stock 2012-08-02 11:49:10 +10:00
Rohan Mitchell
93867682bb Only show distributors in sidebar that have products 2012-08-02 11:33:36 +10:00
Andrew Spinks
7172fe0c87 added extra fields to order report. 2012-07-20 00:07:41 +10:00
Andrew Spinks
7e9a84087e cleaning up order report 2012-07-19 22:48:42 +10:00
Andrew Spinks
58e9cd3eeb fix distributor name in report 2012-07-15 21:00:10 +10:00
Andrew Spinks
54559c4a5f first cut at orders report. 2012-07-15 20:48:10 +10:00
Rohan Mitchell
718e54f933 Add distributor next_collection_at field, bulk edit in admin backend 2012-07-02 14:24:52 +10:00
Rohan Mitchell
4b9c0f01e2 Update admin backend for supplier/distributor address extraction 2012-06-26 14:54:35 +10:00
Rohan Mitchell
f3d52825ae Remove redirect_back_or_default, which was causing unexpected behaviour 2012-06-26 07:54:55 +10:00
Rohan Mitchell
98bcc9ce71 When adding first product to cart, add the product and set the distributor even if the order has a different distributor set 2012-06-25 06:57:24 +10:00
Rohan Mitchell
df831a9128 Do not add the product to cart if the chosen distributor is different from the order's distributor 2012-06-24 20:14:07 +10:00
Rohan Mitchell
4481ca83f9 OrdersController does not permit adding products with invalid distributors 2012-06-24 19:58:09 +10:00
Rohan Mitchell
a41c5d4735 Move distributor permissions onto order class, do not show links to change distributor if the action is invalid 2012-06-24 15:15:53 +10:00
Rohan Mitchell
7b92fcb614 Do not allow deselecting distributor after product added to cart at controller level 2012-06-24 14:56:27 +10:00
Rohan Mitchell
d3c80e99fc Do not allow changing distributor after product added to cart at controller level 2012-06-24 14:54:48 +10:00
Rohan Mitchell
3219006423 Push several request specs down to controller level, replace with scenario. Set order's distributor when adding product to cart 2012-06-24 13:21:36 +10:00
Rohan Mitchell
fc5795173e Do not add the product to cart if the user specifies a distributor that the product is not available at 2012-06-24 12:56:47 +10:00
Rohan Mitchell
99d6f0baa9 Require a distributor when adding a product to the cart 2012-06-24 12:13:33 +10:00
Rohan Mitchell
b2f5e23fa4 Test selecting distributor when adding item to cart, for no/remote distributor selected 2012-06-24 11:41:10 +10:00
Rohan Mitchell
a91722a593 Display distributor choice on add to cart form 2012-06-24 11:28:06 +10:00
Rohan Mitchell
34f95ffb4a Split products by local/remote distributor: apply to products, search results and taxon pages 2012-06-24 09:21:44 +10:00
Rohan Mitchell
5411685c83 Split products by local/remote distributor: logic 2012-06-24 07:36:56 +10:00
Rohan Mitchell
5e6c4de34b Leave a distributor 2012-06-23 12:33:38 +10:00
Rohan Mitchell
03b87225d0 Add spec for selecting a distributor, add distributor to order model, add controller method for selecting distributor 2012-06-22 11:25:32 +10:00
Rohan Mitchell
93e3f82392 Display product count next to taxons in sidebar 2012-06-21 16:15:40 +10:00
Rohan Mitchell
65d39e5867 Display supplier/distributor search results 2012-06-21 07:31:33 +10:00
Rohan Mitchell
b0a8645738 Display suppliers and distributors in sidebar 2012-06-20 17:44:11 +10:00
Andrew Spinks
c9effe5926 Add seperate address fields - don't become too attached to spree. 2012-04-29 17:31:47 +10:00
Andrew Spinks
7ea0f73398 begin adding suppliers 2012-04-22 14:51:24 +10:00
Andrew Spinks
147985b94d fix sorting of distributors by name 2012-04-22 12:58:40 +10:00
Andrew Spinks
f7372a80c2 add distributor to checkout 2012-04-09 09:56:37 +10:00
Andrew Spinks
3f1ed0ca06 make distributors work in spree admin framework. 2012-04-07 12:10:44 +10:00
Andrew Spinks
0a6852616d added distributors. 2012-03-31 19:16:57 +11:00
Andrew Spinks
b6ca20beee new rails 3.1.4 app 2012-03-27 10:10:26 +11:00