Skip to content

Commit 85aa5da

Browse files
committed
Refactored the tables
1 parent 1e18e9c commit 85aa5da

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

docs/discounts/discounts_api.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,27 +38,27 @@ Use the expression values provided below when using data migrations or when pars
3838
Discount rules define how the calculate the price reduction.
3939
The following discount rule types are available in the `\Ibexa\Discounts\Value\DiscountRule` namespace:
4040

41-
| Rule type | Identifier | Description | Expression value |
42-
|---|---|---|---|
43-
| `FixedAmount` | <nobr>`fixed_amount`</nobr> | Deducts the specified amount, for example <nobr>10 EUR</nobr>, from the base price | <nobr>`discount_amount`</nobr> |
44-
| `Percentage` | <nobr>`percentage`</nobr> | Deducts the specified percentage, for example -10%, from the base price | <nobr>`discount_percentage`</nobr> |
41+
| Rule type<br>(identifier) | Description | Expression value |
42+
|---|---|---|
43+
| `FixedAmount`<br><nobr>(`fixed_amount`)</nobr> | Deducts the specified amount, for example <nobr>10 EUR</nobr>, from the base price | <nobr>`discount_amount`</nobr> |
44+
| `Percentage`<br><nobr>(`percentage`)</nobr> | Deducts the specified percentage, for example -10%, from the base price | <nobr>`discount_percentage`</nobr> |
4545

4646
Only a single discount can be applied to a given product, and a discount can only have a single rule.
4747

4848
### Conditions
4949

5050
With conditions you can narrow down the scenarios in which the discount applies. The following conditions are available in the `\Ibexa\Discounts\Value\DiscountCondition` and `\Ibexa\DiscountsCodes\Value\DiscountCondition` namespaces:
5151

52-
| Condition | Applies to | Identifier | Description | Expression values |
53-
|---|---|---|---|---|
54-
| <nobr>`IsInCategory`</nobr> | Cart, Catalog | <nobr>`is_in_category`</nobr> | Checks if the product belongs to specified [product categories]([[= user_doc =]]/pim/work_with_product_categories) | `categories` |
55-
| <nobr>`IsInCurrency`</nobr> | Cart, Catalog |<nobr>`is_in_currency`</nobr> | Checks if the product has price in the specified currency | <nobr>`currency_code`</nobr> |
56-
| <nobr>`IsInRegions`</nobr> | Cart, Catalog | <nobr>`is_in_regions`</nobr> | Checks if the customer is making the purchase in one of the specified regions | `regions` |
57-
| <nobr>`IsProductInArray`</nobr> | Cart, Catalog | <nobr>`is_product_in_array`</nobr> | Checks if the product belongs to the group of selected products | `product_codes` |
58-
| <nobr>`IsUserInCustomerGroup`</nobr> | Cart, Catalog| <nobr>`is_user_in_customer_group`</nobr> | Check if the customer belongs to specified [customer groups](customer_groups.md) | `customer_groups` |
59-
| <nobr>`IsProductInQuantityInCart`</nobr> | Cart | <nobr>`is_product_in_quantity_in_cart`</nobr> | Checks if the required minimum quantity of a given product is present in the cart | `quantity` |
60-
| <nobr>`MinimumPurchaseAmount`</nobr> | Cart | <nobr>`minimum_purchase_amount`</nobr> | Checks if purchase amount in the cart exceeds the specified minimum | `minimum_purchase_amount` |
61-
| <nobr>`IsValidDiscountCode`</nobr> | Cart | <nobr>`is_valid_discount_code`</nobr> | Checks if the correct discount code has been provided and how many times it was used by the customer | `discount_code`, `usage_count` |
52+
| Condition<br>(identifier) | Applies to | Description | Expression values |
53+
|---|---|---|---|
54+
| <nobr>`IsInCategory`</nobr><br><nobr>(`is_in_category`)</nobr> | Cart, Catalog | Checks if the product belongs to specified [product categories]([[= user_doc =]]/pim/work_with_product_categories) | `categories` |
55+
| <nobr>`IsInCurrency`</nobr><br><nobr>(`is_in_currency`)</nobr> | Cart, Catalog | Checks if the product has price in the specified currency | <nobr>`currency_code`</nobr> |
56+
| <nobr>`IsInRegions`</nobr><br><nobr>(`is_in_regions`)</nobr> | Cart, Catalog | Checks if the customer is making the purchase in one of the specified regions | `regions` |
57+
| <nobr>`IsProductInArray`</nobr><br><nobr>(`is_product_in_array`)</nobr> | Cart, Catalog | Checks if the product belongs to the group of selected products | `product_codes` |
58+
| <nobr>`IsUserInCustomerGroup`</nobr><br><nobr>(`is_user_in_customer_group`)</nobr> | Cart, Catalog | Check if the customer belongs to specified [customer groups](customer_groups.md) | <nobr>`customer_groups`</nobr> |
59+
| <nobr>`IsProductInQuantityInCart`</nobr><br><nobr>(`is_product_in_quantity_in_cart`)</nobr> | Cart | Checks if the required minimum quantity of a given product is present in the cart | `quantity` |
60+
| <nobr>`MinimumPurchaseAmount`</nobr><br><nobr>(`minimum_purchase_amount`)</nobr> | Cart | Checks if purchase amount in the cart exceeds the specified minimum | <nobr>`minimum_purchase_amount`</nobr> |
61+
| <nobr>`IsValidDiscountCode`</nobr><br><nobr>(`is_valid_discount_code`)</nobr> | Cart | Checks if the correct discount code has been provided and how many times it was used by the customer | `discount_code`, <br>`usage_count` |
6262

6363
When multiple conditions are specified, all of them must be met.
6464

0 commit comments

Comments
 (0)