M2 - Use price for calculation
Pergunta
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
Solução
$product->getFinalPrice();
Where $product
is the current product you are viewing.
Licenciado em: CC-BY-SA com atribuição
Não afiliado a magento.stackexchange