After searching a bit (and not finding anything about it), here's a little documentation on how to get your pricing rules of the WooCommerce Dynamic Pricing Plugin programmatically.
Created
March 12, 2018 10:15
-
-
Save Werninator/b18b2ae1b1d236cb31dc978c59714959 to your computer and use it in GitHub Desktop.
How to get 'WooCommerce Dynamic Pricing' values / rules programmatically
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
| <?php | |
| // Some template file | |
| global $product; | |
| // apparently the rules are saved in the post-meta with the key '_pricing_rules' | |
| $pricingRules = get_post_meta($product->get_id(), '_pricing_rules'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment