Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi there.

    Here you go

    global $product;
    if ( $price_html = $product->get_price_html() ) :
       echo $price_html;
    endif;

    Let me know how it works for you.

    Thread Starter Pia

    (@puy)

    Hi, Kharis Sulistiyono

    Thanks so much for your reply.

    I am not sure though where exactly to add this?

    function.php?

    I will try then. Sorry I am just a beginner.

    Thread Starter Pia

    (@puy)

    Hi again, Kharis Sulistiyono

    I tried adding it in my theme’s function.php, here’s the error.

    Parse error: syntax error, unexpected ‘<‘ in /home/pingconm/public_html/shop/wp-content/themes/shopping/functions.php on line 171

    Then I tried adding it in my order-details.php, here’s the error…

    Fatal error: Call to a member function get_price_html() on a non-object in /home/pingconm/public_html/shop/wp-content/plugins/woocommerce/templates/order/order-details.php on line 110

    Please help.

    Your help is greatly appreciated. Thank you so much.

    Thread Starter Pia

    (@puy)

    I guess the table of ordered products is done by third party plugin or it is a custom build. You can contact the plugin author or developer who made that.

    Thread Starter Pia

    (@puy)

    alright. Noted. Thank you Kharis. I really appreciate your help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Display Unit Price / Regular Price in checkout page’ is closed to new replies.