Usage Notes
Discounts
Nibbled prices on products will be applied directly to the product value in the cart
Cart-wide discounts nibbled before the checkout process will be applied as a Coupon code.
If any cart rule based on a coupon is already applied, the Nibble cart button will be automatically disabled
The code will be created and applied to the cart automatically. If anything changes in the cart the coupon code will be automatically removed and deleted from the system.
Users will be unable to change the quantity of a product after a discount has been applied. They can choose a quantity before clicking on the Nibble button or can ask Nibble to change quantity during the negotiaton chat.
Currently, Nibble does not support multi-coupons.
Product Rules
To enable Nibble on individual products, you will need to enter product information into the Nibble admin panel. When asked for a product ID, please use the Product SKU from the product in Adobe Commerce.
Category Rules
To enable Nibble on a category of products, you will need to add the category into the Nibble admin panel. When asked for a category name, please use the Category Name (not category slug).
Alternatively, you can use the category ID by prepending it with ‘ID’. For example, a category name of ID28 in Nibble will match against products in the category with id 28.
Cohort Rules
It is possible to set specific rules in the admin panel based on user groups (Cohorts). The extension will automatically add the customer group to the code.
You can add a cohort to the admin panel using the Cohorts page
You can use in the “Cohort name” field:
- GID[group id] - e.g. GID2 or GID1
- [group name] - e.g. NOT LOGGED IN or Retailer (use the same name used for the customer group)
Segmentation
The plugin supports users segmentation as custom cohorts. User segmentation is not part of the Magento Community edition but, if using Adobe Commerce or any bespoke one, it is possible to inject the logic into Nibble ApiIntegration plugin.
We need to override the method getCurrentUserSegments
located in the file Nibble/ApiIntegration/Helper/Utilities.php
.
It can be done using an “around” plugin in any custom module.
public function aroundGetCurrentUserSegments(\Nibble\ApiIntegration\Helper\Utilities $subject, callable $proceed)
{
//Add here Segments logic
$segments = [
['code' => 'segment1', 'id' => 1],
['code' => 'segment2', 'id' => 2]
];
return $segments;
}
Using the above code as an example, you can use these values in the “Cohort name” field (see Cohorts above)
- SID[segment id] - e.g. SID1 or SID2 (if the
“id”
is set in$segments
array) - [segment code] - e.g. segment1 or segment2 (if the
“code”
is set in$segments
array)
Orders
The Nibble discount and Nibble ID are shown in the order detail page.