I need to add the Saving percentage label to the product after the price on the category listing page and product details page.
I managed to do this for configurable products by adding the below code to
/app/design/frontend/theme/Magento_ConfigurableProduct/templates/product/price/final_price.phtml
<span class="price-percentage-pdp price-percentage">
<?php $percentage = 100 - round(($finalPriceModel->getAmount()->getValue() / $priceModel->getAmount()->getValue())*100); ?>
<?php echo $percentage ."% OFF"?>
</span>
This is working fine.
How & where can I add a special price percentages for simple products & bundle products?