Reputation: 39
I have an internal request from sales in my organisation to build a webshop for our distributors/retailers. I wonder if there is a webshop that does this built on Python/Django?
I find it much more complex than a normal web-shop because of this:
But another group gets a totally different price.
Mathematically this becomes a factorial problem with combinations, so the possible combinations of a customer - price per selected amount of items - group - product immediately becomes huge.
My guess is that it is best to do something like this: 1. Set our buying price for a product 2. Add a minimum margin for each amounts of purchases: 1-100 and so on. This way no customer can get lower than we at least make a profit. 3. Then depending on what group the customer belongs to, add another margin on top of 1 & 2. 4. Display The product on a webpage with the different prices when they add different amounts of items in the basket.
That creates prices built on calculations instead of a fixed price list, but it should work?
Is there anyone out there that has a working FOSS webshop in Python for this? Any ideas?
Cheers!
Upvotes: 4
Views: 735
Reputation: 26828
mezzanine looks like a great project to look at it uses Cartridge for it's Shopping cart module. They have a really nice demo site that you can use as and end user and and admin to edit products and prices. Django packages also have an eCommerce page worth looking at that evaluates a whole bunch of django packages on different features. I'm sure with those two resources you'll find something worth using as a base at least.
Upvotes: 1
Reputation: 2228
Have you looked at Satchmo?
Satchmo has support for user-group based discounts:
Satchmo supports setting different price and discount tiers based on user groups. The most common reason a store owner may need this is if they want to offer different discounts or prices for a class of user. For instance, a user with a “Gold” membership may automatically get a percentage discount. Another common usage is for wholesale versus retail pricing.
and the discounts may be activated when a certain quantity is ordered:
On the product variations, the price can have an expiration date and/or a quantity. If either of these fields are set then that price is only effective for orders placed before that date, or >= that quantity.
Satchmo is also widely used, so the documentation and the community is good.
Upvotes: 0