Mike Jolley
22dc056e16
Merge branch '4-4-term-meta-handling'
2016-03-04 10:55:53 +00:00
Mike Jolley
a1cce4a1b2
Issues from Justin
2016-03-04 10:53:48 +00:00
Shiva Poudel
23ad5580ae
Added Periods in the end of comments
2016-03-04 15:26:31 +05:45
Shiva Poudel
51cc7376dd
Docblock fix for get_field_description method
2016-03-04 15:15:03 +05:45
Shiva Poudel
3ae7e4e418
Tweak indentation tabs and correct use of br
...
Sublime linter showing notification due to </br>, instead we should use <br />
2016-03-04 15:08:45 +05:45
Allen Snook
1dbe6c21a0
Add hide_save_button to shipping zones instance template
...
(Like what is done for legacy shipping methods in the
html admin settings view)
2016-03-03 09:44:09 -08:00
Mike Jolley
7dadae7bc8
Load gateways before save
...
#10461
2016-03-03 17:05:40 +00:00
Mike Jolley
e7e4808726
Correct status check and improved note
...
#10461
2016-03-03 17:04:20 +00:00
Mike Jolley
fab1f224c6
When creating new order from draft, assume 'pending' for status transitions
...
Fixes #10461
2016-03-03 13:51:04 +00:00
Mike Jolley
03872e953b
[2.5] Round refund values.
...
Fixes #10456 .
2016-03-03 13:40:50 +00:00
Mike Jolley
89e8404acb
[2.5] Clear sale price on save if sale is no longer valid.
...
Closes #10454
2016-03-03 13:16:22 +00:00
Mike Jolley
c21b0eda82
Merge pull request #10361 from shivapoudel/ajax-customer-search
...
Feature to exclude certain users from ajax customer search box
2016-03-03 12:54:19 +00:00
Mike Jolley
e252e4a81d
Merge branch 'pr/10451'
2016-03-03 12:53:04 +00:00
Mike Jolley
a043b6d94d
Filter at end of should_deliver method
2016-03-03 12:52:58 +00:00
Justin Shreve
4c560e4da6
Merge pull request #10462 from justinshreve/clipboard-fail-10450
...
Provide help if clipboard copying fails (Safari or zeroclipboard issue) in wp-admin
2016-03-03 02:48:42 -08:00
Justin Shreve
b9870bff30
Minify js
2016-03-03 02:48:14 -08:00
Mike Jolley
295eb7e28d
Merge pull request #10467 from shivapoudel/target-blank
...
Blank target for links in theme suport notice
2016-03-03 10:30:58 +00:00
Shiva Poudel
e0a99751f8
Blank target for links in theme suport notice
2016-03-03 15:53:12 +05:45
Claudio Sanches
6cf120407c
Merge pull request #10460 from justinshreve/coupon-api-wp-error
...
Have wp_insert_post return WP_Error when creating our coupon in the REST API
2016-03-02 19:15:12 -03:00
Mike Jolley
579365b7d5
Merge branch 'master' into 4-4-term-meta-handling
...
# Conflicts:
# includes/class-wc-install.php
2016-03-02 18:38:39 +00:00
Mike Jolley
e380c14716
Upgrade handling
2016-03-02 18:32:33 +00:00
Mike Jolley
b86e16cef4
Merge pull request #10455 from johnjamesjacoby/master
...
[2.5] Update database keys for utf8mb4 charset/collation
2016-03-02 18:28:22 +00:00
Justin Shreve
f4d771ef3e
Show error if copying can't even happen (to cover safari).
2016-03-02 10:25:16 -08:00
Mike Jolley
b221f9964a
Merge branch 'master' into 4-4-term-meta-handling
2016-03-02 18:24:52 +00:00
Mike Jolley
5c3e7ded03
Version checks not needed
2016-03-02 18:24:49 +00:00
Justin Shreve
32eabbc685
Provide a fallback message if copying to the clipboard fails.
2016-03-02 10:13:17 -08:00
Justin Shreve
4ef68a354a
Have wp_insert_post return WP_Error when creating our coupon, so the is_wp_error check can catch it.
2016-03-02 06:54:33 -08:00
John James Jacoby
ca8ffcc9f4
Update database keys for utf8mb4 charset/collation
...
Since WordPress 4.2, `utf8mb4` is a natively supported and encouraged type of installation. Unfortunately some WooCommerce database tables fail to get created in these types of installations (with something like the below settings):
```
define( 'DB_CHARSET', 'utf8mb4' );
define( 'DB_COLLATE', 'utf8mb4_unicode_ci' );
```
This commit takes a queue from WordPress core's `schema.php` and limits the length of index `KEY`s to `191`.
2016-03-01 19:28:04 -06:00
Justin Shreve
e94a60d4c3
Update minified JS
2016-03-01 11:49:43 -08:00
Justin Shreve
ccb2c90ef3
Update references for the tokenization UI script (hiding/showing inputs) to use the correct file.
2016-03-01 11:49:43 -08:00
Justin Shreve
a2aa20bcb5
Rename payment-gateway JS to tokenization-form.
2016-03-01 11:49:42 -08:00
Justin Shreve
49c45c6dc1
Make sure the is_default/default token ability works correctly. Also adds a new method for getting a users default token. Fixes up some docblocks.
2016-03-01 11:49:42 -08:00
Justin Shreve
0985292a79
Make sure the tokenization script is output even if the current user is logged out (we still show save payment method if user is creating account).
2016-03-01 11:49:42 -08:00
Justin Shreve
e3d7e206d0
Create a function for getting correctly formatted credit card type labels (MasterCard, American Express, etc)
2016-03-01 11:49:42 -08:00
Justin Shreve
75f2e6b85c
Fix up some comments and add uninstalling code.
2016-03-01 11:49:42 -08:00
Justin Shreve
c0b74296ff
* Remove WC_Payment_Gateway_Form in favor of having a Payment_Gateway_CC and Payment_Gateway_eCheck
...
* Fix up some comments to match other comments in the WC code base
* Add some missing esc_* functions
* Add a gateway filter to get_customer_tokens + a test for it
2016-03-01 11:49:42 -08:00
Justin Shreve
fa5283d3df
Minify Simplify JS
2016-03-01 11:49:42 -08:00
Justin Shreve
e6a527547f
Add the ability for gateways to override the "new payment method" label.
2016-03-01 11:49:42 -08:00
Justin Shreve
cfe1da13d5
Remove todo comment for payment token tables
2016-03-01 11:49:41 -08:00
Justin Shreve
31bae0c19e
Hook up the tokenization API to the "add payment method" button in my account settings.
2016-03-01 11:49:41 -08:00
Justin Shreve
9db1f65196
Hook up the payment token API to the my account > payment methods tab
2016-03-01 11:49:41 -08:00
Justin Shreve
2e73486004
Add minified simplify js.
...
Enable payment gateways to show/force CVC on saved gateways.
2016-03-01 11:49:41 -08:00
Justin Shreve
898242c34d
Integrate simplify with the token API to save cards/customer data and use a saved card.
2016-03-01 11:49:40 -08:00
Justin Shreve
eff4e297f9
First pass at showing saved payment methods on checkout
2016-03-01 11:49:40 -08:00
Justin Shreve
defff6c5a9
Add the payment token tables to the database status report.
2016-03-01 11:49:40 -08:00
Justin Shreve
5d8967c7d7
Prepare a list of payment methods for output on the payment methods "my account" page.
2016-03-01 11:49:40 -08:00
Justin Shreve
8f27a3b3af
Full set of tests for the payment token API
2016-03-01 11:49:40 -08:00
Justin Shreve
0061b36f3b
Make sure WP knows about the payment token meta table, and return null in payment tokens get if a token cannot be found.
2016-03-01 11:49:39 -08:00
Justin Shreve
df260c228d
Prevent notice from being displayed for user_id and remove static on echeck validate
2016-03-01 11:49:39 -08:00
Justin Shreve
7b57b4c4cc
Validate length for expiry - 4 chars for year and 2 for month.
2016-03-01 11:49:39 -08:00