RIS-SM-1015 Reduce Item’s Discount

Missing Phone Number and Email

The “Reduce Item’s Discount” is a macro that runs as an action of the Rules Engine. This macro allows for the manual reduction of discounts by a specified value provided by the client. This macro facilitates the modification of discounts for items in the item line of order with a 100% discount applied.

This guide provides a step-by-step explanation of how to install and set up the macro in Linnworks.

Start using the macro

8 1
There are three steps you need to complete to start using the macro:

Install the application.

  1. Go to Apps > Application Store > Reduce Item’s Discount > click Install and follow the on-screen instructions until the installation is complete.
  2. Configure the macro.
  3. Configure the rule in the Rules Engine screen.

Functionality

Discount Calculation:

Calculates the discount value based on the provided discount percentage.

Discount Application:

  1. Iterates through specified orders and evaluates each order item’s value.
  2. Applies a discount to order items with a value of zero and a 100% discount already applied.

Order Item Update:

Updates order items with the newly applied discounts to reflect the changes in pricing.

Configure the macro

Once the Reduce Item’s Discount app is installed:
image
  1. Go to Apps > Macro Configuration and click + Add new configuration.

1. Go to Apps > Macro Configuration and click + Add new configuration.

2.   Select the MissingPhonenumberandEmail macro and click .

image 2
image 3
  1. In the Macro Configuration screen, specify the below details and click Save

3. In the Macro Configuration screen, specify the below details and click Save:

4. Make sure to enable the macro to continue with the Rules Engine configuration.

image 4
Once the Reduce Item’s Discount app is installed:
  1. Go to Apps > Macro Configuration and click + Add new configuration.

1. Go to Apps > Macro Configuration and click + Add new configuration.

image

2. Select the MissingPhonenumberandEmail macro and click .

image 2
  1. In the Macro Configuration screen, specify the below details and click Save

3. In the Macro Configuration screen, specify the below details and click Save:

image 3

4. Make sure to enable the macro to continue with the Rules Engine configuration.

image 4

Configure the macro

Usage

creativity

Parameters:

OrderIds: List of OrderIds for which the presence of IOSS-related extended properties needs to be checked.

migrating

Execution:

  • The macro is executed within a rules engine environment, either scheduled to run at specific intervals or triggered by predefined events.
  • It takes the list of OrderIds as input and processes each order sequentially.
  • For each order, it checks for the presence of IOSS-related extended properties and generates a note accordingly.
  • The note is then saved for the corresponding order.
coding

Outcome:

  • Orders with relevant IOSS-related extended properties have notes appended to them, providing additional context or information for further processing.
  • The macro enhances the efficiency of order management processes by automatically adding notes based on specific criteria, reducing manual effort and potential oversights.