Need way to get Wholesale Price without markup to use as Input field value
-
Hi,
I am using
<input class="hidden-price" name="hidden-price" type="hidden" value="<?php echo $product->get_price() ?>" />
for simple product and
<input class="hidden-price" name="hidden-price" type="hidden" value="<?php echo $value['display_price'] ?>" />
for the variable products variations.This input fields are used so I can calculate price based on quantity. I have some products with regular price & some with wholesale price. I couldn’t find any way to get the numeric wholesale price without the markup.
Found a similar thread but I am bit confused how to use it.
$product->get_price_html()
or$value['price_html'];
shows with markup.How can I get the numeric value only?
- The topic ‘Need way to get Wholesale Price without markup to use as Input field value’ is closed to new replies.