• Resolved shan404

    (@shan404)


    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?

    • This topic was modified 7 years, 2 months ago by shan404.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Need way to get Wholesale Price without markup to use as Input field value’ is closed to new replies.