Block products for customer groups
Product information "Block products for customer groups"
Highlights
Block products for rules Block products for specific customer groupsÂ
Features
Blocking of articles / products for certain customer groups Blocking products for selected rules No visibility without the appropriate customer group in the listing (product overview), in the search If a user knows the deeplink and is not logged in with the right customer group, he will get a 404 page exclude from sitemap is selectableÂ
Functionality
Enables the blocking of (selected) products for desired customer group(s) or rule(s)If a product has been blocked for one or more customer groups or rules, the product is:
- not found in the search
- not found in the listing
- the deep link cannot be accessed (404 page is displayed)
Info:
The "blocking" of customer groups is done directly at the corresponding product in the admin area.
Update from plugin version 2.3.x:
Adds an additional plugin configuration for how locking a product in Storefront works:
- ACRIS Standard
(Block products only if a customer group is entered in the field provided for this purpose). - Block without customer group assignment
(If NO customer group is entered in the provided field, then the product will be blocked for ALL customer groups).
Import via API
The blocked customer groups can of course be imported via API.The following example describes how customer groups can be blocked for a product via the Sync API:
[
 {
   "key": "write",
   "action": "upsert",
   "entity": "product",
   "payload": [
     {
       "id": "21ec43c9182c4c9abfd3b8dbeef5ec1c",
       "customFields": {
         "acris_product_customer_group_exclude_sitemap": true
       },
       "acrisBlockCustomerGroup": [
         {
           "id": "cfbd5018d38d41d8adca10d94fc8bdd6"
         },
         {
           "id": "d9943bfd240f472084907c468c692075"
         }
       ]
     }
   ]
 }
]
In the example, two customer groups (UUID
cfbd5018d38d41d8adca10d94fc8bdd6 and d9943bfd240f472084907c468c692075)
are blocked for the product with UUID 21ec43c9182c4c9abfd3b8dbeef5ec1c
via the Sync API.
The additional field acris_product_customer_group_exclude_sitemap determines
whether the product should be excluded in the sitemap or not. "true"
means an exclusion of the product in the sitemap.
How do I remove a blocked product via the API?
POST http://localhost/api/_action/sync
[
 {
   "action": "delete",
   "payload": [
     {
       "productId": "21ec43c9182c4c9abfd3b8dbeef5ec1c",
       "customerGroupId": "cfbd5018d38d41d8adca10d94fc8bdd6"
     }
   ],
   "entity": "acris_product_customer_group"
 }
]
Â
- Adds customer group and rule assignment to product bulk-edit in the administration.
- Improved product preview in administration.
- Adds functionality to block products based on the assigned rules.
- Fixes an issue where products that are blocked for certain rules or the default customer group are removed from the cart upon login.
- Improved plugin compatibility with Shopware 6.7.
- Fixes an issue where products blocked for the default customer group are removed from the cart upon login if the user does not belong to the default customer group.
- Improved plugin compatibility with Shopware 6.7.
- When duplicating products, the blocked customer groups are now transferred to the duplicated product.
- Enables a new plugin setting that prevents products from being blocked for administration orders.
- Compatibility with Shopware 6.7.
- Support for the following languages: de-DE, en-GB, nl-NL, fr-FR, es-ES, fi-FI, nn-NO, sv-SE, cs-CZ, pt-PT, tr-TR, da-DK, it-IT, pl-PL, bs-BA
- Adds functionality to block products based on the assigned rules.
- Fixes an issue where products that are blocked for certain rules or the default customer group are removed from the cart upon login.
- Fixes an issue where products blocked for the default customer group are removed from the cart upon login if the user does not belong to the default customer group.
- When duplicating products, the blocked customer groups are now transferred to the duplicated product.
- Enables a new plugin setting that prevents products from being blocked for administration orders.
- Optimized variant display on the product detail page.
- Fixes the issue with loading the services.
- Optimized blocking of the products based on the active customer group.
- Improved plugin compatibility for the variant display in the product listing.
- Correction of the behaviour if no customer group was selected for approval.
- Improved compatibility with Elasticsearch.
- Compatibility with Shopware 6.6.
- Optimizes plugin configuration.
- Improves compatibility with Elasticsearch.
- Adds functionality to block products based on the assigned rules.
- Optimized variant display on the product detail page.
- Optimized blocking of the products based on the active customer group.
- Improved plugin compatibility for the variant display in the product listing.
- Correction of the behaviour if no customer group was selected for approval.
- Improved compatibility with Elasticsearch.
- Fixed variants
- Optimized sitemap
- Shopware core compatibility adapted.
- Compatibility with Shopware 6.5.
- Change of the plugin name and the manufacturer links.
- Optimizes product blocking for the assigned customer groups.
- Optimizes blocking of the products for the assigned customer groups.
- Optimizes import / export of the product with assigned blocked customer groups.
- Improves plugin compatibility.
- Optimizes plugin image.
- Adds plugin configuration for blocking a product in Storefront if there are no customer groups assigned for the product.
- Improves plugin compatibility.
- Optimisation of the blocking the product variants.
- Adds validation on checking the blocked products in cart.
- Adds possibility to block variant products.
- Optimises resolving of the Cms elements.
- Optimises loading of the assigned customer groups.
- Optimisation of compatibility with other plugins.
- Fixes a possible problem in connection with other plugins.
- Optimize excluding from sitemap at product url provider.
- Improved compatibility with Shopware 6.4*.
Login
1 review
2 February 2023 06:24
Die perfekte Lösung - einfach zu installieren
Wir möchten eine Auswahl an Produkten nur ausgewählten Kunden zur Verfügung stellen. Dafür ist dieses Plugin die perfekte Lösung. Es ist zudem einfach zu installieren und einzurichten. Zudem ist der Support MEGA schnell. Die Antwort auf unsere Frage kam innerhalb weniger Minuten. Daher volle 5 Sterne.