Applicable products: Netmarkets

🔧 Cdiscount - Error : ("DiscountComponentDiscountValue", "DiscountComponentSalesReferencePrice", "DiscountComponentStartDate", "DiscountComponentEndDate"): as (25.0,) is/are set, one of either "DiscountComponentSalesReferencePrice"

Error message

("DiscountComponentDiscountValue", "DiscountComponentSalesReferencePrice", "DiscountComponentStartDate", "DiscountComponentEndDate"): as (25.0,) is/are set, one of either "DiscountComponentSalesReferencePrice" or both "DiscountComponentStartDate" and "DiscountComponentEndDate" should be set too

What does this error mean?

A discount value is sent in "DiscountComponentDiscountValue", but the reference price ("DiscountComponentSalesReferencePrice") is missing. Cdiscount cannot calculate the discount.

How to solve this error

It depends on the type of operation:

  • Official sales (Soldes): fill in "DiscountComponentSalesReferencePrice" with the reference price the discount is calculated on. Keep the discount percentage in "DiscountComponentDiscountValue". You don't need to send the start and end dates: Cdiscount manages the sales calendar.
  • Standard promotion (outside official sales): disable all rules and mappings on the "DiscountComponent" attributes. Map the discounted price to "Price" and the original price to "StrikedPrice", which must be higher than "Price".

Then launch a manual product push.

Comments

0 comments

Please sign in to leave a comment.

-

Articles in this section

See more
News, Services & Incident reports
Discover updates, webinars, and expert services to help you get the most from Lengow