skip to Main Content
WooCommerce + Groups: Remove Specific Disallowed Items From Cart

Request

  • Restrict a list of SKUs from being purchased by a specific group

The site uses the Force Sells Extension from WooThemes, but the plugin isn’t required to use the below code. The SKUs listed in the original from below were part of a larger grouped product and individual non-display wasn’t possible through the UI.

Required Plugins

Code

Display

Cart

Image: Display of error message displayed to customer when disallowed products have been removed from their cart

Disclaimer

Maje Media LLC cannot be held responsible for the functionality of this code. Please make sure you test it on a development site before adding the code to your production website. There is no support available for this (and other) code snippet(s) posted on this website. If you’d like Maje Media to do custom development to help with your custom implementation please send a contact request.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top