Created
January 4, 2022 12:19
-
-
Save Sirvijver/36d675967f61f4c04d18bdbe1c5c70f8 to your computer and use it in GitHub Desktop.
Change Zettle synced price from discount to normal price
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
| function return_custom_price($price, $product) | |
| { | |
| if ($product instanceof WC_Product_Variable) { | |
| return $price; | |
| } | |
| return $product->get_regular_price(); | |
| } | |
| add_filter('woocommerce_product_get_price', 'return_custom_price', 20, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment