-
Notifications
You must be signed in to change notification settings - Fork 24
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
Move 'shipping_preference' preference under PaypalOrder#to_json #152
Conversation
Cleanup of #134. @DanielePalombo I tried to cleanup the git history at the best I could. |
end | ||
|
||
def require_shipping? | ||
step_names = @order ? @order.checkout_steps : ::Spree::Order.checkout_steps.keys |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @retsef 👋
@order.checkout_steps
returns strings
::Spree::Order.checkout_steps.keys
returns symbols
Meaning step_names.include? 'delivery'
will always return false for the latter.
It would also be nice to move step_names
to another private method:
def step_names
@order ? @order.checkout_steps.map(&:to_sym) : ::Spree::Order.checkout_steps.keys
end
This issue has been automatically marked as stale because it has not had recent activity. It might be closed if no further activity occurs. Thank you for your contributions. |
Closing this pull request after a prolonged period of inactivity. If this issue is still present in the latest release, please ask for this pull request to be reopened. Thank you! |
…ddress is returned when order don't include 'delivery' step (cherry picked from commit ff5aa22)
@retsef sorry that stalebot closed this, I reopened and rebased, this is a much needed fix! 🙌 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙌 Thanks!
The CI is red for a (now fixed!) issue in the Solidus v3.2 branch
Fix #133 shipping_preference with 'NO_SHIPPING' is now provided under PaypalOrder#to_json, otherwise 'SET_PROVIDED_ADDRESS'