Progress Sitefinity CMS Documentation
Select a site
Sitefinity 10.2
Sitefinity 10.1
Sitefinity 10.0
Sitefinity 9.2
Sitefinity 9.1
Sitefinity 9.0
Sitefinity 8.2
Sitefinity 8.1
Sitefinity 8.0
Sitefinity 7.3
Sitefinity 7.2
API reference
Best practices
Knowledge base
Progress Sitefinity Digital Experience Cloud
Sitefinity.com
Ecommerce
Build a webshop
Sitefinity overview
Install, upgrade, and deploy
Pages
Widgets
Modules
Content
Development
Administration
Utilities and services
Multilingual
Mobile and responsive
Multisite
Marketing
Ecommerce
Feather
Sitefinity Thunder
Best practices
Reference
Search
Sitefinity documentation
/
Ecommerce: Build a webshop
/
Overview: Discounts and Coupons
/
For developers: Discounts
/
For developers: Delete discounts
For developers: Delete discounts
To delete a discount, you must perform the following:
Get an instance of the manager.
Get an instance of the
OrdersManager
object.
Get the specified discount.
Get an instance of the discount. For more information, read
For developers: Query discounts
.
Delete the discount criteria for this discount.
Delete all the discount criteria that are associated with the discount. For more information, see
For developers: Delete discount criteria
.
Mark the discount for deletion.
To mark the discount to be deleted, call the
DeleteDiscount
method of the manager and pass the ID of the discount as an argument.
Save the changes.
To delete the discount, save the changes to the manager.
Use the following code sample:
Back To Top
Next:
For developers: Discount criteria
Was this article helpful?
Yes
No
Would you like to submit additional feedback?
Your feedback about this content is important
How helpful is this article?
Very helpful
Somewhat helpful
Not helpful
How can we improve this article?
(Optional)
Fix typos or links
Fix incorrect information
Add or update code samples
Add or update illustrations
Add information about...
Send additional feedback
No thanks, don't send additional feedback
Thank you for submitting your feedback!