Maikel Linke
71ca292c92
Synchronise stock with DFC catalog during checkout
...
This will delay the checkout request by a few seconds if there's stock
to sync. But we minimise the chance of missing reduced stock from orders
on another platform.
We still have a gap between the checkout and placing a backorder. In
that time we can't guarantee enough stock. But let's tackle that after
the pilot.
2024-10-09 14:47:07 +11:00
Maikel Linke
adf0340153
Remove duplicate method
...
The method `CheckoutCallbacks#valid_order_line_items?` was a duplicate
of `OrderStockCheck#valid_order_line_items?`.
Apparently, it had been extracted twice:
* 1d074c2151
* 06eb98bdf4
But the first commit duplicated the method while the second moved the
original declaration.
2024-10-08 16:57:36 +11:00
Feruz Oripov
9d919938f3
Group Order && OrderCycle related services and specs
2024-03-16 19:07:08 +05:00
Matt-Yorkley
55bce9f1b2
Remove @voucher_adjustment instance variable
2023-07-04 13:13:05 +01:00
Matt-Yorkley
7a0b83076b
Move loading of saved cards out of checkout concern
2023-07-04 13:13:05 +01:00
Gaetan Craig-Riou
43ab881181
Rename order association to voucher_adjustments
...
The name vouchers is a bit confusing as the order is linked to a
voucher adjutment and not the actual voucher
2023-05-15 13:42:39 +10:00
Gaetan Craig-Riou
74e0b0f6b5
Add voucher adjustment loading to CheckoutCallbacks
...
This is needed so the voucher is loaded properly when the "checkout"
partials are render via cable_car.
2023-05-15 13:42:38 +10:00
David Cook
ef607da2c1
Revert "Fix: Customers can checkout with non-matching shipping and product categories"
2023-03-17 10:40:53 +11:00
Mohamed ABDELLANI
348f806bbe
remove load_shipping_methods
2023-03-01 10:53:03 +01:00
Mohamed ABDELLANI
89037e160c
Update app/controllers/concerns/checkout_callbacks.rb
...
Co-authored-by: Maikel <maikel@email.org.au >
2023-03-01 10:51:27 +01:00
Mohamed ABDELLANI
eab8e2be6c
load exclusively the shipping methods that support all the shipping categories of the line items
2023-03-01 10:51:27 +01:00
Jean-Baptiste Bellet
f2ac888f2c
Sort shipping methods case insensitive
2022-05-05 14:37:27 +02:00
Jean-Baptiste Bellet
34fcb4a1f7
Order shipping methods by name
...
+ create spec
2022-04-27 16:37:37 +02:00
Jean-Baptiste Bellet
0948ce47ed
Use EnterprisesHelper to retrieve shipping methods
...
that apply tag filtering on shipping methods
2022-03-16 11:10:46 +01:00
Jean-Baptiste Bellet
e3a529be5d
Display only shipping method that are set as front end available
...
and update the tests as well
2022-03-10 16:15:50 +01:00
Matt-Yorkley
370ec17818
Improve countries and states loading
2022-01-30 11:33:31 +00:00
Matt-Yorkley
dfbd384c95
Refactor embedding to a Concern
2022-01-18 12:22:06 +00:00
Jean-Baptiste Bellet
a80818d2b6
Fix rubocop warning
...
Extra empty line detected at module body end.
2021-12-09 11:30:57 +01:00
jibees
53e12fb5e5
Get rid of conditional branches with & operator
...
Co-authored-by: Maikel <maikel@email.org.au >
2021-12-09 11:12:23 +01:00
Jean-Baptiste Bellet
68e4d55f80
Avoid ternary operator
2021-12-07 16:27:22 +00:00
Jean-Baptiste Bellet
e89caf7a0d
Add stripe as payment method
2021-12-07 16:27:22 +00:00
Luis Azcuaga
e8fd89a6d2
Run rubocop over existing todo
2021-10-25 21:28:28 -05:00
Matt-Yorkley
71412f8d4b
Update validations
2021-09-06 14:22:28 +01:00
Matt-Yorkley
9d6e5e9420
Remove currently unused code
2021-09-01 15:04:53 +01:00
Matt-Yorkley
3dd8ed85b4
Implement manual shipping method selection
2021-09-01 14:16:32 +01:00
Andy Brett
759c5d6bdd
don't override existing addresses on order with AddressFinder
2021-08-25 13:11:48 -07:00
Matt-Yorkley
1d074c2151
Extract callbacks to a concern
2021-08-12 13:06:50 +01:00