Block products for customer groups
Description
Highlights
Features
About the Extension
Functionality
Enables the blocking of (selected) products for the desired customer group(s)If the product has been blocked for one or more customer groups, the product is blocked for the users of these customer groups
- cannot be found in the search
- not to be found in the listing
- the deep link cannot be called up (404 page is output)
Authorized users who do not fall into the "blocked customer group" (e.g. login / registration) can find the product in the store as normal.
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"
}
]
Details
- Available: English, German
- Latest update: 4 December 2024
- Publication date: 20 October 2020
- Version: 5.0.4
- Category: B2B extensions
Resources
Reviews (1)
Die perfekte Lösung - einfach zu installieren
About the Extension Partner
ACRIS E-Commerce GmbH
Partner Status
-
Shopware
Gold Partner -
Shopware
Premium Extension Partner
Details
- Ø-Rating: 4.9
- Partner since: 2015
- Extensions: 122
Support
- Based in: Austria
- Speaks: German, English
- Response time: Very quickly