i want to display sale and regular price in woocommerce pdf invoice plugin

I want to display both regular and sale price in invoice which is generated by woocommerce pdf invoice plugin.
i tried this code to get price but it didn’t work

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

please help me. Thanks.

Read more here: i want to display sale and regular price in woocommerce pdf invoice plugin

Leave a Reply

Your email address will not be published. Required fields are marked *