ordercloud-api / headstart

A complete and opinionated eCommerce solution using OrderCloud as the backbone - built with .NET Core and Angular
MIT License
31 stars 74 forks source link

Add Sale Pricing Feature to Headstart #360

Closed abishop451 closed 2 years ago

abishop451 commented 2 years ago

A new feature to support Sale Pricing was released to OrderCloud on March 9th. Let's add this feature to Headstart so other can try it out.

Admin Requirements - Products

  1. Allow an MPO or Supplier to set sale prices directly on products, including Start and End Date (these are new properties on Price Schedules). Ref: Exhibit 1
  2. All Price Editing permissions should stay intact (I.e. Supplier can set price on their products and MPO can override them)
  3. If Sale Price is active, show on Product Card in the Product Create/Edit Screens. Ref: Exhibit 2

Exhibit 1: I'm envisioning just adding columns to the existing Price Table, like this: image

Exhibit 2: image

Admin Requirements - Orders

  1. Show on Order Line Items both the Sale Price and Regular price of the product if the Buyer got it on sale. (NOTE: this will have to be done at a later time because this data is not currently available on Order Line Items -- it's on the roadmap).

Buyer Requirements - Product Pages

  1. Show Regular Price and Sale Price on Product Cards if the Sale Price is Active. Ref: Exhibit 3
  2. Show Regular Price and Sale Price on Product Detail Page if the Sale Price is Active. Ref: Exhibit 4

Exhibit 3: image

Exhibit 4: image

Buyer Requirements - Checkout

  1. On cart page, display Regular and Sale price if the Sale Price is Active. Ref: Exhibit 5
  2. Do the same on the Shipping Selection section where it shows Line Items
  3. Do the same on Order Review page where it shows Line Items
  4. The platform will automatically use the sale price to calculate Line Total and Order Total. Nothing needed there.
  5. On Order Confirmation, display Regular and Sale price if the Sale Price is active. (NOTE: this will have to be done at a later time because this data is not currently available on Order Line Items -- it's on the roadmap).

Exhibit 5: image

Other Considerations

crhistianramirez commented 2 years ago

This has been merged in