Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Help …site no longer working after update

Home / Forums / Virtue Theme / Help …site no longer working after update

This topic is: Not Resolved
[Not Resolved]
Posted in: Virtue Theme
August 8, 2016 at 12:37 pm

Hello

Been a while ! hope you’re doing fine !

after the update, i have no longer access to the site…
Every update, i add in functions.php i add manually :
xxxxxxx

/*
* Updater
*/
require_once locate_template(‘/lib/wp-updates-theme.php’);
$KT_UpdateChecker = new ThemeUpdateChecker(‘virtue_premium’, ‘

/*
* Admin Shortcode Btn
*/
function virtue_shortcode_init() {
if(is_admin()){ if(kad_is_edit_page()){require_once locate_template(‘/lib/kad_shortcodes.php’); }}
}
add_action(‘init’, ‘virtue_shortcode_init’);

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 ) {
// Main Price
$prices = array( $product->get_variation_price( ‘min’, true ), $product->get_variation_price( ‘max’, true ) );
$price = $prices[0] !== $prices[1] ? sprintf( __( ‘From: %1$s’, ‘woocommerce’ ), wc_price( $prices[0] ) ) : wc_price( $prices[0] );
// Sale Price
$prices = array( $product->get_variation_regular_price( ‘min’, true ), $product->get_variation_regular_price( ‘max’, true ) );
sort( $prices );
$saleprice = $prices[0] !== $prices[1] ? sprintf( __( ‘From: %1$s’, ‘woocommerce’ ), wc_price( $prices[0] ) ) : wc_price( $prices[0] );
if ( $price !== $saleprice ) {
$price = ‘‘ . $saleprice . ‘ <ins>’ . $price . ‘</ins>’;
}
return $price;

xxxxxxxxx

this time it bugged… i do not know what to do… help

thanks for your help

Jacky

  • The forum ‘Virtue Theme’ is closed to new topics and replies.