Displaying frontend product price in admin edit page
-
In the frontend a discount might be triggered from a mass discount plugin.
How can you get the price and sale price in the admin product edit page?
Trying to display mainly for convenience and ease of check with:
function get_product_sale_price(){ global $post; $product = wc_get_product( $post->ID ); echo '<div class="product_custom_field">get_price:'.$product->get_price().' - get_sale_price:'.$product->get_sale_price().'</div>'; } add_action('woocommerce_product_options_general_product_data','get_product_sale_price');
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Displaying frontend product price in admin edit page’ is closed to new replies.