Pregunta

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

¿Fue útil?

Solución

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.

Otros consejos

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a magento.stackexchange
scroll top