Em Andamento

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.

Habilidades: PHP, Arquitetura de software, WordPress

Ver mais: 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, woocommerce variable product price, change woocommerce product layout, change layout woocommerce, woocommerce variable product, product add woocommerce

Acerca do Empregador:
( 15 comentários ) Brighton, Australia

ID do Projeto: #5105325

Premiar a:

aavatar2012

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 Mais

$34 AUD em 2 dias
(24 Avaliações)
4.4