Hi support,
My website is completely white out. There’s no error messages what so ever and i can’t even access to my dashboard. After updating the theme functions php , it went blank.
Here’s the exact code that i have added to the functions php
<?php
// Use WC 2.0 variable price format
add_filter( ‘woocommerce_variable_sale_price_html’, ‘wc_wc20_variation_price_format’, 10, 2 );
add_filter( ‘woocommerce_variable_price_html’, ‘wc_wc20_variation_price_format’, 10, 2 );
function wc_wc20_variation_price_format( $price, $product ) {
$min_price = $product->get_variation_price( ‘min’, true );
$max_price = $product->get_variation_price( ‘max’, true );
if ( $min_price != $max_price ) {
$price = sprintf( __( ‘From: %1$s’, ‘woocommerce’ ), wc_price( $min_price ) );
return $price;
} else {
$price = sprintf( __( ‘%1$s’, ‘woocommerce’ ), wc_price( $min_price ) );
return $price;
}
}
?>
Here’s my webpage
http://www.oblique.sg
Please help!
Thank you