Bhajan Das
Forum Replies Created
-
Forum: Plugins
In reply to: [Wallet for WooCommerce] Hide terra-wallet cashback detail with product fromThank you so much.. last one updated code working.
Working code is:
add_action(‘wp_loaded’, ‘remove_cashback_notice’);
if(!function_exists(‘remove_cashback_notice’)){
function remove_cashback_notice(){
if(class_exists(‘Woo_Wallet_Frontend’)){
remove_action(‘woocommerce_shop_loop_item_title’, array(Woo_Wallet_Frontend::instance(), ‘display_cashback’), 15);
remove_action(‘woocommerce_single_product_summary’, array(Woo_Wallet_Frontend::instance(), ‘display_cashback’), 15);
}
}
}Thank you so much for your support.
Forum: Plugins
In reply to: [Wallet for WooCommerce] Hide terra-wallet cashback detail with product fromI have try the solution as your provide above, and the following error shown:
——————
Your PHP code changes were rolled back due to an error on line 757 of file wp-content/themes/enfold/functions.php. Please fix and try saving again.Uncaught Error: Class ‘Woo_Wallet_Frontend’ not found in wp-content/themes/enfold/functions.php:757
Stack trace:
#0 wp-includes/class-wp-hook.php(288): remove_cashback_notice(”)
#1 wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array)
#2 wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#3 wp-settings.php(545): do_action(‘wp_loaded’)
#4 wp-config.php(92): require_once(‘/home/xxxxxfr8/…’)
#5 wp-load.php(37): require_once(‘/home/bagrofr8/…’)
#6 wp-admin/admin.php(34): require_once(‘/home/xxxxxfr8/…’)
#7 /home/bagrofr8/public_html/xxxxxxxxxx
————————————————————————