AbanteCart Community

AbanteCart Development => Customization help => Topic started by: kavlito on April 21, 2020, 07:50:30 PM

Title: Need to limit a Category to a Customer Group
Post by: kavlito on April 21, 2020, 07:50:30 PM
My cart is for personalized products for retail and wholesale (resellers).

The resellers products (only 2) are not the same as the retail products.

I would like to be able to have my B2B Category tied to specific Customer Groups and not be shown to the non-Customer Group retail customers.

Can anyone think of how to code that?

Thanks.

noob to AbanteCart coming from Zencart and Opencart
Title: Re: Need to limit a Category to a Customer Group
Post by: dvagner on April 22, 2020, 02:10:18 AM
Best way - create extension with hook's in Storefront Category controller.
To prevent direct access to product you need hooks:
 Storefront Product controller, Storefront Search controller, Block controllers (if used)

Doc: https://abantecart.atlassian.net/wiki/spaces/DOC/pages/17793156/Hooks