Rohan Mitchell
|
a355a09a7c
|
Disable distributor change in checkout until it takes order cycles into account
|
2013-06-17 11:45:23 +10:00 |
|
Rohan Mitchell
|
6d22f56c86
|
Distribution selection form is not shown when there are products in the cart.
This form doesn't filter options based on which can supply the products in the cart,
so don't show it in those circumstances.
|
2013-06-17 11:29:36 +10:00 |
|
Rohan Mitchell
|
95de78f24e
|
Tidy-ups
|
2013-06-17 10:03:00 +10:00 |
|
Rohan Mitchell
|
065ea6a1a1
|
Remove controller specs that are now covered by OrderPopulator
|
2013-06-14 14:57:31 +10:00 |
|
Rohan Mitchell
|
4e5f0b9963
|
Set potential distributor and order cycle before attempting add to cart, revert on failure
|
2013-06-14 14:57:08 +10:00 |
|
Rohan Mitchell
|
1e0491e90f
|
Add spec for OrderPopulator#check_variant_available_under_distributor
|
2013-06-05 16:00:17 +10:00 |
|
Rohan Mitchell
|
e90077bb09
|
Add spec for OrderPopulator#order_cycle_required_for
|
2013-06-05 15:54:45 +10:00 |
|
Rohan Mitchell
|
4bcae29553
|
Add specs for OrderPopulator#check_distribution_provided_for and distribution_provided_for
|
2013-06-05 15:50:20 +10:00 |
|
Rohan Mitchell
|
f4df69765d
|
Add spec for OrderPopulator#distributor_can_supply_products_in_cart
|
2013-06-05 15:09:11 +10:00 |
|
Rohan Mitchell
|
3724a67d16
|
Add spec for OrderPopulator#set_cart_distributor_and_order_cycle
|
2013-06-05 15:04:42 +10:00 |
|
Rohan Mitchell
|
bfc300a3c2
|
Add spec for OrderPopulator#load_distributor_and_order_cycle
|
2013-06-05 15:01:52 +10:00 |
|
Rohan Mitchell
|
437da7425c
|
Add spec for OrderPopulator#attempt_cart_add
|
2013-06-05 14:55:56 +10:00 |
|
Rohan Mitchell
|
fb4f533976
|
Refactor OrderPopulator, add outside level spec
|
2013-06-05 14:44:57 +10:00 |
|
Rohan Mitchell
|
98f3197c08
|
WIP Move orders#populate logic to OrderPopulator class
|
2013-06-05 11:47:47 +10:00 |
|
Rohan Mitchell
|
6670c9543b
|
Remove spork
Conflicts:
Gemfile
Gemfile.lock
|
2013-06-04 14:04:26 +10:00 |
|
Rohan Mitchell
|
661ce4e597
|
Add to cart page does not allow the user to add a product from an order cycle that cannot supply the cart's products
|
2013-06-04 10:26:13 +10:00 |
|
Rohan Mitchell
|
cb703c2a66
|
Do not give order cycle choice when there is only one option
|
2013-05-28 16:35:39 +10:00 |
|
Rohan Mitchell
|
54fe63e7f3
|
User can add subsequent order cycles product to cart, show order cycle selection in page header along with distributor
|
2013-05-28 16:20:58 +10:00 |
|
Rohan Mitchell
|
1f9f5efb79
|
Add first product to cart with order cycle choice
|
2013-05-28 14:06:52 +10:00 |
|
Rohan Mitchell
|
9ef7da1339
|
Add OrderCycle#distributed_variants
|
2013-05-28 14:01:04 +10:00 |
|
Rohan Mitchell
|
fbac41b060
|
Add DistributionChangeValidator#available_order_cycles, analagous to available_distributors
|
2013-05-28 13:51:52 +10:00 |
|
Rohan Mitchell
|
fb5c050b48
|
Refactor DistributionChangeValidator#available_distributors specs
|
2013-05-28 13:44:17 +10:00 |
|
Rohan Mitchell
|
11755346ce
|
DistributionChangeValidator finds available order cycles for a product
|
2013-05-28 13:40:13 +10:00 |
|
Rohan Mitchell
|
3bedfc3d1d
|
Add OrderCycle distributing_product scope
|
2013-05-28 13:27:52 +10:00 |
|
Rohan Mitchell
|
46fd94eded
|
Fix minor test fail
|
2013-05-28 13:01:48 +10:00 |
|
Rohan Mitchell
|
0e08829a29
|
Rename DistributorChangeValidator to DistributionChangeValidator in preparation for expansion to include order cycles
|
2013-05-28 12:32:52 +10:00 |
|
Rohan Mitchell
|
02561ee252
|
With order cycle distribution, show error message when adding a product to cart with no distribution chosen
|
2013-05-28 11:54:46 +10:00 |
|
Rohan Mitchell
|
881bceb4d1
|
Fill in some missing / incorrect test cases for add to cart
|
2013-05-27 18:40:06 +10:00 |
|
Rohan Mitchell
|
7b332d0f53
|
Re-group add to cart specs
|
2013-05-27 18:12:59 +10:00 |
|
Rohan Mitchell
|
a2abcaf7bd
|
Push product_compatible_with_current_order and available_distributors_for down to DistributorChangeValidator, add tests
|
2013-05-27 13:50:33 +10:00 |
|
Rohan Mitchell
|
612e6aed2c
|
Include order cycle distributions in distributor choice when adding product to cart
|
2013-05-27 13:12:29 +10:00 |
|
Rohan Mitchell
|
a21783c814
|
Allow changing distributor when there are alternate distributors available that can service the cart's order
|
2013-05-27 13:11:30 +10:00 |
|
Rohan Mitchell
|
e3a419993c
|
Work around order cycles not having fees / shipping methods yet - notify bugsnag and provide an undefined shipping method
|
2013-05-27 13:00:12 +10:00 |
|
Rohan Mitchell
|
ff9200ebb8
|
Display order cycle distributors on product details page
|
2013-04-12 13:18:40 +10:00 |
|
Rohan Mitchell
|
6e7ee6481d
|
Fetch enterprises that are distributing a product via a product or order cycle distribution
|
2013-04-12 10:13:04 +10:00 |
|
Rohan Mitchell
|
f66ff0f8b1
|
Rename Enterprise#available_variants to distributed_variants to remove ambiguity between supplied/distributed variants
|
2013-04-05 16:51:51 +11:00 |
|
Rohan Mitchell
|
5649a50e28
|
Add tests around Enterprise#available_variants, make it also show variants distributed via an order cycle
|
2013-04-05 16:49:27 +11:00 |
|
Rohan Mitchell
|
02b524bfce
|
Fix our monkey-patch of spree's order merging to accomodate orders having an order cycle
|
2013-04-05 15:00:42 +11:00 |
|
Rohan Mitchell
|
990931e006
|
Test splitting the product listing by local/remote order cycle
|
2013-04-05 14:32:23 +11:00 |
|
Rohan Mitchell
|
f95c6a2386
|
Extract stub building into private method
|
2013-04-05 14:11:31 +11:00 |
|
Rohan Mitchell
|
e735a709bf
|
SplitProductsByDistribution deals with order cycles, and is tested by stubs
|
2013-04-05 14:05:30 +11:00 |
|
Rohan Mitchell
|
3aa48907a6
|
Add per-product tests for membership of distributor or order cycle
|
2013-04-05 12:45:01 +11:00 |
|
Rohan Mitchell
|
cf4fe269d1
|
Add specs for splitting products by various distribution options
|
2013-04-05 11:41:37 +11:00 |
|
Rohan Mitchell
|
a11f36e121
|
Provide pry in test env when we're not building with Travis
|
2013-04-05 11:30:26 +11:00 |
|
Rohan Mitchell
|
b3976bfbd0
|
Rename SplitProductsByDistributor to SplitProductsByDistribution
|
2013-04-05 11:08:19 +11:00 |
|
Rohan Mitchell
|
7cc24f7340
|
Handle the case where we're viewing a product from a remote distributor that we can change to
|
2013-04-05 10:28:08 +11:00 |
|
Rohan Mitchell
|
c681750698
|
Move distributor/OC browsing into its own acceptance spec
|
2013-03-27 11:58:38 +11:00 |
|
Rohan Mitchell
|
a9a58db137
|
Add spec for viewing product counts when both a distributor and an order cycle are selected, scope Spree::Product.with_order_cycles_outer joins to avoid clash when using both in_distributor and in_order_cycle in the same query
|
2013-03-15 12:17:29 +11:00 |
|
Rohan Mitchell
|
f349628202
|
Test that products by ProductDistribution are not shown
|
2013-03-15 11:41:58 +11:00 |
|
Rohan Mitchell
|
711f769bcd
|
Remove QueriesProductDistribution - replaced by Product and Enterprise scopes
|
2013-03-08 16:57:54 +11:00 |
|