I've added a custom price attribute called "rrp" in magento 2.1, which i like to show on frontends category- and product-page.
But in frontend, price is shown with 4 decimals, for example 10.0000 instead 10.00, and without currency symbol and without attribute label.
code i've used to show the attribute value:
<?php /* @escapeNotVerified */ echo $_helper->productAttribute($_product, $_product->getRrp(), 'rrp') ?>
to show attribute label also, i've tried following code, but this doesn't work:
<?php /* @escapeNotVerified */ echo $_helper->productAttribute($_product, $_product->getRrp(), 'rrp'); $_product->getResource()->getAttribute('rrp')->getStoreLabel() ?>
How i could add global currency format to the attribute?
And how i could add the attribute label?
Thanks a lot for your help and have a good day!