Justin Shreve
f973b9d122
Make some improvements to metadata. Don't return [0] array, allow setting custom meta with a WC_Coupon method. Fix up some tests.
2016-03-17 09:19:29 -07:00
Justin Shreve
7e97ee94c1
Update deprecated and doing it wrong version numbers
2016-03-17 09:19:28 -07:00
Justin Shreve
69973d520e
Update version strings
2016-03-17 09:19:28 -07:00
Justin Shreve
57f918fb03
Add Coupon REST API tests to verify nothing breaks API wise -- full set of tests even though we are just changing GET endpoints (increases test coverage)
2016-03-17 09:19:28 -07:00
Justin Shreve
5ea607e236
Handle the rest of the PR feedback:
...
* Run get_code through the woocommerce_coupon_code filter
* Convert expiry dates to timestamps in set_expiry_date
* Simplify product ID array explodes to get an empty array
2016-03-17 09:19:28 -07:00
Justin Shreve
0268a67c4b
Address a few of the feedback items from the PR:
...
* Switch all coupon fields to _data
* Move coupon custom fields to _meta_data
* Shorten the 'yes' -> true checks
* Add a test for getting custom fields
2016-03-17 09:19:28 -07:00
Justin Shreve
61ae531de0
Add hooks for create, update, and delete.
2016-03-17 09:19:28 -07:00
Justin Shreve
50e1bc7117
Add tests for the getter/setter methods
2016-03-17 09:19:28 -07:00
Justin Shreve
1e8c45fba5
Fix typos in API
2016-03-17 09:19:28 -07:00
Justin Shreve
7a0c8d146b
Add the ability to create coupons via code (so things like Points & Rewards will still work).
2016-03-17 09:19:27 -07:00
Justin Shreve
3eacb992bc
Address issues from Mike's Feedback:
...
* Rename individual use, free shipping, and exclude sale items to match their meta names closer.
* Sanitize emails when using set_email_restrictions
* Remove some unnecessary explict true checks
* Move ID into _data with the rest of the fields
* Fixed some spacing issues
2016-03-17 09:19:27 -07:00
Justin Shreve
447462b274
Allow access to coupon properties directly to allow for back-compat usage, but throw a deprecated notice. Also adds a test to make sure these properties work as they should.
2016-03-17 09:19:27 -07:00
Justin Shreve
d738dec05d
Coupon CRUD (WIP).
2016-03-17 09:19:27 -07:00
Mike Jolley
12e23bb143
Adjust related query nesting
...
Fixes #10568
2016-03-17 16:02:33 +00:00
Mike Jolley
021a242e06
PDT charset conversion
2016-03-17 15:53:13 +00:00
Mike Jolley
5307f13da7
WC_data abstract compat
2016-03-17 15:22:39 +00:00
Mike Jolley
6765967be8
Add data and tostring handling to WC_Data
2016-03-17 15:22:29 +00:00
Mike Jolley
9ce1a21271
Merge pull request #10557 from justinshreve/crud
...
New WC_Data class with meta methods for CRUD
2016-03-17 13:49:20 +00:00
Mike Jolley
92226c78ae
Merge pull request #10575 from shivapoudel/nav-tab-fix
...
Apply custom css for nav tag but not in h2 tag
2016-03-17 11:52:49 +00:00
Shiva Poudel
51357f8ca2
Apply custom css for nav tag but not in h2 tag, #10515
...
CC @mikejolley
2016-03-17 17:31:16 +05:45
Claudio Sanches
7c81119a04
[2.5] Changed CuraÇao to Curaçao
2016-03-17 02:14:17 -03:00
James Koster
42ed4e0301
adds info class to 'no saved methods' notice in the account section.
2016-03-16 19:05:00 +00:00
Claudio Sanches
631c814448
[API] Allow save image ID when saving product variations, closes #10570
2016-03-16 15:05:14 -03:00
Mike Jolley
fa30a38c58
Merge pull request #10471 from brazabr/master
...
Implement shipping packages filters to allow multiple origins
2016-03-16 12:53:09 +00:00
Mike Jolley
34767ebe0c
Bump min recommended requirements to 5.6
2016-03-16 12:42:57 +00:00
Mike Jolley
874d2e3e0a
Check cookie is a string
2016-03-16 10:04:53 +00:00
Thiago Benvenuto
1847b0fab5
Adjusted since version
2016-03-15 20:31:39 -03:00
Thiago Benvenuto
180a09f52c
Added docblock to filter
...
Removed duplicated filter
Renamed filter after shipping costs are calculated
2016-03-15 20:31:39 -03:00
Thiago Benvenuto
30a06d85df
Fixed identation mistake
2016-03-15 20:31:39 -03:00
Thiago Benvenuto
7832039bb7
Implemented packages filter for marketplace
2016-03-15 20:31:39 -03:00
Justin Shreve
a51e164fd7
Set versions to 2.6
2016-03-15 15:44:04 -07:00
Justin Shreve
9aff45e154
Feedback
2016-03-15 15:11:07 -07:00
Mike Jolley
defa1f9fb9
Merge pull request #10565 from doublesharp/master
...
Fixes legend->chart highlighting for coupons
2016-03-15 21:47:36 +00:00
Justin Silver
ef3a5b97ef
Merge remote-tracking branch 'upstream/master'
2016-03-15 13:51:49 -07:00
Justin Silver
4dec4832e1
Fix highlight series ID for coupons line from legend
2016-03-15 13:50:01 -07:00
Mike Jolley
1549158981
Add 'is_enabled' column to instances table and allow toggle in zones screen
...
@allendav
2016-03-15 17:23:06 +00:00
Mike Jolley
0ac7b23a1c
Use one save button and add classname
...
@allendav
2016-03-15 16:21:57 +00:00
Mike Jolley
05179ea253
Removed debug code
2016-03-15 15:58:15 +00:00
Mike Jolley
e22d324be4
Add notice for legacy shipping zones after update
2016-03-15 15:58:03 +00:00
Mike Jolley
5fe501e436
Convert encoding
...
#10562
2016-03-15 15:58:03 +00:00
James Koster
2be24c3a33
tweak component name class
2016-03-15 13:44:59 +00:00
James Koster
362749acc9
add a class to the main product link
2016-03-15 13:41:33 +00:00
Mike Jolley
da7cef6fa0
delete orphan relationships #10494
2016-03-15 13:32:19 +00:00
Mike Jolley
c10b861f80
Merge pull request #10558 from doublesharp/master
...
Add 'woocommerce_admin_report_data' and 'woocommerce_admin_report_chart_data' to filter chart data by 3rd parties
2016-03-15 12:22:18 +00:00
Mike Jolley
e664f0f82b
Log PDT data correctly, including payer details
...
Closes #10546
2016-03-15 12:18:52 +00:00
Mike Jolley
6989ee8f9c
Update ISSUE_TEMPLATE.md
2016-03-15 11:49:24 +00:00
Justin Silver
ffdfe816ec
Add ‘woocommerce_admin_report_data’ to filter chart data by 3rd parties
...
Refactor get_main_chart() to use an array of data so that it to can be
filtered
Add ‘woocommerce_admin_report_chart_data’ to filter chart data by
period (for display)
2016-03-14 19:30:49 -07:00
Justin Shreve
5d6cdd05f1
Finish out tests, make sure to use cprrect meta ID field in order by clause.
2016-03-14 11:12:47 -07:00
Justin Shreve
97c0edf445
Start on tests for testing CRUD meta.
...
Includes Mock object for testing against the abstract WC_Data.
2016-03-14 11:12:47 -07:00
Justin Shreve
f572a887e0
New Abstract WC_Data Class
2016-03-14 11:12:47 -07:00