Last active
December 7, 2021 08:46
-
-
Save AnanthFlycart/e815d897b5a5d8e96598eec65fc414f7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Only Show Sale/Discount Price in Strikeout (Remove Initial/Original Price Html - Del tags) | |
| add_filter('advanced_woo_discount_rules_strikeout_price_html', function ($html, $original_price, $discounted_price, $is_variable_product, $initial_price_html, $separator) { | |
| if ($original_price != $discounted_price) { | |
| $html = '<ins>' . $discounted_price . '</ins>'; | |
| } | |
| return $html; | |
| }, 10, 6); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment