Skip to content

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.

Notifications You must be signed in to change notification settings

ovunctukenmez/ShoppingOptimizer

Repository files navigation

ShoppingOptimizer PHP Class

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)

Sample Outputs

  • Example with no budget limit (example_output.html) (example_output_sample.png)
  • Example with budget (example_with_budget_output.html)

Public Methods of Class

  • getAvailableCartSortOrders()
  • getCartSortOrders()
  • getCoupons()
  • getDiscountedCarts()
  • removeMaximumBudget()
  • resetItems()
  • setCartSortOrders()
  • setCoupons()
  • setDefaultCartSortOrders()
  • setItems()
  • setMaximumBudget()
  • setOnlyDistinctSum()

Class Requirements

  • 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

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published