Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AshlinRejo/db1c2fcf3ace0d18fd1a659d66bdd6f7 to your computer and use it in GitHub Desktop.
Save AshlinRejo/db1c2fcf3ace0d18fd1a659d66bdd6f7 to your computer and use it in GitHub Desktop.
Discount rules v2: Change the dynamic strikeout class target for variant
add_filter('advanced_woo_discount_rules_custom_target_for_variable_product_on_qty_update', function ($target){
$target = 'div.woocommerce-variation-add-to-cart .price';
return $target;
}, 10);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment