Reputation: 40633
I'm working on an e-commerce type web application and need to somehow handle calculation of shipping costs. Some rules I've found:
... and so on.
Any suggestions how to tackle such a problem?
Upvotes: 3
Views: 1664
Reputation: 5606
I suggest you take a look at some available open source ecommerce solutions. There are a LOT of them and each one takes a stab at doing exactly what you are trying to do. If it is schema design you are after I wouldn't limit your searches to just MySQL - as long as it contains a relational database it should be easy to dig into the design. I'd take a look at nopcommerce to name just one...
Upvotes: 3
Reputation: 52372
Create a framework where your eCommerce system accepts modules that define shipping rules (and interfaces and calculations, etc). Design it such that you expect these modules to be able to provide all those functions. Let the end users decide which modules to use based on their own needs, as which shipping rules to use is a business decision and not a technology one.
Upvotes: 1