Home › Forums › WoodMart support forum › Prices search bar with setting hide prices
Prices search bar with setting hide prices
- This topic has 5 replies, 2 voices, and was last updated 3 years, 11 months ago by
Elise Noromit.
-
AuthorPosts
-
May 7, 2021 at 7:36 am #290401
Madoo WebdesignParticipantHi,
We have woocommerce B2B on our website http://www.packara.com. When I use the ajax search bar when iam logged out I see the products with prices. I don’t want my customers to see the prices before the are log-in. You already have closed this topic for someone else, and at his site it worked but on our website the prices stay visible. This is the link to the threat: https://xtemos.com/forums/topic/live-ajax-search-bar-remove-prices-when-logout/ and this is the code that you guys are suggesting:
}
.suggestion-price {
display: none;
}We also tried this:
.search-results-wrapper .woodmart-scroll .woodmart-search-results .price {
display:none;
}
But thats also not working.Can u help?
we disabled the ajax search filter for now.
May 7, 2021 at 8:30 pm #290636
Elise NoromitMemberHello,
Please try this code:
.hide-larger-price .price *:not(.price) { backface-visibility: hidden; visibility: hidden; }
Best Regards
May 10, 2021 at 12:52 pm #291299
Madoo WebdesignParticipantThis code don’t works, when I am logged in, all prices are gone als product pages.
we want only show prices when customers logged in.May 10, 2021 at 8:55 pm #291393
Elise NoromitMemberHello,
I have checked my testing site, the price is hidden in the AJAX search when you set Login to see the price.
It means the price on your site are displayed by the plugin as it does not have such an option. Please contact the plugin support and find out if they can give you the fix to hide the prices from the search.
Best Regards
May 18, 2021 at 9:33 am #293251
Madoo WebdesignParticipantI have checked with the woocommerce b2b plugin from https://woocommerce-b2b.com/
And I explain his our issue, see reaction below. Can you help with the information?As I can see, this search form is provided by a third part (plugin or theme). WooCommerce B2B uses standard WordPress / WooCommerce hooks but it is very likely that the search form is not using the same expected standards. You should check which function generates the list of products in search and remove the price if the user is not logged in. There may be a special hook or template for this, but you should ask the support of the plugin / theme that manage this form. I hope this information will help resolve your doubts, best regards
May 19, 2021 at 8:59 am #293590
Elise NoromitMemberHello,
Please add this code to the Theme Settings > Custom CSS > Global:
.login-see-prices .wd-dropdown-results .price { display: none; }
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register