Edit or Add Cart Rule

Description

When you enter the Cart rule editing UI, there are 3 separate tabs - Information, Conditions and Actions. Each of them are combined together with the general cart rules functionality.

QA

Link to the test

Common components

Information tab

The explanations of the input fields, dropdowns, switch toggle buttons and text fields are stated below:

Name

DescriptionValueError message

Mandatory

YES

The field name is required at least in English (English).

Allowed/Forbidden values

-

-

Default value

-

-

Help text

-

-

Tool tips

This will be displayed in the cart summary, as well as on the invoice.

-

Lower limit

-

-

Upper limit

-

-

Behavior

-

Description

DescriptionValueError message

Mandatory

NO

-

Allowed/Forbidden values

-

-

Default value

-

-

Help text

-

-

Tool tips

For your eyes only. This will never be displayed to the customer.

-

Lower limit

-

-

Upper limit

-

-

Behavior

-

Code

DescriptionValueError message

Mandatory

NO

-

Allowed/Forbidden values

Forbidden non unique code

This cart rule code is already used (conflict with cart rule %Id of the cart rule%).

Default value

-

-

Help text

Caution! If you leave this field blank, the rule will automatically be applied to benefiting customers.

-

Tool tips

This is the code users should enter to apply the voucher to a cart. Either create your own code or generate one by clicking on "Generate".

-

Lower limit

Upper limit

Behavior

-

Highlight

DescriptionValueError message

Mandatory

NO

-

Allowed/Forbidden values

-

Default value

NO

-

Help text

-

-

Tool tips

If the voucher is not yet in the cart, it will be displayed in the cart summary.

-

Lower limit

-

-

Upper limit

-

-

Behavior

-

Partial use switch toggle button

DescriptionValueError message

Mandatory

YES

-

Allowed/Forbidden values

-

Default value

YES

-

Help text

-

-

Tool tips

Only applicable if the voucher value is greater than the cart total. If you do not allow partial use, the voucher value will be lowered to the total order amount. If you allow partial use, however, a new voucher will be created with the remainder.

-

Lower limit

-

-

Upper limit

-

-

Behavior

-

Priority

DescriptionValueError message

Mandatory

YES

-

Allowed/Forbidden values

Can only be number

The priority field is invalid.

Default value

1

-

Help text

-

-

Tool tips

Cart rules are applied by priority. A cart rule with a priority of "1" will be processed before a cart rule with a priority of "2".

-

Lower limit

-

-

Upper limit

-

-

Behavior

-

Status

DescriptionValueError message

Mandatory

YES

-

Allowed/Forbidden values

-

-

Default value

YES

-

Help text

-

-

Tool tips

-

-

Lower limit

-

-

Upper limit

-

-

Behavior

-

Conditions tab

The condition tab, allows the ability to specify cart rule conditions to determine how the cart rule will be used in the Prestashop.

Limit to a single customer

DescriptionValueError message

Mandatory

NO

-

Allowed/Forbidden values

It can only be an array corresponding to a selected user

expects parameter 2 to be array, bool given

Default value

Empty

-

Help text

-

-

Tool tips

Optional: The cart rule will be available to everyone if you leave this field blank.

-

Lower limit

-

-

Upper limit

-

-

Behavior

-

Valid

DescriptionValueError message

Mandatory

Yes

-

Allowed/Forbidden values

Only Dates are allowed

-

Default value

"From" date is the date and the "round" hour of the cart rule's creation (currently 10 A.M. "To" date is one month after

-

Help text

-

-

Tool tips

The default period is one month.

-

Lower limit

-

-

Upper limit

-

-

Behavior

-

Minimum amount

DescriptionValueError message

Mandatory

NO

-

Allowed/Forbidden values

Allowed numbers only

The minimum_amount field is invalid.

Default value

0; Default currency of PrestaShop; Tax included; Shipping excluded

-

Help text

-

-

Tool tips

You can choose a minimum amount for the cart either with or without the taxes and shipping.

-

Lower limit

-

-

Upper limit

-

-

Behavior

-

Total available

DescriptionValueError message

Mandatory

NO

-

Allowed/Forbidden values

Allowed numbers only

The quantity field is invalid.

Default value

1

-

Help text

-

-

Tool tips

The cart rule will be applied to the first "X" customers only

-

Lower limit

-

-

Upper limit

-

-

Behavior

-

Total available for each user

