Skip to content

Instantly share code, notes, and snippets.

@drsii
Last active December 22, 2015 08:18
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drsii/6443926 to your computer and use it in GitHub Desktop.
Save drsii/6443926 to your computer and use it in GitHub Desktop.

#Discounts v1.0.0-alpha

A framework agnostic discount package featuring coupon/discount rule sets & conditions. Part of the Cartalyst Arsenal & licensed OSI BSD 3. Code well, rock on.

##Package Story

History and future capabilities.

####Incomplete

  • Discount::add(...) Can create a discount.
    • Set a discount name.
    • Set a discount description.
    • Set a discount status.
    • Set a discount code.
    • Set # uses per code.
    • Set from date.
    • Set to date.
    • Set priority.
  • Discount:: Can create a discount rule.
  • Discount:: Can set discount condition. (weight, total, Total Quantity, attribute)
  • Discount:: Can set discount action. (=, !=, <, >)
  • Discount:: Can set discount modifier. (fixed, percent)
  • Discount:: Can set discount modifier value.
  • Discount::save(..) Can save a discount.

Support

Have a bug? Please create an issue here on GitHub that conforms with necolas's guidelines.

https://github.com/cartalyst/cart/issues

Follow us on Twitter, @cartalyst.

Join us for a chat on IRC.

Server: irc.freenode.net Channel: #cartalyst

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment