We need to access the min value of the Gift Card from in a shortcode. We do a very similar thing in the shortcode for other products and it actually worked for Gift Cards until we let the user set a price and now it returns 0.
I see some public functions like get_pwgc_custom_amount_min but am having trouble accessing them…
This is what we run in our shortcode for other products. Any tips on how to access the min Gift Card value?
$product = new WC_Product( get_the_ID() ); $price = $product->price;
- The topic ‘Get Min Value of Gift Card’ is closed to new replies.