Image hidden on variable products
-
Hello, I have this code to hide the price with a message but in variable products the image is hidden.
function HIDE_PRICE($price){ if(is_user_logged_in() ){ return $price; } else { remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart' ); remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 ); remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 ); remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_price', 10 ); return 'Queres saber mais? <a href="'.get_permalink(woocommerce_get_page_id('myaccount')). '">Regista-te aqui!</a>'; } }It’s possible to do something to change this issue?
Thank you
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘Image hidden on variable products’ is closed to new replies.