top of page
Search
Writer's pictureYassine Alahyane

Sitecore Commerce Plugin - Donations and Dynamic Pricing


New Sitecore Commerce Plugin - Donations and Dynamic Pricing


August 22nd 2021


For the last few years I've been working with a Not For Profit Organization. We started on Sitecore Commerce 9.0.2 and Upgraded lately to 9.3.

Donations and Dynamic Pricing are a big part of any NFP organization model.


If you're working with an NFP or you want to add Donations and/or Dynamic Pricing to your Commerce Pricing Strategy, this plugin will help get you started.


Included in this Plugin:


  • Bizfx Extension to the 'Sellable Item' View with a new 'Donation Information' child view. This child view can be used to identify a product as a Donation or to allow a dynamic price on any retail product. For example, A product with a List Price of 40$ can accept a donation of 20$ or more for a certain period of time. 'Donation Information' view comes with Currency, Donation Id, Minimum Donation, Start and End Date Fields, and Add/Edit/Remove Actions as shown below:

  • 'AddDonationCartLine' Endpoint, with an added 'donationAmount' parameter (Compared to OOB AddCartLine Endpoint). the donation amount will be applied to the Cart instead of the List Price or Sell Price. This endpoint validates that the product's 'Donation Information' is valid, that the donation amount is >= minimum donation and that the current date is between Start Date and End Date

How to Install:


  1. Clone the Github repo here.

  2. Copy the 'Alyas.Commerce.Plugin.Donations' plugin to your XC Solution and add it as a project.

  3. Add it as a dependency to your Sitecore.Commerce.Engine project.

  4. Bootstrap Sitecore Commerce Engine.



I hope you find this plugin helpful.


Feel free to leave comments or questions.


62 views0 comments

Recent Posts

See All

コメント


bottom of page