ShoppingOptimizer is a PHP class that is used to find the most profitable ways to purchase items using cart discount coupons in one or multiple cart parts.
Example script is included in the package. (example.php)
- Example with no budget limit (example_output.html) (example_output_sample.png)
- Example with budget (example_with_budget_output.html)
- getAvailableCartSortOrders()
- getCartSortOrders()
- getCoupons()
- getDiscountedCarts()
- removeMaximumBudget()
- resetItems()
- setCartSortOrders()
- setCoupons()
- setDefaultCartSortOrders()
- setItems()
- setMaximumBudget()
- setOnlyDistinctSum()
- PHP 5 >= 5.5.0
Thanks for checking out this class! If you have improvement idea or bug fix, please feel free to contribute this class.
Ovunc Tukenmez
ovunct@live.com