Pricing Issue
Problem:
We have a item collection that has minimum and maximum price with max discount across different stores.
{
"item_id":1,
"price":{
"min":1500.00,
"max":3000.00
},
"max_discount":50
}
Now, we have different store with different pricing, Consider Store S1 has 0% discount & S2 has 50% discount & S3 has 20% discount. Here one item can have n number of stores.
Now we have a case where we want to show inventory based on selected store that can be a combination of S1x S2 or S1 or S1xS3 etc.
In above case
- S1xS2 : Price change in this way
- min price: 1500
- max price: 3000
- maxdiscount:50%
- S1: Price change in this way
- min price: 3000
- max price: 3000
- maxdiscount:0%
- S1xS3: Price change in this way
- min price: 2400
- max price: 3000
- maxdiscount:50%
Here pricing will changes on every combination, based on above given solution.
Currently, we show min and max pricing in product listing based looking at all stores. We do not show based pricing on listing based on combination of stores.
Is there an effective way to solve this problem at scale?