DescriptionValueError message

Mandatory

NO

-

Allowed/Forbidden values

Allowed numbers only

The quantity_per_user field is invalid.

Default value

1

-

Help text

-

-

Tool tips

A customer will only be able to use a cart rule "X" time(s)

-

Lower limit

-

-

Upper limit

-

-

Behavior

-

Restrictions

Certain conditions can be set for the main cart rule condition. Once the first restriction checkbox is marked, the external options will expand. Those are the following:

  • Country selection - there is a small description text below the checkbox - This restriction applies to the country of delivery. Once checkboxed, there will be 2 fields prompted in UI - Selected or Unselected text field values. The values can be transferred to appropriate inputs with the buttons Add or Remove. By default, it is set as uncheckboxed condition.

  • Carrier selection - this field can set certain carriers, that could be affected by the rule condition. Once checkboxed, there will be 2 fields prompted in UI - Selected or Unselected text field values. The values can be transferred to appropriate inputs with the buttons Add or Remove. By default, it is set as uncheckboxed condition.

  • Customer group selection - it can be restricted by a Prestashop customers group - by default - Customer, Visitor or Guest. Once checkboxed, there will be 2 fields prompted in UI - Selected or Unselected text field values. The values can be transferred to appropriate inputs with the buttons Add or Remove. By default, it is set as uncheckboxed condition.

  • Compatibility with other cart rules - this option sets the including of what cart rules can be combined with another cart rules. By default, it is set as uncheckboxed condition, and this option is hidden, when there are no rules created, at least 1 rule should be created in list.

  • Product selection - this is kind of important condition for cart rule - it can be selected with specific products from whole webshop, that can have the cart rule. By default, it is set as uncheckboxed condition. Once the Product selection checkbox is marked, the UI will additioinally extend with the appropriate options to adjust. The CTA button with "(+) Product selection" will appear. Clicking the button will show additional operating values - "Number of products required in the cart to enjoy the discount", "Add a rule concerning", "The product(s) are matching one of these" list, Add (+), Remove (X), Choose, Product selection buttons and appropriate text input fields.

  • Number of products required in the cart to enjoy the discount - defines the operating value, how many products should be added to the cart in Prestashop application in order to get the ability to get a discount. There is a numeric value input field near, which can be set.

  • Add a rule concerning - defines the operating value, which will be included in creating the rule conditions for certain product (s). By default the dropdown option will be as null value --Choose--. The default values, that are installed by Prestashop are Products, Attributes, Categories, Brands and Suppliers. Choosing, for example, Products, as the value, clicking the (+) Add button will extend the UI with the Product list below. By default, there will be no products added. Once clicking the Choose button, pop-up will appear, and there will be a possibility to add the certain products from left section to the right and backwards. It can be adjusted by clicking the Add or Remove buttons. After closing the popup, the new products will be added to the list. There are options to add additional value once again, modify the existing one or deleting the value from the list.

  • Shop selection - this selection sets the shop in Prestashop, where to apply the Cart Rule. By default, this field is hidden, if there is no Multistores configured. Once the Shop selection checkbox is marked, the addition UI part will extend with the 2 input area fields. There will be field with Selected shops and Unselected shops. The Multistore Shops can be transferred to the Selected or Unselected fields by appropriate needs. Add or Remove buttons are performing the actions here.

Actions tab

Free shipping

DescriptionValueError message

Mandatory

YES

-

Allowed/Forbidden values

-

-

Default value

NO

-

Help text

-

-

Tool tips

-

-

Lower limit

-

-

Upper limit

-

-

Behavior

-

Apply a discount

DescriptionValueError message

Mandatory

YES

-

Allowed/Forbidden values

-

-

Default value

None

-

Help text

-

-

Tool tips

-

-

Lower limit

-

-

Upper limit

-

-

Behavior

-

Exclude discounted products

DescriptionValueError message

Mandatory

NO

-

Allowed/Forbidden values

-

-

Default value

NO

-

Help text

-

-

Tool tips

If enabled, the voucher will not apply to products already on sale.

-

Lower limit

-

-

Upper limit

-

-

Behavior

-

Send a free gift

DescriptionValueError message

Mandatory

YES

-

Allowed/Forbidden values

-

-

Default value

NO

-

Help text

-

-

Tool tips

-

-

Lower limit

-

-

Upper limit

-

-

Behavior

-

Behaviors descriptions

Name behavior

