How to get the regular price and sale price in woocommerce?

IN wordpress platform the Woocommerce is the best platform that used for eCommerce solution.

Sale price and regular price are just meta keys.

we can easily get the prices by using following code:

Regular Price

$regular_price = get_post_meta( get_the_ID(), '_regular_price', true);

Sale Price

$sale_price = get_post_meta( get_the_ID(), '_sale_price', true);

That’s it…

Prevailing social norms and oppose radical essay helpers change, consensus militates against

Ankush chhabra

My name is Ankush Chhabra and I’m a 28 years old web developer and blogger.I have 5 years of experience in this field.