For those that want the code on how to get the array of the dynamic prices :
<?php
global $post, $product; // Must Have
$meta = get_post_meta($product->id);
$rules = $meta['_pricing_rules'][0];
var_dump(unserialize($rules));
?>
For those that want the code on how to get the array of the dynamic prices .
Requires the Woocommerce Dynamic Pricing plugin for Woocommerce.
Requires the Woocommerce Dynamic Pricing plugin for Woocommerce.
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.