문제

I need to put some prices into a CMS page. How can I insert and display them accordingly to the currency selected?

도움이 되었습니까?

해결책

I would suggest, try to add the below code in theme .phtml file and add that phtml file in the cms page.

theme/test.phtml

$this->helper('Magento\Framework\Pricing\Helper\Data')->currency(10.5, true, false);

CMS Page content

{{block class="Magento\Framework\View\Element\Template" template="theme/test.phtml"}} 

I hope this will help you. Please let me know if this will not work, I have not tested this from my end.

Thanks.

다른 팁

Try to give different delivery price depend on store view.

As if you have a store with currency $ and the name of the store is us.. Then you need to change the store to US. Then add a different price for that store.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top