Managing discounts

Since version 1.4.7 the system to manage discounts has been improved. 

Warning: If you don’t want the plugin to delete current discounts set at PrestaShop, you can disable the fields product_discount_1 y 2 at Sales Layer channel.

 

There are different possibilities for creating discounts, with a maximum of 2 per product. If you want to create discounts for all the shops in one single channel, it is possible to attach the field  product_discount_1_type or product_discount_2_type  with the command  :all or :global. The plugin then will create the discount for all the shops. Example: percentage:all or %:global.

 

Warning: if you’re going to use the discounts for all the shops, the command will format them all and it will only leave the ones created at the channel in every shop.

 

If you are going to use discounts with the command :all , the other discount fields in other channels must be disabled, otherwise, each channel could create discounts that command :all would delete. It is good to keep in mind that in case you need different discounts per shop, you can’t use the command all or global in any channel. The command:all only can be used to manage discounts in all the shops.

 

Allowed values for the discount fields

 

product_discount_1  → numeric field from  1-100 in case the field product_discount_1_type is configured as a percentage discount. In order to delete all the discounts this line must be sent empty. If you don’t want to edit discounts, deactivate these options from the PrestaShop channel at Sales Layer.

If the field product_discount_1_type is configured as amount, you can add at product_discount_1 the amount to be discounted.

 

product_discount_1_type 

  • Allowed for the amount ($, euro, €, dollar, amount, import).
  • Allowed for percentage (%, percentage).

If there is no value, by default is the amount.

Example to add the value all → percentage:all

 

product_discount_1_quantitythe minimum number of units required in order 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.