2

I just started learning Magento2. I was able to override template, assign new ones etc.

But I found it too typical to understand the price rendering. Specially after looking at the following:

https://mage2.pro/t/topic/352

Is there no way to do something like: $_product->getPrice()

Why it is so typical?

2

I was able to get product price with the following code:

$_productHelper = $this->helper('Magento\Catalog\Helper\Product');
$productPrice = $_productHelper->getFinalPrice($_product);
1
  • How can I also echo the currency with the price, so GBP 500.00 or 450 AED for LTR and RTL Dec 14 '17 at 11:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.