Hi,
You can use all WooCommerce hooks to achieve this, there are no special requirements for PBoC.
You can ask in the WooCommerce support forum or do a Google search.
Good luck 🙂
Thanks for your reply, I know I can use Woocommerce hooks, but need to target prices set up by plugin. Any advice?
I’m sorry but Woocommerce hooks won’t work with prices set by plugin. How the answer can make the topic resolved when it’s not 🙁
Hi, if you want to display a list of prices of the variations of a variable product, the following topic can help you:
https://wordpress.org/support/topic/show-variations-in-a-list-on-product-page/
Thanks for your reply 🙂 But it’s not what I need. What I need is simple thing – I need to list a prices set up by plugin you’ve made 🙂 This would be enough for me:
Variable product has let’s say 3 shipping zones set up and so it has 3 prices. How to list them 🙂
You can access to all your pricing zones by:
WCPBC_Pricing_Zones::get_zones()
this function return an array of instances of WCPBC_Pricing_Zone class
You can access to the zone price “meta values” by the function WCPBC_Pricing_Zone::get_post_price
example:
$price = $zone->get_post_price( $product_id, '_price' );
$regular_price = $zone->get_post_price( $product_id, '_regular_price' );
$sale_price = $zone->get_post_price( $product_id, '_sale_price' );
I hope this helps.