• Resolved danikas

    (@danikas)


    Hello, I am building a wholesale website. I bought a Wooocommerce B2B plugin to make login to view prices, group them etc. Now I am facing an issue, I made it so that anyone can create an account, but I don’t want them to see the prices. My idea is, that when an account is created, they shouldn’t be able to see the prices yet, I would have to add the account to a certain group only then allow them to view the prices. So the issue is, that I cannot seem to hide the price fully, as I still have to write a regular price and then can use the woocommerce B2B plugin to write disocunted prices for certain groups. But now when you create an account, you can still see the regular prices which are written in woocommerce. How can I hide/remove the regular prices and only leave the prices which are written via Woocommerce B2B plugin? Is there a way to override the regular price? I hope you understand my issue. Thank you in advance.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @danikas!

    Thank you for reaching out.

    How can I hide/remove the regular prices and only leave the prices which are written via Woocommerce B2B plugin? Is there a way to override the regular price?

    `There is no option in WooCommerce core to hide regular product prices; you would require a plugin or custom coding to achieve it.

    Searching, I found a working code that could help to hide the products’ regular prices in your store. However, it hasn’t been tested with B2B plugins; you can look at it for pointers.

    https://stackoverflow.com/questions/51696069/hide-product-prices-of-items-in-stock-in-woocommerce

    You can use a plugin like Code Snippets to add this snippet without having to edit your PHP code.

    Also, you could use a plugin like one of the following to hide the regular price from products and test if it helps by leaving just the B2B product price.

    * Hide Price & Add to Cart Button
    * ZI Hide price and add to cart for WooCommerce

    I hope this helps!

    Thread Starter danikas

    (@danikas)

    Thank you so much for the reply. I have tried both plugins that you’ve mentioned and yes, they do hide the regular price, but they also hide the woocommerce B2B prices that I set-up. The code also does the same, it hides all the prices. So I am wondering how can I override it so that it would only hide the regular woocommerce price and leave out the woocommerce B2B plugin prices..

    Mirko P.

    (@rainfallnixfig)

    Hi there,

    I am wondering how can I override it so that it would only hide the regular woocommerce price and leave out the woocommerce B2B plugin prices

    I’d recommend reaching out to the WooCommerce B2B plugin developer. They are more familiar than us with using custom code and should help you achieve your goal.

    Alternatively, you can consult with a developer on our customizations page who can help you create a custom solution.

    Let us know if you have any other questions.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Login to view price’ is closed to new replies.