Text input field (Forms normal UI kit) - it is a mandatory field with a language selector.

Description behavior

Text input field (Forms normal UI kit) - to describe the cart rule in more details.

Code behavior

Text input field (Forms normal UI kit) - If the user decide to use a Code for the cart rule then the code has to be unique to validate the form. By clicking Generate, a code is generated automatically with a unique code name. If the code is left empty, then the cart rule will automatically be applied to customers' cart that matches the cart rule conditions.

Highlight behavior

Switch toggle button (Forms switch UI kit)- If enabled, the cart rule will be displayed in cart summary. When there is no Code set, the Highlight switch toggle button is hidden.

Partial use switch toggle button behavior

If this switch toggle button (Forms switch UI kit) is enabled, when the total cart of the checkout amount is smaller than the cart rule amount, a cart rule is created with the remaining sum. Note, that partial usage function becomes as a new cart rule and with the new cart rule name with "-2" prefix added and with the remaining sum. The conditions remain the same, except the cart rule quantity availability - it remains just 1 for each user.

Priority behavior

This numeric input field (Forms numbers UI kit) defines the calculation priority of the cart rules at the checkout process. A cart rule with the priority set to 1 will be applied before the cart rule set to 2. The lower the priority value, the higher the priority of the cart rule. If there are multiple cart rules applied at the checkout with the identical priority value, the priority will be defined between the cart rule by their Cart Rule ID, the lower is the cart rule ID, the higher the priority.

Status behavior

Switch toggle button (Forms switch UI kit) - when enabled button enables cart rule. Disabling the toggle will disable the cart rule and won't be useable.

Limit to a single customer behavior

Search input - the user can search by customer name or email in order to set the Cart rule condition for one customer.

Valid behavior

2 dates picker - The date picker "From" and "To" define the period of availability of the cart rule. Past these dates or before these dates, the cart rule can't be used.

Minimum amount behavior

This numeric input field (Forms numbers UI kit) sets minimum amount from which the customers will can use the cart rule. As well, the currency can be set, if prices should affected with taxes or without taxes and if shipping is affected too.

Total available behavior

This numeric input field (Forms numbers UI kit) describes the quantity of the cart rules that can be used.

Total available for each user behavior

This numeric input field (Forms numbers UI kit) sets the price rules amount for certain users separately.

Free shipping behavior

This setting creates rule that will initiate a free shipping method for customer in checkout form.

Apply a discount behavior

The Apply a discount setting has radio buttons (Forms radio buttons UI kit) and its options are:

Percentage

It can be set, and the cart price will be affected by certain amount of percentage discount, after executing the voucher. If this value is set, the following elements will load in the UI:

  • Value - numeric input field with percentage icon, to set the percentage amount.

  • Apply a discount to - available values to set for:

    • Order (without shipping)

    • Specific product - search product field appears below - it will set the ability to search the certain product.

    • Matching products dropdown - it will appear when there will be some characters typed in the "Product" field.

    • Cheapest product - apply the discount contidions to the cheapest product.

    • Selected product(s) - appears only when Conditions tab is assigned to some product or products, as the exclamation mark indicator with link displays this as well.

  • Exclude discounted products - toggle switch button (Forms switch UI kit) appears when Apply a discount Percent radio button is checked. With other Apply a discount options this toggle button is hidden. If enabled Exclude discount products, voucher will not apply to products already on sale.

Amount

The user will get a discount of a certain amount of price. Also the Currency can be set and the Taxes conditions in the following inputs as well.

  • Apply a discount to - available values to set for:

    • Order (without shipping)

    • Specific product - search product field appears below - it will set the ability to search the certain product.

    • Matching products dropdown - it will appear when there will be some characters typed in the "Product" field.

None

In that case user of the checkout will not get any discounting at all.

Send a free gift behavior

Switch toggle button (Forms switch UI kit), once Enabled, it shows Search a product field, where a specific product can be added as a gift.

Multistores functionality

This page is Multistores independent (todo link) page.

Once the Multistores are configured in Prestashop, Cart Rules can be applied for certain shop. Applying the Cart Rule for certain shop can be configured by navigating to Cart Rules > Edit section > Configure Tab. There is a checkbox in Restriction option. Clicking the checkbox of Shop selection option, enables switching the appropriate Prestashop shop to the "Selected shops" area. This enables applying the Cart Rule for certain Prestashop Multistore.

Last updated