Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: Need to limit a Category to a Customer Group  (Read 73 times)

Offline kavlito

  • Newbie
  • *
  • Posts: 20
  • Karma: +2/-0
    • View Profile
Need to limit a Category to a Customer Group
« 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

Offline dvagner

  • Newbie
  • *
  • Posts: 29
  • Karma: +10/-0
    • View Profile
Re: Need to limit a Category to a Customer Group
« Reply #1 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

 

Powered by SMFPacks Social Login Mod