-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Core][Cart] Cart locale update #5915
[Core][Cart] Cart locale update #5915
Conversation
Arminek
commented
Aug 29, 2016
Q | A |
---|---|
Bug fix? | no |
New feature? | yes |
BC breaks? | yes |
Related tickets | #5813 |
License | MIT |
I want to be able to see order currency on the order summary page | ||
|
||
Background: | ||
Given the store operates on a single channel in "France" |
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.
Didn't we change this steps to meet a default shop configuration?
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.
Yes we did but right now this feature is in progress. Or it has been already done.
591672e
to
01d5c83
Compare
@@ -222,7 +247,8 @@ protected function getDefinedElements() | |||
*/ | |||
private function getCountryNameOrDefault($code) | |||
{ | |||
$countryName = null === $code ? 'Select' : Intl::getRegionBundle()->getCountryNames('en')[$code]; | |||
$displayLocale = $this->localeContext->getLocaleCode(); |
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.
We should not depend on context here, the locale should be passed as an argument.
01d5c83
to
9270a36
Compare
$this->cartManager->persist($cart); | ||
$this->cartManager->flush(); | ||
} catch (CartNotFoundException $exception) { | ||
throw new HandleException(self::class, 'Sylius was unable to found cart.', $exception); |
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.
Shouldn't the "found" be in infinitive form?
25f9034
to
31a7ebe
Compare
</service> | ||
</services> | ||
|
||
</container> |
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.
Missing blank line
31a7ebe
to
1b06b2c
Compare
Great job Arek! 👍 |
[Core][Cart] Cart locale update