Skip to content

Instantly share code, notes, and snippets.

@dennisnissle
Created September 17, 2024 08:46
Show Gist options
  • Save dennisnissle/6ce63f6422d87dc81e70e347cfd3baf9 to your computer and use it in GitHub Desktop.
Save dennisnissle/6ce63f6422d87dc81e70e347cfd3baf9 to your computer and use it in GitHub Desktop.
Do not replace the variable price with the current variation's price
<?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