Magento 2 How to change currency symbol position left to rightGet price without currency symbol on one...
Incompressible fluid definition
Why is this code uniquely decodable?
Where is this triangular-shaped space station from?
Using AWS Fargate as web server
raspberry pi change directory (cd) command not working with USB drive
How to mitigate "bandwagon attacking" from players?
Quenching swords in dragon blood; why?
Meth dealer reference in Family Guy
Is Draco canonically good-looking?
Sometimes a banana is just a banana
What is the wife of a henpecked husband called?
Why is working on the same position for more than 15 years not a red flag?
Crystal compensation for temp and voltage
Naming things the POV character doesn't know
Can the Count of Monte Cristo's calculation of poison dosage be explained?
On what did Lego base the appearance of the new Hogwarts minifigs?
Avoiding morning and evening handshakes
Does Windows 10's telemetry include sending *.doc files if Word crashed?
ip vs ifconfig commands pros and cons
How Should I Define/Declare String Constants
Has the Isbell–Freyd criterion ever been used to check that a category is concretisable?
Meaning of すきっとした
Do commercial flights continue with an engine out?
Yeshiva University RIETS Semicha Yorei and Yadin
Magento 2 How to change currency symbol position left to right
Get price without currency symbol on one pageMagento currency symbol position - Euro for English languagecurrency position magentoChange Currency Symbol in Switcher & at ProductsCurrency symbol doesn't shownMagento 1.9: Change currency symbol as superscripted in whole magento siteGet currency symbol in blockHow to add Space between Currency Symbol and Price in Magento 2?Currency switcher not working for currency AED in Magento 2display base currency symbol in checkout
How to display price currency symbol after the amount on the right side.
from: USD333
to: 333USD
price currency magento2.2.3
add a comment |
How to display price currency symbol after the amount on the right side.
from: USD333
to: 333USD
price currency magento2.2.3
I hope my answer will solve your issue
– Nikunj Vadariya
Jun 9 '18 at 11:05
Please share your code.
– kunj
Jun 9 '18 at 11:17
add a comment |
How to display price currency symbol after the amount on the right side.
from: USD333
to: 333USD
price currency magento2.2.3
How to display price currency symbol after the amount on the right side.
from: USD333
to: 333USD
price currency magento2.2.3
price currency magento2.2.3
edited Jun 9 '18 at 11:56
Nikunj Vadariya
2,8741821
2,8741821
asked Jun 9 '18 at 10:51
Ahmad DarwishAhmad Darwish
1661520
1661520
I hope my answer will solve your issue
– Nikunj Vadariya
Jun 9 '18 at 11:05
Please share your code.
– kunj
Jun 9 '18 at 11:17
add a comment |
I hope my answer will solve your issue
– Nikunj Vadariya
Jun 9 '18 at 11:05
Please share your code.
– kunj
Jun 9 '18 at 11:17
I hope my answer will solve your issue
– Nikunj Vadariya
Jun 9 '18 at 11:05
I hope my answer will solve your issue
– Nikunj Vadariya
Jun 9 '18 at 11:05
Please share your code.
– kunj
Jun 9 '18 at 11:17
Please share your code.
– kunj
Jun 9 '18 at 11:17
add a comment |
1 Answer
1
active
oldest
votes
You can do it by writing single event observer
Create registration file:
VendorModuleregistration.php
<?php
MagentoFrameworkComponentComponentRegistrar::register(
MagentoFrameworkComponentComponentRegistrar::MODULE,
'Vendor_Module',
__DIR__
);
Create module file:
VendorModuleetcmodule.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
<module name="Vendor_Module" setup_version="1.0.0"></module>
</config>
Create event File:
app/code/Vendor/Module/etc/events.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
<event name="currency_display_options_forming">
<observer name="change_currency_position" instance="VendorModuleModelObserverChangeCurrencyPosition" />
</event>
</config>
Create observer File:
Write a observer
file in app/code/Vendor/Module/Model/Observer
with the file name ChangeCurrencyPosition.php
<?php
namespace VendorModuleModelObserver;
use MagentoFrameworkEventObserverInterface;
class ChangeCurrencyPosition implements ObserverInterface
{
public function execute(MagentoFrameworkEventObserver $observer)
{
$currencyOptions = $observer->getEvent()->getCurrencyOptions();
$currencyOptions->setData('position', MagentoFrameworkCurrency::RIGHT);
return $this;
}
}
Run Command:
php bin/magento setup:upgrade
It did not work, Magento 2.2.3 and base currency is AED not USD
– Ahmad Darwish
Jun 9 '18 at 11:11
@AhmadDarwish what error you got after doing same?
– Nikunj Vadariya
Jun 9 '18 at 11:15
No errors, nothing changing, where to trace the errors any log?
– Ahmad Darwish
Jun 9 '18 at 11:17
check error in var/log @AhmadDarwish
– Nikunj Vadariya
Jun 9 '18 at 11:19
I can see in exception.log : the Item (Magento\Catalog\Model\Product\Interceptor) with the same ID "704" already exists. at /var/www/html/herara/vendor/magento/framework/Data/Collection.php:404)
– Ahmad Darwish
Jun 9 '18 at 11:25
|
show 2 more comments
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f229295%2fmagento-2-how-to-change-currency-symbol-position-left-to-right%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can do it by writing single event observer
Create registration file:
VendorModuleregistration.php
<?php
MagentoFrameworkComponentComponentRegistrar::register(
MagentoFrameworkComponentComponentRegistrar::MODULE,
'Vendor_Module',
__DIR__
);
Create module file:
VendorModuleetcmodule.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
<module name="Vendor_Module" setup_version="1.0.0"></module>
</config>
Create event File:
app/code/Vendor/Module/etc/events.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
<event name="currency_display_options_forming">
<observer name="change_currency_position" instance="VendorModuleModelObserverChangeCurrencyPosition" />
</event>
</config>
Create observer File:
Write a observer
file in app/code/Vendor/Module/Model/Observer
with the file name ChangeCurrencyPosition.php
<?php
namespace VendorModuleModelObserver;
use MagentoFrameworkEventObserverInterface;
class ChangeCurrencyPosition implements ObserverInterface
{
public function execute(MagentoFrameworkEventObserver $observer)
{
$currencyOptions = $observer->getEvent()->getCurrencyOptions();
$currencyOptions->setData('position', MagentoFrameworkCurrency::RIGHT);
return $this;
}
}
Run Command:
php bin/magento setup:upgrade
It did not work, Magento 2.2.3 and base currency is AED not USD
– Ahmad Darwish
Jun 9 '18 at 11:11
@AhmadDarwish what error you got after doing same?
– Nikunj Vadariya
Jun 9 '18 at 11:15
No errors, nothing changing, where to trace the errors any log?
– Ahmad Darwish
Jun 9 '18 at 11:17
check error in var/log @AhmadDarwish
– Nikunj Vadariya
Jun 9 '18 at 11:19
I can see in exception.log : the Item (Magento\Catalog\Model\Product\Interceptor) with the same ID "704" already exists. at /var/www/html/herara/vendor/magento/framework/Data/Collection.php:404)
– Ahmad Darwish
Jun 9 '18 at 11:25
|
show 2 more comments
You can do it by writing single event observer
Create registration file:
VendorModuleregistration.php
<?php
MagentoFrameworkComponentComponentRegistrar::register(
MagentoFrameworkComponentComponentRegistrar::MODULE,
'Vendor_Module',
__DIR__
);
Create module file:
VendorModuleetcmodule.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
<module name="Vendor_Module" setup_version="1.0.0"></module>
</config>
Create event File:
app/code/Vendor/Module/etc/events.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
<event name="currency_display_options_forming">
<observer name="change_currency_position" instance="VendorModuleModelObserverChangeCurrencyPosition" />
</event>
</config>
Create observer File:
Write a observer
file in app/code/Vendor/Module/Model/Observer
with the file name ChangeCurrencyPosition.php
<?php
namespace VendorModuleModelObserver;
use MagentoFrameworkEventObserverInterface;
class ChangeCurrencyPosition implements ObserverInterface
{
public function execute(MagentoFrameworkEventObserver $observer)
{
$currencyOptions = $observer->getEvent()->getCurrencyOptions();
$currencyOptions->setData('position', MagentoFrameworkCurrency::RIGHT);
return $this;
}
}
Run Command:
php bin/magento setup:upgrade
It did not work, Magento 2.2.3 and base currency is AED not USD
– Ahmad Darwish
Jun 9 '18 at 11:11
@AhmadDarwish what error you got after doing same?
– Nikunj Vadariya
Jun 9 '18 at 11:15
No errors, nothing changing, where to trace the errors any log?
– Ahmad Darwish
Jun 9 '18 at 11:17
check error in var/log @AhmadDarwish
– Nikunj Vadariya
Jun 9 '18 at 11:19
I can see in exception.log : the Item (Magento\Catalog\Model\Product\Interceptor) with the same ID "704" already exists. at /var/www/html/herara/vendor/magento/framework/Data/Collection.php:404)
– Ahmad Darwish
Jun 9 '18 at 11:25
|
show 2 more comments
You can do it by writing single event observer
Create registration file:
VendorModuleregistration.php
<?php
MagentoFrameworkComponentComponentRegistrar::register(
MagentoFrameworkComponentComponentRegistrar::MODULE,
'Vendor_Module',
__DIR__
);
Create module file:
VendorModuleetcmodule.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
<module name="Vendor_Module" setup_version="1.0.0"></module>
</config>
Create event File:
app/code/Vendor/Module/etc/events.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
<event name="currency_display_options_forming">
<observer name="change_currency_position" instance="VendorModuleModelObserverChangeCurrencyPosition" />
</event>
</config>
Create observer File:
Write a observer
file in app/code/Vendor/Module/Model/Observer
with the file name ChangeCurrencyPosition.php
<?php
namespace VendorModuleModelObserver;
use MagentoFrameworkEventObserverInterface;
class ChangeCurrencyPosition implements ObserverInterface
{
public function execute(MagentoFrameworkEventObserver $observer)
{
$currencyOptions = $observer->getEvent()->getCurrencyOptions();
$currencyOptions->setData('position', MagentoFrameworkCurrency::RIGHT);
return $this;
}
}
Run Command:
php bin/magento setup:upgrade
You can do it by writing single event observer
Create registration file:
VendorModuleregistration.php
<?php
MagentoFrameworkComponentComponentRegistrar::register(
MagentoFrameworkComponentComponentRegistrar::MODULE,
'Vendor_Module',
__DIR__
);
Create module file:
VendorModuleetcmodule.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
<module name="Vendor_Module" setup_version="1.0.0"></module>
</config>
Create event File:
app/code/Vendor/Module/etc/events.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
<event name="currency_display_options_forming">
<observer name="change_currency_position" instance="VendorModuleModelObserverChangeCurrencyPosition" />
</event>
</config>
Create observer File:
Write a observer
file in app/code/Vendor/Module/Model/Observer
with the file name ChangeCurrencyPosition.php
<?php
namespace VendorModuleModelObserver;
use MagentoFrameworkEventObserverInterface;
class ChangeCurrencyPosition implements ObserverInterface
{
public function execute(MagentoFrameworkEventObserver $observer)
{
$currencyOptions = $observer->getEvent()->getCurrencyOptions();
$currencyOptions->setData('position', MagentoFrameworkCurrency::RIGHT);
return $this;
}
}
Run Command:
php bin/magento setup:upgrade
edited Jun 9 '18 at 12:28
answered Jun 9 '18 at 11:02
Nikunj VadariyaNikunj Vadariya
2,8741821
2,8741821
It did not work, Magento 2.2.3 and base currency is AED not USD
– Ahmad Darwish
Jun 9 '18 at 11:11
@AhmadDarwish what error you got after doing same?
– Nikunj Vadariya
Jun 9 '18 at 11:15
No errors, nothing changing, where to trace the errors any log?
– Ahmad Darwish
Jun 9 '18 at 11:17
check error in var/log @AhmadDarwish
– Nikunj Vadariya
Jun 9 '18 at 11:19
I can see in exception.log : the Item (Magento\Catalog\Model\Product\Interceptor) with the same ID "704" already exists. at /var/www/html/herara/vendor/magento/framework/Data/Collection.php:404)
– Ahmad Darwish
Jun 9 '18 at 11:25
|
show 2 more comments
It did not work, Magento 2.2.3 and base currency is AED not USD
– Ahmad Darwish
Jun 9 '18 at 11:11
@AhmadDarwish what error you got after doing same?
– Nikunj Vadariya
Jun 9 '18 at 11:15
No errors, nothing changing, where to trace the errors any log?
– Ahmad Darwish
Jun 9 '18 at 11:17
check error in var/log @AhmadDarwish
– Nikunj Vadariya
Jun 9 '18 at 11:19
I can see in exception.log : the Item (Magento\Catalog\Model\Product\Interceptor) with the same ID "704" already exists. at /var/www/html/herara/vendor/magento/framework/Data/Collection.php:404)
– Ahmad Darwish
Jun 9 '18 at 11:25
It did not work, Magento 2.2.3 and base currency is AED not USD
– Ahmad Darwish
Jun 9 '18 at 11:11
It did not work, Magento 2.2.3 and base currency is AED not USD
– Ahmad Darwish
Jun 9 '18 at 11:11
@AhmadDarwish what error you got after doing same?
– Nikunj Vadariya
Jun 9 '18 at 11:15
@AhmadDarwish what error you got after doing same?
– Nikunj Vadariya
Jun 9 '18 at 11:15
No errors, nothing changing, where to trace the errors any log?
– Ahmad Darwish
Jun 9 '18 at 11:17
No errors, nothing changing, where to trace the errors any log?
– Ahmad Darwish
Jun 9 '18 at 11:17
check error in var/log @AhmadDarwish
– Nikunj Vadariya
Jun 9 '18 at 11:19
check error in var/log @AhmadDarwish
– Nikunj Vadariya
Jun 9 '18 at 11:19
I can see in exception.log : the Item (Magento\Catalog\Model\Product\Interceptor) with the same ID "704" already exists. at /var/www/html/herara/vendor/magento/framework/Data/Collection.php:404)
– Ahmad Darwish
Jun 9 '18 at 11:25
I can see in exception.log : the Item (Magento\Catalog\Model\Product\Interceptor) with the same ID "704" already exists. at /var/www/html/herara/vendor/magento/framework/Data/Collection.php:404)
– Ahmad Darwish
Jun 9 '18 at 11:25
|
show 2 more comments
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f229295%2fmagento-2-how-to-change-currency-symbol-position-left-to-right%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I hope my answer will solve your issue
– Nikunj Vadariya
Jun 9 '18 at 11:05
Please share your code.
– kunj
Jun 9 '18 at 11:17