sapna mishra
Nov 30, 2015
  2027
(1 votes)

Save regular price and sale price for a given product in cart and purchase order

Having both the regular price of a product and the sale price (or customer specific discounted price) saved with the cart and purchase order. This can be handy for some reports on purchase orders or just to compare the savings per purchase order (without actual promotions).

Episerver updates “ListPrice” and “PlacedPrice” for a given products in the ValidateLineItemsActivity. Hence the ListPrice and PlacePrice is always same gets updated anytime you call CartPrepare, CartCheckout workflows.

My workaround to achieve the desired result was to comment out the line that updates “ListPrice” in “PopulateVariationInfo” function in ValidateLineItemsActivity.

ListPrice1

This was you can show the regular price and “You pay” price on the cart and carry it with purchase order.

Nov 30, 2015

Comments

Please login to comment.
Latest blogs
Optimizely Forms: You cannot submit this form because an administrator has turned off data storage.

Do not let this error message scare you, the solution is quite simple!

Tomas Hensrud Gulla | Oct 4, 2024 | Syndicated blog

Add your own tools to the Optimizely CMS 12 admin menu

The menus in Optimizely CMS can be extended using a MenuProvider, and using the path parameter you decide what menu you want to add additional menu...

Tomas Hensrud Gulla | Oct 3, 2024 | Syndicated blog

Integrating Optimizely DAM with Your Website

This article is the second in a series about integrating Optimizely DAM with websites. It discusses how to install the necessary package and code t...

Andrew Markham | Sep 28, 2024 | Syndicated blog

Opticon 2024 - highlights

I went to Opticon in Stockholm and here are my brief highlights based on the demos, presentations and roadmaps  Optimizely CMS SaaS will start to...

Daniel Ovaska | Sep 27, 2024