Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Spree 2 Upgrade] Remove call to #create_shipment! #2007

Closed
sauloperez opened this issue Dec 21, 2017 · 1 comment
Closed

[Spree 2 Upgrade] Remove call to #create_shipment! #2007

sauloperez opened this issue Dec 21, 2017 · 1 comment
Assignees

Comments

@sauloperez
Copy link
Contributor

sauloperez commented Dec 21, 2017

As described in go_to_state :payment in
https://community.openfoodnetwork.org/t/order-model-step7/979, Spree now creates
shipment objects out of packages in memory, which then presents in a form that
are going to be persisted when the user submits the form. Check it out in
283654d4a330924b171441427b26ce89469b4b04.

As a result, we can get rid of https://github.com/openfoodfoundation/openfoodnetwork/blob/master/app/models/spree/order_decorator.rb#L34

EDIT

Turns out that due to https://trello.com/c/jQuW8D5A and https://trello.com/c/prYaoPlB we can get rid of the whole custom checkout_flow

@sauloperez sauloperez changed the title Remove call to #create_shipment! Remove call to #create_shipment! Dec 21, 2017
@mkllnk mkllnk self-assigned this Jul 5, 2018
@mkllnk
Copy link
Member

mkllnk commented Jul 5, 2018

Turns out that due to https://trello.com/c/jQuW8D5A and https://trello.com/c/prYaoPlB we can get rid of the whole custom checkout_flow

I'm not sure about this. Yes, we can remove order.create_shipment!. And without creating a shipment, we don't need to check if the shipping method needs a shipment. But what about the Paypal issue? Has there been a survey to ask everyone if we can get rid of it?

@mkllnk mkllnk closed this as completed Aug 2, 2018
@luisramos0 luisramos0 changed the title Remove call to #create_shipment! [Spree 2 Upgrade] Remove call to #create_shipment! Aug 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants