M2 - Use price for calculation
سؤال
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
المحلول
$product->getFinalPrice();
Where $product
is the current product you are viewing.
لا تنتمي إلى magento.stackexchange