Try our conversational search powered by Generative AI!

sapna mishra
Nov 30, 2015
  1978
(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 Search and Navigation - Part 2 - Filter Tips

Introduction Continuing from Part 1 – Search Tips , today I will share the next part – filter tips. The platform versions used for this article are...

Binh Nguyen Thi | Jul 1, 2024

Integrating HubSpot CRM without the MA Connector

Have HubSpot CRM? Want to push user data into it from Optimizely? Don’t have any personalisation requirements with that data? Don’t want to pay $80...

Matt Pallatt | Jun 27, 2024

Keeping the website secure by updating external packages

Did you see the latest warning from Optimizely to update this package with a critical security warning? https://world.optimizely.com/documentation/...

Daniel Ovaska | Jun 27, 2024

Optimizely CMS image anonymization now available for Linux!

The famous image anonymization add-on for Optimizely CMS, with at least 5 downloads, is now finally available for use on Linux. Supports simultaneo...

Tomas Hensrud Gulla | Jun 25, 2024 | Syndicated blog

Remove a segment from the URL in CMS 12

Problem : I have created thousands of pages dynamically using schedule jobs with different templates (e.g. one column, two columns, etc..) and stor...

Sanjay Kumar | Jun 21, 2024

Copying property values part 2

After publishing my last article about copying property values to other language versions, I received constructive feedback on how could I change t...

Grzegorz Wiecheć | Jun 18, 2024 | Syndicated blog