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

Fix shipping method factory for stores with alternate currency #2084

Merged
merged 1 commit into from
Jul 13, 2017

Conversation

Sinetheta
Copy link
Contributor

@Sinetheta Sinetheta commented Jul 12, 2017

Without this change, a store with an alternate default currency will not find shipping rates for it's orders and shipments for those orders won't be shipable.

Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -19,11 +19,11 @@
carrier 'UPS'
service_level '1DAYGROUND'

calculator { |s| s.association(:shipping_calculator, strategy: :build, preferred_amount: s.cost, preferred_currency: s.currency) }
calculator { |s| puts s.currency; s.association(:shipping_calculator, strategy: :build, preferred_amount: s.cost, preferred_currency: s.currency) }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Development artifact?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😳 this is why I never git add .

@jhawthorn jhawthorn merged commit c934ab0 into solidusio:master Jul 13, 2017
@bbuchalter
Copy link
Contributor

💚 specs for factories!

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

Successfully merging this pull request may close these issues.

5 participants