fsilvalvm
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Image hidden on variable productsOK, thank you for your help 🙂
Forum: Plugins
In reply to: [WooCommerce] Image hidden on variable productsI placed your code on css and worked!
Thank you, also I need to ask if it’s possible not show this messagereturn 'Queres saber mais? <a href="'.get_permalink(woocommerce_get_page_id('myaccount')). '">Regista-te aqui!</a>';}only on first productsForum: Plugins
In reply to: [WooCommerce] Image hidden on variable productsYes, also I forgot to refer that this problem only happens without login
http://lvmbarbersupplier.pt/produto/reuzel-daily-shampoo-family/
Forum: Plugins
In reply to: [WooCommerce] Hide product priceadd_filter('woocommerce_get_price_html','hide_price'); 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 'Only <a href="' .get_permalink(woocommerce_get_page_id('myaccount')). '">Registered Users</a> are able to view pricing.'; } }it’s the same code but you have to logout from WP admin panel to see it working.
Forum: Plugins
In reply to: [WooCommerce] Hide product priceok, it’s working thank you 🙂
just one more thing, which table are saved the products?
Forum: Plugins
In reply to: [WooCommerce] Hide product priceI tried with this code:
add_filter('woocommerce_variable_price_html', 'members_only_price', 10, 2);and
add_filter('woocommerce_get_price_html','members_only_price'); function members_only_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 'Only <a href="' .get_permalink(woocommerce_get_page_id('myaccount')). '">Registered Users</a> are able to view pricing.'; } }but i got the same problem
Forum: Plugins
In reply to: [WooCommerce] Hide product priceI placed that code on “functions.php” but don’t work :/
Forum: Fixing WordPress
In reply to: How to create image link by codingHello,
Im using Auberge theme. No, Im trying to use that image to substitute the homepage button.