-
-
Notifications
You must be signed in to change notification settings - Fork 725
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 Upgrade] Handle shipping_method_id in checkout #2683
Comments
From what I understand right now... The checkout workflow moves to the delivery state and order.created_proposed_shipments is executed (this rebuilds packages, shipments and shipping_rates from line_items and shipping_methods). In spree, this prepares everything for the user to select one shipping_rate (which is a shipping_method assigned to a shipment in the order). BUT we have a single step checkout, SO we need to have shipping_method selection before all this happens. I believe the simple solution is to keep doing what we are doing: presenting the user with a list of shipping_methods. To do this:
With this I think we will be able to drop the order.shipping_method_id column (which is a non-sense column in the multi shipments world anyway, not totally nonsense in OFN2 because we force 1 order to have 1 shipment). So, this is my current plan. I'll investigate a bit further and create a PR for this change. ping @sauloperez @mkllnk @HugsDaniel |
I agree with your plan. I don't really understand what you mean by
We'll be able to remove the column in OFN2 or not? |
yes, we will drop the column. I was just re-iterating the difference between spree v2 model and ofn v2 model. the column is non-sense in spree 2 because 1 order - n shipments. BUT, although we WILL drop it, the column would still make sense in ofn v2 because in ofn v2 1 order - 1 shipment. Sorry, I could have omitted that, it just creates unnecessary complexity. |
I think this will take me a bit of time to get finished so I'll wait for @mkllnk feedback before I start the work to be sure we are all aligned. |
fixed in #2775 |
…is now enough as order.shipping_method_id is not longer used and will be dropped. See openfoodfoundation#2683 for more details
…is now enough as order.shipping_method_id is not longer used and will be dropped. See openfoodfoundation#2683 for more details
…is now enough as order.shipping_method_id is no longer used and will be dropped. See openfoodfoundation#2683 for more details
We need to look at both
and
and review/replace shipping_method_id usage.
For reference, other files that may need review/changes:
See this commit for line numbers.
The text was updated successfully, but these errors were encountered: