Forums
Forums / Plugin: Wallet for WooCommerce / CachBack Showing Everywhere
(@zrpr)
3 years, 6 months ago
Hello I recently installed Tera wallet and i have a big problem with it. .on-woo-wallet-cashback {} show everywhere the price is. i just want it only on product page near the price image1: it should be only here. image2: It shouldnt be here
(@subratamal)
@zrpr Please use the attached code in the theme functions.php file.
add_filter( 'display_cashback_notice_at_woocommerce_page', 'display_cashback_notice_at_woocommerce_page_callback', 10, 1 ); if ( ! function_exists( 'display_cashback_notice_at_woocommerce_page_callback' ) ) { function display_cashback_notice_at_woocommerce_page_callback( $display ) { if ( is_shop() ) { $display = false; } return $display; } }
The topic ‘CachBack Showing Everywhere’ is closed to new replies.