Managing discounts

Modified on Mon, 11 May at 1:27 PM

Since version 1.4.7, the discount management system has been improved.

There are different possibilities for creating discounts, with a maximum of two per product. To create discounts for all shops in a single channel, attach the field product_discount_1_type or product_discount_2_type with the command :all or :global. The plugin will then create the discount for all shops.

Example: percentage:all or %:global.

If you use discounts with the command :all, the other discount fields in other channels must be disabled. Otherwise, each channel could create discounts that the :all command would delete. If different discounts are needed per shop, do not use the all or global command in any channel.


Allowed values for the discount fields


product_discount_1: Numeric field from 1 to 100 when product_discount_1_type is configured as a percentage discount. To delete all discounts, send this line empty. If you do not want to edit discounts, deactivate these options from the PrestaShop channel in Sales Layer.

If product_discount_1_type is configured as an amount, you can add the amount to discount in product_discount_1.

product_discount_1_type:

  • Allowed values for amount: $, euro, €, dollar, amount, import.
  • Allowed values for percentage: %, percentage.
  • If there is no value, the default is amount.
  • Example to add the value all: percentage:all.

product_discount_1_quantity: Minimum number of units required to get the discount. When not filled, the default value is 1.

product_discount_1_from: The date when the discount begins being applicable.

product_discount_1_to: Expiration date for the discount.


Best practices


  • If you do not want the plugin to delete current discounts set in PrestaShop, disable the fields product_discount_1 and product_discount_2 in the Sales Layer channel.
  • If you use discounts for all shops, the command will format them all and will leave only the discounts created by the channel in every shop.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article