M2 - Use price for calculation
Question
On the product detail page I need to use the price for calculation. How can I get the price and use it for calculation?
For example; $product_price / 12 = $outcome
Solution
$product->getFinalPrice();
Where $product
is the current product you are viewing.
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange