on 09-27-2017 6:27 AM
Supposed there's a company who wants to use Hybris to sell its internet plan. It only has InternetOnly pack and Family pack (which contains TV programs). The final price is decided by: postcode, the speed needed by the customer and also the price calculation factor which the speed belongs to. The company has different price calculation factor for each speed range. So, if there are 3 ranges: A)1-5Mbps, B)5-10Mbps, C)10-20Mbps and the user requested 7Mbps in his place (postcode = 12345), then the final price will be 7 x B.priceRateAt(12345).
My questions are: Should I create InternetVariantProduct to represent a certain pack of a certain price range? Since the price is not predefined and the actual product might be "unlimited", should I implement my own PriceService implementation? If yes, how to get the speed requested by the customer?
Thanks
Hi Mhmd,
Creating a dynamic attribute for price and whenever the customer request for particular speed, calculate price and set that to this dynamic attribute. I feel you don't need product concept as such if I am not wrong . Just have one product, So whenever particular speed is requested, just calculate price , set it to product model and at last show it on storefront .
Treat stock as the number of packs you will sell (like virtual stock).
That's just my suggestion. Do let me know your approach too.
Regards, Sid
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Product will be added to cart ,but you will be showing different information as per your need on cart page and hence further.
Basically, I am trying to say, same product will be added to cart everytime. But the view for cart page and further checkout ,you can tweak and show your relevant information. In back end , a product is added to cart .But, you will attach your information to distinguish among different orders.
Regards, Sid
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.