Created
March 31, 2021 16:20
-
-
Save jrick1229/fe4386e3a5fe1a103d24ae33eec35bbe to your computer and use it in GitHub Desktop.
Remove % from Product Add-Ons percentage based add-on
This file contains 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
<?php | |
add_filter( 'woocommerce_product_addons_option_price', 'PAO_remove_percentage', 1); | |
function PAO_remove_percentage() { | |
$price_raw = '( . $price_prefix . $price_raw )'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment