-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Extract currency bundle #1490
Extract currency bundle #1490
Conversation
Do the CurrencyBundle also allow for fixed prices ? |
@mrbase Yes, I have a currency based # calculator in a separate branch. It allows you to define the price per currency on the products. |
cool, thanks for the quick answer :) |
TBH. I don't see any real point in leaving the MoneyBundle, it's now so cut out that it's totally useless, it hold one Twig helper & one Form class... Of course I like the overall rename, as it's more accurate to what it does. |
Additionally can you leave those "services for updating exchange rates" for another PR? This would not pollute this PR, as it's big enough already IMO. |
|
This PR must be fix my problem with russian prices. |
@pjedrzejewski very often in our projects we have several representations of one price. "1020 руб."
"1020,00 руб."
"1020"
"One thousand twenty roubles "
"1 020 р."
"1 020 ₽"
... I think it would be useful to define price formats in the config file and optionally pass their codes to sylius_price.
What do you think about this idea? |
@jekill I think this is excellent idea and should be relatively easy to implement, but I will leave this for another PR, cause this is one is big enough and took long to finish. |
Extract currency bundle
Money should be only about money processing, especially that we use it in other bundles. I thought that extracting a CurrencyBundle and renaming the Money component to Currency makes sense.
Especially that we need more stuff, the base CurrencyContextInterface now lives in the component etc.
Services for updating exchange rates will follow soon, I need to do few tweaks.
Quick summary, cause I'm tired tonight: