private content posted
Forum Replies Created
-
Please, contact administrator
for this information.#122726 Copied In reply to: Search is not workingI have the same plugin “Search By SKU – for Woocommerce”. How can I get this working? I tried to delete the search-results.php template from my theme, to no avail. Please let me know what I need to do or how I can add a different search function in the header widget area besides the pre-packaged search that comes with Legenda.
#122693 Copied In reply to: Search is not workingYES!!!!!!!! Works perfectly! Thank you so much for the help. It is greatly appreciated.
#116208 Copied In reply to: Only Members can see the Price(Price hidden for logged out customers as well)HI, I am trying to achieve the same result. I would like to hide prices and add to cart button unless a user is logged in. I am using a Legenda child theme and have everything working perfectly except the add to cart button is still on the single product page. The add to cart is not on the catalog / category pages.
I used the code provided here: http://businessbloomer.com/woocommerce-hide-price-add-cart-logged-users/ in my functions.php file (code below).
/** * @snippet Hide Price & Add to Cart for Logged Out Users * @how-to Watch tutorial @ http://businessbloomer.com/?p=19055 * @sourcecode http://businessbloomer.com/?p=299 * @author Rodolfo Melogli * @testedwith WooCommerce 2.4.12 */ add_filter('woocommerce_get_price_html', 'bbloomer_show_price_logged'); function bbloomer_show_price_logged($price){ if(is_user_logged_in() ){ return $price; } else { add_action( 'woocommerce_single_product_summary', 'bbloomer_print_login_to_see', 31 ); add_action( 'woocommerce_after_shop_loop_item', 'bbloomer_print_login_to_see', 11 ); remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 ); 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 ); } } function bbloomer_print_login_to_see() { echo '<a href="' . get_permalink(woocommerce_get_page_id('myaccount')) . '">' . __('Login to see prices', 'theme_name') . '</a>'; }I believe my issue is with the template because I tried this code with another template and it worked fine.
I tried using a different hook in this line:
remove_action( 'woocommerce_single_product_summary', woocommerce_template_single_add_to_cart', 30 );….but that did not work.
I also disabled all other plugins besides woocommerce and that did not work either. Website info in private content area.
Any help and guidance is greatly appreciated.
Please, contact administrator
for this information.#116067 Copied In reply to: Only Members can see the Price(Price hidden for logged out customers as well) -















