Created
September 17, 2024 08:46
-
-
Save dennisnissle/6ce63f6422d87dc81e70e347cfd3baf9 to your computer and use it in GitHub Desktop.
Do not replace the variable price with the current variation's price
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_gzd_add_to_cart_variation_params', function( $params ) { | |
$params['replace_price'] = false; | |
return $params; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment