hello
Could you please help me with the following question:
where (in which file) calculates % of discount which is displayed in product slider (if product has special price on special tab) ?
Picture is attached
Thank you in advance
|
|
Hi,
This is generated in system/vendor/BurnEngine/catalog/plugin/ProductPlugin.php on row 335:
if ($product['special_num'] && $product['price_num']) {
$product['savings_num'] = round((1 - $product['special_num'] / $product['price_num'] ) * 100);
} else {
$product['savings_num'] = false;
}
BR,
ThemeBurn team
|
|
Glad to be of assistance!
BR,
ThemeBurn team
|
|