In Magento we have “finalPrice” & “oldPrice”
Can anybody tell me how to check Price Type? Can we use
$priceCurrencyObject = $_objectManager->get('MagentoFrameworkPricingPriceCurrencyInterface');
My Solution is:
Magento_Catalogtemplatesproductpriceamountdefault.phtml , use
$block->getPrice()->getPriceCode() to get the price type string.
Or any function you can find which return object implements the
MagentoFrameworkPricingPricePriceInterface, you can call the
getPriceCode() to get the price type.
Or if you have the product object, just call $product->getPriceInfo()->getPrice()->getPriceCode();
Hoping it's helpful to you.
Answered by Yue Wang on October 21, 2020
0 Asked on July 24, 2020 by herve-tribouilloy
Get help from others!