- [Home page](https://www.brimit.com/)
- [Blog](https://www.brimit.com/blog)

# Sitecore Commerce 9: An Issue with Promotion Discounts. They Are Saved as a Draft, but Apply to Cart

[#How-to](https://www.brimit.com/blog?categories=#How-to) [DXP](https://www.brimit.com/blog?platforms=DXP)
[Andrei Paliakou](https://www.brimit.com/blog/author?authors=Andrei%20Paliakou) on April 23, 2020

Sitecore Experience Commerce (XC) 9 has the Promotions feature OOTB, which enables you  to create and manage promotions via the BizFx site. [This resource](https://doc.sitecore.com/users/93/sitecore-experience-commerce/en/work-with-promotions.html) explains how to work with promotions in detail.

When I worked with promotions last time, I had a weird situation, which looked like a bug. What I did is I created a new promotion, added qualifications and benefits. I would like to highlight that I didn’t create public or private coupons and I didn’t approve the promotion, it was saved as a draft. Then I added several products to the cart, applied the promo, and...I got a discount. Just to remind you, I didn’t approve the promotion yet. Then why did I get a promotion discount?

After some research, I found this in the XC documentation:

*However, you can test a promotion in your authoring environment before you send it through the approval process.*

Usually, if you work with XC, you have an on-premises installation of it with a default Storefront site. Based on the default configuration, Sitecore Experience Platform is configured to communicate with XC in *CommerceAuthoring* role. This configuration located in *sxa.storefront.com\App\_Config\Include\Y.Commerce.Engine\Sitecore.Commerce.Engine.Connect.config*

![](https://www.brimit.com/-/media/images/blog/sitecore-commerce-engine-connect-config.png)

![](https://www.brimit.com/-/media/images/blog/commerce-authoring-sc9-home.png)

In a standard installation it points to *CommerceAuthoring* role. It means that the Commerce Engine would likely retrieve the data directly from the database to provide the most recent information. You can find more info about the Commerce Engine environments [here](https://doc.sitecore.com/developers/93/sitecore-experience-commerce/en/commerce-engine-environments.html).

After that, I tried to re-configure XP to communicate with *CommerceShops* role and checked cart again. A promotion discount was not applied and this is what I expected initially. But why does it work for *CommerceShops*, but doesn't work for *CommerceAuthoring*?

Now, the answer is simple. *CommerceAuthoring* and *CommerceShops* environments have *GlobalPromotionsPolicy*:

![](https://www.brimit.com/-/media/images/blog/json-diff-promotion-discount.png)

You can re-configure and set the value of *PromotionsRequireApproval* as “true” in the *CommerceAuthoring* role. Then, run a Bootstrap request via Postman to apply the changes in the XC configuration.

I hope someone who has the same issue finds this useful.

###### Author

![apaliakou](https://www.brimit.com/-/jssmedia/feature/blogs/authors/apaliakou.jpg?h=216&iar=0&w=360&hash=5BE96F17AE5B47F66D9F684B87773675)

Andrei Paliakou

Sitecore MVP/ Lead Developer
[Andrei Paliakou](https://www.brimit.com/blog/author?authors=Andrei%20Paliakou)

###### More By Categories

[#Events](https://www.brimit.com/blog?categories=#Events) [#How-to](https://www.brimit.com/blog?categories=#How-to) [#News](https://www.brimit.com/blog?categories=#News) [#Guides](https://www.brimit.com/blog?categories=#Guides)

###### More by Platform

[Data and AI](https://www.brimit.com/blog?platforms=Data%20and%20AI) [DXP](https://www.brimit.com/blog?platforms=DXP) [E-commerce](https://www.brimit.com/blog?platforms=E-commerce) [Internet of Things](https://www.brimit.com/blog?platforms=Internet%20of%20Things) [Sales and marketing automation](https://www.brimit.com/blog?platforms=Sales%20and%20marketing%20automation)

#### More on Sitecore

![How Vercel Will Help You Save Effort When Deploying Sophisticated Sitecore Projects](https://www.brimit.com/-/jssmedia/project/brimit/blog/2024/vercel_cover-image.png)
#Guides #How-to DXP E-commerce

##### How Vercel Will Help You Save Effort When Deploying Sophisticated Sitecore Projects

Optimize and accelerate the development and deployment of complex multisite Sitecore projects.

Alexei Vershalovich on July 17, 2024
[How Vercel Will Help You Save Effort When Deploying Sophisticated Sitecore Projects](https://www.brimit.com/blog/how-vercel-will-help-you-save-effort-when-deploying-sophisticated-sitecore-projects)

![Training Up Tomorrow's Sitecore MVPs: a Mentoring Success Story](https://www.brimit.com/-/jssmedia/project/brimit/blog/2023/sitecore-mentoring---cover-image.png)
#How-to DXP

##### Training Up Tomorrow's Sitecore MVPs: a Mentoring Success Story

How to participate in the Sitecore Mentor program and help younger colleagues jump-start a career in Sitecore development.

Sergey Baranov on October 2, 2023
[Training Up Tomorrow's Sitecore MVPs: a Mentoring Success Story](https://www.brimit.com/blog/training-up-tomorrows-sitecore-mvps)

![Going Headless. Part 2: When a Headless CMS Is Your Best Bet (if you have Sitecore)](https://www.brimit.com/-/jssmedia/project/brimit/blog/2022/headless/adobestock_456986731.jpg)
#How-to DXP E-commerce

##### Going Headless. Part 2: When a Headless CMS Is Your Best Bet (if you have Sitecore)

Discover how a headless CMS can benefit organizations that use Sitecore.

Daniil Raschupkin, Palina Trokhautsava on September 15, 2022
[Going Headless. Part 2: When a Headless CMS Is Your Best Bet (if you have Sitecore)](https://www.brimit.com/blog/going-headless-part-2-when-a-headless-cms-is-your-best-bet-if-you-have-sitecore)
