Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Create a new discount by copying an existing

Fixed in

EPiServer.Commerce 12.3.0

(Or a related package)

Created

Jan 24, 2018

Updated

Dec 19, 2023

Area

Core

State

Closed, Acceptance tests pass


Description

  • Often, a new discount is very similar to an existing one, but for a new campaign. To support that, an editor should be able to Cut/Copy/Paste or Drag and Drop, a discount between campaigns.
  • An editor can also copy and paste a discount within the same campaign. In this case, a number is appended to the discount's name to distinguish it from the original.
  • Copying a discount and making a few tweaks can save the user a lot of work.

Impact of copying on a discount's field values

When you copy a discount, all field values from the original discount are copied to the new one with the possible exception of these.
Status – The copied discount is inactive by default.

Dates -
If the scheduling value is Same as the campaign, the value is maintained, and the dates are adjusted to match the “copy to” campaign's active dates.
If the scheduling value is Different start and end dates, those dates are copied to the new discount.

  • If one or both dates are outside of the “copy to” campaign’s date range, a warning appears next to that date. No other warning is issued either initially or if you later edit the discount.

If a conflict exists between a campaign's and a discount's active dates, the campaign's active dates override the discount's active dates. For example, a campaign runs from June 1 until June 30 at midnight, while one of its copied discounts has a begin date of June 15 and an end date of July 15. As of July 1, that discount is no longer active.