Home Forums WoodMart support forum Prices search bar with setting hide prices

Prices search bar with setting hide prices

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #290401

    Madoo Webdesign
    Participant

    Hi,

    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.

    #290636

    Hello,

    Please try this code:

    .hide-larger-price .price *:not(.price) {
        backface-visibility: hidden;
        visibility: hidden;
    }

    Best Regards

    #291299

    Madoo Webdesign
    Participant

    This 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.

    #291393

    Hello,

    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

    #293251

    Madoo Webdesign
    Participant

    I 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

    #293590

    Hello,

    Please add this code to the Theme Settings > Custom CSS > Global:

    .login-see-prices .wd-dropdown-results .price {
    	display: none;
    }

    Best Regards

Viewing 6 posts - 1 through 6 (of 6 total)