Commit Graph

173 Commits

Author SHA1 Message Date
Mike Jolley 170399e5c3 Filter is_valid_for_product even when not relevant.
#5681
2014-07-04 11:03:12 +01:00
Mike Jolley 0448165c02 woocommerce_coupon_is_valid_for_cart
Closes #5681
2014-07-02 15:03:48 +01:00
Mike Jolley 6390e387e2 Additional check for product coupons and sale product exclusion. Fixes #5697 2014-06-25 13:46:47 +01:00
Jim Greenleaf 3b1f54f86c fix case-insensitive matching for coupon posts with uppercase chars 2014-04-30 23:29:29 -04:00
Mike Jolley a6a65a2a9d typecast $used_by to array in case its not set. Closes #5350 2014-04-24 15:26:38 +01:00
Akeda Bagus 2a97f07d47 Typo fix. 2014-04-15 22:56:35 +07:00
Mike Jolley 24c9d8b2e4 woocommerce_coupon_get_discount_amount filter in coupon class
Closes #5244
2014-04-07 10:26:43 +01:00
Mike Jolley 24e884a480 When dealing with fixed_product discounts, when doing it for the line, multiple by product qty Closes #5054 2014-03-06 12:29:25 +00:00
thenbrent f2a0e4bcdd Remove dup discount calculation 2014-01-30 21:54:33 -08:00
thenbrent 390afe9f90 Fix rounding bug with pre-tax product % coupon 2014-01-30 12:50:58 -08:00
Gregory K ec5f2c3501 PhpDoc fixes in class-wc-coupon 2013-11-25 10:00:54 -05:00
Coen Jacobs 4afbd0b556 Merge branch 'function-call-refactor'
Conflicts:
	includes/admin/post-types/meta-boxes/class-wc-meta-box-order-data.php
	includes/shortcodes/class-wc-shortcode-cart.php
	includes/wc-template-functions.php
2013-11-25 15:42:26 +01:00
Mike Jolley 51ba9c393f WC globals 2013-11-25 14:01:38 +00:00
Mike Jolley 3408965b8a Product functions 2013-11-25 14:01:38 +00:00
Coen Jacobs c1a439eb99 Formatting functions woocommerce to wc refactor 2013-11-25 14:34:21 +01:00
thenbrent fe44f020e3 Update calls to wc_add_message() function
Part of #4034
2013-11-12 20:59:39 -08:00
thenbrent 0d45e19fcf Update calls to wc_add_error() function
Part of #4034
2013-11-12 20:59:39 -08:00
Mike Jolley 5d2e1ac031 Refactor coupon code so coupons get the actual discount amount, redone edit coupon screen with tabs, added coupon item limits which Closes #3902 2013-10-18 18:10:58 +01:00
Mike Jolley 708423b96f Notices/undefined vars Closes #3911. 2013-10-11 12:31:36 +01:00
Mike Jolley c20a44c423 Coupon usage limits per user (using email + ID). Closes #3314 2013-10-01 11:48:27 +01:00
Mike Jolley e01df544ec Reworked total templates to support coupon lines, and started support for multiple shipping methods per order.
@todo store shipping methods in the order
@todo test with PP shipping real world

cc @coe
2013-08-14 21:00:34 +01:00
Mike Jolley 646a8a008c Make use of new functions 2013-06-11 15:59:54 +01:00
Mike Jolley c75ea04c1c classes -> includes 2013-06-11 14:25:30 +01:00