Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sarancartrabbit/3d5f983980639004ba3bd9bb8829af4e to your computer and use it in GitHub Desktop.
Save sarancartrabbit/3d5f983980639004ba3bd9bb8829af4e to your computer and use it in GitHub Desktop.
Discount rules v2: To show the custom price for dynamically change quantity
add_filter('advanced_woo_discount_rules_custom_target_for_simple_product_on_qty_update', function ($target){
$target = 'div.btn-price';
return $target;
}, 10);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment