Forums
(@bistron)
6 years, 11 months ago
Hello @aweissinpsyde
Thank you for checking this… I do not use any additional plugins fro product variations – only standard WP engine
this did the trick
function custom_variation_price( $price, $product ) { global $product; $id = $product->get_id(); if( $product->id == 334 or $product->id == 339) { $price = ''; .....
7 years ago
I got this working by using <?php the_ID(); ?> as ID Thanks for your replies!