Created
July 17, 2020 08:17
-
-
Save Balakrishnan-flycart/ff93c3e86a19b71e902fbba03e7df56f to your computer and use it in GitHub Desktop.
simple product dynamic price update compatible for Xstore theme
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_get_simple_product_id_by_custom', function(){ | |
| return '[name="add-to-cart"]'; | |
| }); | |
| add_filter( 'advanced_woo_discount_rules_custom_target_for_simple_product_on_qty_update', function(){ | |
| return 'div.product-information p.price'; | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment