Install Discounts¶
Discounts are available as an LTS update to Ibexa Commerce, starting with version v4.6.19 or higher. To use this feature you must first install the packages and configure them.
Install packages¶
Run the following commands to install the packages:
1 |
|
These commands add the feature code, service handlers, helper Twig templates, and configurations required for using Discounts. It also modifies the permission system to account for the new functionality.
Configure Discounts¶
Once the packages are installed, before you can start using Discounts, you must enable them by following these instructions.
Modify the database schema¶
Run the following command, where <database_name>
is the same name that you defined when you installed Ibexa DXP.
1 |
|
1 |
|
This command modifies the existing database schema by adding database configuration required for using Discounts.
Configuration (optional)¶
Use the built-in SiteAccess-aware parameters to change the default discount configuration.
The following settings are available:
list_per_page_limit
controls the number of discounts displayed on a single page in discount list viewproducts_list_per_page_limit
controls the number of products displayed on a single page in a discount details view
You can set them as in the following example:
1 2 3 4 5 6 7 |
|
You can now restart you application and start working with the Discounts feature.