Matt-Yorkley
|
8bf3f72ad3
|
Extract CableCar responses code to a concern
|
2021-09-08 10:34:34 +01:00 |
|
Matt-Yorkley
|
5ef34347a3
|
Implement optional non-Angular flash messages
|
2021-09-08 10:34:34 +01:00 |
|
Matt-Yorkley
|
e48b9d84e5
|
Extract boilerplate code
|
2021-09-08 10:34:34 +01:00 |
|
Matt-Yorkley
|
03abc395f2
|
Update responses to use cable_ready
|
2021-09-08 10:34:34 +01:00 |
|
Matt-Yorkley
|
9be73a8ff1
|
Respond with HTTP error code on update failure
|
2021-09-08 10:34:34 +01:00 |
|
Matt-Yorkley
|
fb7a3a681b
|
Validate attributes per checkout step and decouple order-advancing
|
2021-09-06 14:25:16 +01:00 |
|
Matt-Yorkley
|
70513ae989
|
Don't transition to address before page load
|
2021-09-05 20:19:22 +01:00 |
|
Matt-Yorkley
|
9d6e5e9420
|
Remove currently unused code
|
2021-09-01 15:04:53 +01:00 |
|
Matt-Yorkley
|
1fca7d2a6c
|
Remove error-clearing from edit action
|
2021-09-01 15:04:53 +01:00 |
|
Matt-Yorkley
|
4cff185b4b
|
Extract params handling to service
|
2021-09-01 15:04:53 +01:00 |
|
Matt-Yorkley
|
57504f42d8
|
Move validations to state transitions
|
2021-09-01 15:04:53 +01:00 |
|
Matt-Yorkley
|
9800483433
|
Simplify displaying selected shipping method
|
2021-09-01 15:04:33 +01:00 |
|
Matt-Yorkley
|
b7e1882bd8
|
Simplify setting address params
|
2021-09-01 15:04:33 +01:00 |
|
Matt-Yorkley
|
3fabe308cd
|
Extract #shipping_and_billing_match? helper
|
2021-09-01 15:04:33 +01:00 |
|
Matt-Yorkley
|
ac4d721de0
|
Extract #set_payment_amount method
|
2021-09-01 15:04:33 +01:00 |
|
Matt-Yorkley
|
2786fb30ba
|
Simplify order advancing process
|
2021-09-01 15:04:33 +01:00 |
|
Matt-Yorkley
|
ebe2923512
|
Improve form outputs and error handling
|
2021-09-01 14:16:32 +01:00 |
|
Andy Brett
|
fba7699d0b
|
select shipping method when advancing to payment
|
2021-08-31 11:00:54 +02:00 |
|
Jean-Baptiste Bellet
|
a1438f91e9
|
Display error on email (triggered by advance_order_state method)
|
2021-08-31 11:00:54 +02:00 |
|
Jean-Baptiste Bellet
|
748a37f670
|
Terms and conditions error message
|
2021-08-26 09:28:31 +02:00 |
|
Jean-Baptiste Bellet
|
44ab87961a
|
i18nize the global error message
|
2021-08-26 09:28:31 +02:00 |
|
Andy Brett
|
bee1b1a097
|
respect checkbox for ship address same as bill address
|
2021-08-25 15:22:25 -07:00 |
|
Andy Brett
|
d86148420a
|
improve shipping_method_id handling
|
2021-08-24 12:29:48 -07:00 |
|
Andy Brett
|
7dd2c09641
|
ensure terms are accepted before order is placed
|
2021-08-24 12:29:23 -07:00 |
|
Andy Brett
|
3414d9f057
|
clear errors on ship address as well
|
2021-08-24 12:15:20 -07:00 |
|
Andy Brett
|
71076d36a1
|
favor dig to protect against nils
|
2021-08-24 11:54:02 -07:00 |
|
Andy Brett
|
874e1d7f02
|
only advance order to payment if no payment exists
|
2021-08-24 11:23:08 -07:00 |
|
Andy Brett
|
417770e716
|
guard against nil when populating ship address
|
2021-08-24 11:22:20 -07:00 |
|
Andy Brett
|
ea695105b5
|
populate ship address with bill address if no ship address
|
2021-08-24 10:57:36 -07:00 |
|
Jean-Baptiste Bellet
|
9fd126ca0f
|
The ship address is filled from bill address for some attributes
firstname, lastname and phone are the same between those two address. Fill it automatically.
|
2021-08-23 15:42:29 +02:00 |
|
Jean-Baptiste Bellet
|
1ecfeca88c
|
Populate view with both shipping_method_id & ship_address_same_as_billing
... and then handle correctly the display of the form
|
2021-08-23 15:23:53 +02:00 |
|
Jean-Baptiste Bellet
|
fe65359d71
|
Display no shipping method selected error
|
2021-08-23 10:16:53 +02:00 |
|
Andy Brett
|
3bee30ac60
|
clear error messages on order and bill address on first load
|
2021-08-20 09:18:08 -07:00 |
|
Jean-Baptiste Bellet
|
26c5361b0a
|
set shipping method only if param is present
|
2021-08-20 09:18:08 -07:00 |
|
Andy Brett
|
138b7824ba
|
remove ship address if shipping method does not require it
|
2021-08-19 10:18:11 -07:00 |
|
Andy Brett
|
dd00c30503
|
fill ship address with bill address if checkbox is checked
|
2021-08-19 10:17:51 -07:00 |
|
Andy Brett
|
c07046e2f6
|
return an error if no shipping method is selected
|
2021-08-19 10:16:46 -07:00 |
|
Matt-Yorkley
|
fb6ee65865
|
Remove more (currently) unused code
|
2021-08-12 17:24:20 +01:00 |
|
Matt-Yorkley
|
1d074c2151
|
Extract callbacks to a concern
|
2021-08-12 13:06:50 +01:00 |
|
Matt-Yorkley
|
1147c5b2ca
|
Update saved address loading
|
2021-08-12 12:53:45 +01:00 |
|
Matt-Yorkley
|
026e51081c
|
Clear invalid payments
When going back and changing the payment option, the previous payment gets invalidated.
|
2021-08-12 12:53:45 +01:00 |
|
Matt-Yorkley
|
41c62b97d5
|
Use flash.now unless redirecting
|
2021-08-12 12:53:45 +01:00 |
|
Matt-Yorkley
|
dbefd95b5e
|
Improve order workflow shipping method selection
|
2021-08-12 12:53:45 +01:00 |
|
Matt-Yorkley
|
5d9c4315d8
|
Remove dead code
|
2021-08-12 12:53:45 +01:00 |
|
Matt-Yorkley
|
99f0672f9d
|
Set order amount when creating payment object
|
2021-08-12 12:53:45 +01:00 |
|
Matt-Yorkley
|
598e81ed32
|
Progress order to address at start of checkout
|
2021-08-12 12:53:45 +01:00 |
|
Matt-Yorkley
|
7e8daea233
|
Reduce data loading on steps
|
2021-08-12 12:53:45 +01:00 |
|
Matt-Yorkley
|
4916f823aa
|
Handle order confirmation
|
2021-08-12 12:53:45 +01:00 |
|
Matt-Yorkley
|
41ffffe170
|
Tidy up use of @checkout_step
|
2021-08-12 12:53:45 +01:00 |
|
Matt-Yorkley
|
070cb1abc1
|
Improve checkout flow logic
|
2021-08-11 15:54:21 +01:00 |
|