Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Is there anyway to disable the shopping cart for guest users but have a quote only option and have the shopping cart function for wholesale users? Any help is greatly appreciated. Thank you.

share|improve this question
    
You'll probably have to create a custom function and then replace the woocommerce_add_to_cart action with your function. If user is not logged in show the quote form, if they are logged in and have a specific role show the add to cart button –  Anagio Jan 30 '13 at 11:30
    
Thanks for the comment Anagio. I couldn't think of any out of the box solutions too. –  user834915 Jan 30 '13 at 23:58
add comment

1 Answer

The Catalog Visibility Options plugin sounds like it would do what you want. It can disable the shopping features for "guests" and allow them for registered/logged in users.

Then if you want to add a Quote form you could use Gravity Forms + WooCommerce Gravity Forms Add-ons. You might be able to use the "conditional logic" options in GF to get it to only display the quote option for non-logged in users (not 100% sure on that part though).

The Product Add-on's extension also gives you the ability to add a checkbox/textbox/radio buttons to a product, however I don't think the view options can be set on that for guest/registered users.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.