Add Variation price to a woocommerce product page

On [url removed, login to view] I want the variation SKU to show when the variation has been selected, you'll see what I mean when you make a selection.

I have this code in my [url removed, login to view] to change the layout to what it is now, but I can't seem to write the correct code to display the variation sku for the variable product.

// Add RRP and gst to Variation price

add_filter( 'woocommerce_variation_price_html' , 'custom_woocommerce_variation_price_html' );

function custom_woocommerce_variation_price_html( $price ) {

$price='RRP '.$price.' inc GST'.'Part Number: '.$sku;

return $price;


I want the $sku variable to hold the product variation sku that has been selected by the drop down selector boxes.

I believe [url removed, login to view] has the information.

I need the code to add in my functions file to perform this using the correct coding so that updates to woocommerce and wordpress will not cause this coding to fail unless of course a mjor change is made to either.

Skills: PHP, Software Architecture, WordPress

See more: to hold, add inc, woocommerce product page, product sku, product selector, add product woocommerce, add 44, sku updates, selected price, woocommerce page layout, woocommerce change product variation, display woocommerce price, woocommerce product display, woocommerce page, woocommerce price, product selection drop, php extension wordpress, woocommerce product price display, woocommerce code, woocommerce add product price

About the Employer:
( 15 reviews ) Brighton, Australia

Project ID: #5105325

Awarded to:


hello sir, i have worked on many woocommerce sites and customized woocommerce plugin for various payment gateways and options, i think i can do this job for you :) here are some more details I am a PHP,wordpress them More

$34 AUD in 2 days
(24 Reviews)