Transforming digital sales (4) – Special discounts for Special products

LEGO technic is generally quite popular among fans. But the sale of the top gear rally car set is consistently 20 ~ 30% below average in 2020. Amazon and Argos are currently selling it at half price. This is a much better off than the 30% discount BBB offers to its employee. BBB cannot match the off in retail market but just to be fair to its employees Shane decided the least they can do is to match up Amazon and Argos price in Staff Sales. Eventually they do need to free up the inventory in preparation for the new year.

Ken was scanning through the design backlogs in Jira. He was supposed to pick up one of the high priority product backlog item. But once in a while Ken allowed himself to have a look at something he found really interesting. It is Ken’s own therapy to reduce work stress. This time a requirement to support product level discount variation caught his eye.

As the owner of staff sales, I want to sell LEGO Technic Top Gear Rally Car 42109 at half price so that we can match the it’s price at Amazon and Argos

Any opportunity to showcase the dynamic pricing engine made him excited. He drew a diagram quickly on his whiteboard.

It makes sense for a customer to have multiple product views at the same time. The many to many relationship between Accounts and ProductView supports that perfectly well. But in the scenario Ken’s facing the same product would appear in more than one product views. The question then became which product view he’d use to calculate the product view. The answer is simple. Whichever gives the biggest discount wins. By this logic, the customers would always see the lowest price. They wouldn’t complaint. Ken didn’t think the owner of Staff Sales would complaint either. She’s happy as long as the customers’ happy.

It only took Ken a couple of hours to update his dynamic pricing engine. Evidently his design could be quickly extended to handle new requirements. After a few successful rounds of tests in Postman Ken updated the status of the backlog item to Ready for Development. It’s a job well done. Ken decided to reward himself a flashy LEGO top gear racing car. The 50% discount’s not bad at all. He smiled.

BBB STAFF extra discount allows its staff to buy some items with a 50% discount
Test in Postman shows various discounts are applied to different products in the same categories

Leave a comment