Created
February 3, 2022 12:27
-
-
Save AshlinRejo/db1c2fcf3ace0d18fd1a659d66bdd6f7 to your computer and use it in GitHub Desktop.
Discount rules v2: Change the dynamic strikeout class target for variant
This file contains hidden or 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
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