I have some products without a woocommerce-price. Using code below removes [add-to-cart]-button if price is not above 0:-. But I would still like Agents to be able to [add-to-cart] and input their own price on the cart-page instead.
So I would like to have the code below execute ONLY if customer is logged in and not if Agent is logged in as customer. Is it possible to somehow configure that?
I have some products without a woocommerce-price. Using code below removes [add-to-cart]-button if price is not above 0:-. But I would still like Agents to be able to [add-to-cart] and input their own price on the cart-page instead.
So I would like to have the code below execute ONLY if customer is logged in and not if Agent is logged in as customer. Is it possible to somehow configure that?
Hi Mervin,
I believe the following code should do it:
Please check and let me know.
Kind regards,
Stefan