Commit Graph

61 Commits

Author SHA1 Message Date
Claudio Sanches 3a0d2f7c89 [API] Fixed edit coupon description, closes #8614 2015-07-20 12:49:21 -03:00
Claudio Sanches b54a7a34a1 [API] Created bulk update/insert for coupons #7915 2015-05-07 13:13:41 -03:00
Claudio Sanches c06b6f13e3 [API] Improved the error messages when sent a empty object, closes #7914 2015-04-13 13:06:19 -03:00
Mike Jolley 10a819bd45 Use coupon_amount in api 2015-02-03 14:44:57 +00:00
Mike Jolley 7f2a943075 Docblocks 2015-01-23 14:35:17 +00:00
Claudio Sanches 4e2ae38233 [API] Fixed the expiry date when create a new coupon 2015-01-20 17:57:27 -02:00
Claudio Sanches 183d6ce62c [API] Fixed create coupon attributes 2015-01-20 17:03:21 -02:00
Claudio Sanches a74efe61a9 [API] dont count coupons if the user dont have permissions 2015-01-05 16:40:27 -02:00
Claudio Sanches a96815ced9 [API] Refactored the coupons endpoint to use the WC_API_Exception class #6138 2015-01-05 15:42:25 -02:00
Claudio Sanches d821dbf88e [API] Fixed the individual_use, enable_free_shipping and exclude_sale_items params for coupons endpoint 2014-12-18 15:01:54 -02:00
Mike Jolley eba8206540 Merge branch 'tax-coupon-handling' Closes #6830
Conflicts:
	assets/js/admin/meta-boxes-order.min.js
	includes/api/class-wc-api-coupons.php
	includes/class-wc-cart.php
	templates/checkout/review-order.php
2014-12-03 12:33:15 +00:00
claudiosmweb ce721fc86f [API] Fixed the coupons expiry_date format with POST and PUT, closes #6829 2014-11-25 12:44:33 -02:00
Mike Jolley 549d7ab2c0 Removed 'apply before tax' options for coupons - this should be the default core behaviour 2014-11-24 17:24:25 +00:00
claudiosmweb 2c48a87086 Fixed WC API Coupons params, closes #6828 2014-11-24 10:37:38 -02:00
Mike Jolley 4234502265 Coupon API: Don't return current timestamp when expiry_date is not set
Fixes #6546
2014-10-16 16:59:51 +01:00
shivapoudel e6f6bcf368 Absolute path fix for REST API v2 2014-09-21 01:09:20 +05:45
Max Rice 456d10bcec REST API: allow coupon description in create/edit coupon 2014-08-30 18:43:47 -04:00
Max Rice 53b53114a7 REST API: Fix edit coupon typos 2014-08-30 18:43:26 -04:00
Max Rice 744c3767c3 REST API: ensure consistency in create/edit data formats
A client should be able to GET a resource, edit a single item and PUT
it back to the server without having to perform any additional
transformation. This commit ensures all PUT/POST endpoints adhere to
this standard.
2014-08-30 15:50:40 -04:00
claudiosmweb 6081f3b61f fixed some missing and wrong textdomains 2014-08-15 16:08:43 -03:00
adamawesomeface 0e22412a7d maximum ammount for coupon functionality added 2014-08-08 07:38:58 -04:00
Max Rice 64ddf83184 Add coupon description to REST API coupon response 2014-07-30 16:19:35 -04:00
Gerhard 0463516020 Remove duplicate coupon type check 2014-03-06 10:08:27 +02:00
Gerhard 3b0c541acf Send http status 201 when coupon created. 2014-03-06 09:59:28 +02:00
Gerhard ae85e64b2b Edit coupon, save product ID's in comma separates values as per core 2014-03-06 08:52:34 +02:00
Gerhard 518a8cffb2 Save product ID's as comma separated values like core does it 2014-03-06 08:51:00 +02:00
Gerhard 8e0a267a84 Remove implode function 2014-03-06 08:10:08 +02:00
Gerhard d5171854a1 edit coupon, change comma separated data structures to arrays 2014-03-06 07:59:10 +02:00
Gerhard 6ddbc7e6ee Change comma separate data to arrays 2014-03-06 07:55:49 +02:00
Gerhard 88d6e064fa Add missing bracket 2014-03-06 07:50:05 +02:00
Gerhard 7e73f621c8 Add coupon type check when adding new coupon 2014-03-06 07:49:01 +02:00
Gerhard d278896d31 Fix route comments, moved coupon code filter and remove wc_clean around it, check for valid coupon types. 2014-03-06 07:45:32 +02:00
Gerhard 8fdfbdf3ba Add missing wpdb global 2014-03-05 09:42:12 +02:00
Gerhard 3bdf3e50cf Add check for duplicate coupon code when updating coupon code 2014-03-05 09:34:01 +02:00
Gerhard 86ac5de9cf Add filter to coupon code 2014-03-05 09:30:11 +02:00
Gerhard db2de990e7 Modify duplicate coupon error code 2014-03-05 09:28:59 +02:00
Gerhard f2f7e09143 Change duplicate coupon error code 2014-03-05 09:28:03 +02:00
Gerhard 826085698b Validate coupon types 2014-03-05 09:25:11 +02:00
Gerhard 7dc7353e60 Coding standards & cleaning of data before saving 2014-03-05 08:07:42 +02:00
Gerhard 268ef2faab Check if coupon was updated when using wp_update_post and return error if not 2014-03-05 08:03:10 +02:00
Gerhard a2ecd3885c edit_coupon REST API look for type and not discount_type 2014-03-05 07:59:27 +02:00
Gerhard fa6eb98535 Rest API edit_coupon function 2014-03-05 07:43:13 +02:00
Gerhard 42d42ae751 REST API create_coupons function 2014-03-05 07:28:05 +02:00
Gerhard a53b93283c Fix create coupon api method 2014-03-04 17:05:38 +02:00
Gerhard 38f701e90a Better coupon create error messages 2014-03-04 15:50:31 +02:00
Gerhard 70fb3c004d Create coupons via API 2014-03-04 15:44:33 +02:00
Max Rice 2b0a75cbd6 Fix warning when accessing coupons created in pre-2.1 installs 2013-12-10 17:31:41 -05:00
Coen Jacobs c1a439eb99 Formatting functions woocommerce to wc refactor 2013-11-25 14:34:21 +01:00
Max Rice 017e7cee1d Add permissions for count endpoints 2013-11-23 17:11:16 -05:00
Max Rice 0be58b3390 Normalize response data types
Part of #4055
2013-11-23 16:36:56 -05:00