Commit Graph

6823 Commits

Author SHA1 Message Date
Mike Jolley 73fdfe595a [2.5] Prevent shortcode errors when non product ID is provided
Fixes #10534
2016-03-11 12:53:50 +00:00
Mike Jolley 86a0fff731 [2.5] Before updating with DBDELTA, drop existing indexes so they can be re-added without duplicate key errors. 2016-03-11 12:32:43 +00:00
Claudio Sanches 5fbd88489b Input type for api keys 2016-03-10 14:39:52 -03:00
Claudio Sanches e233eaa2c3 Fixed missing textdomain 2016-03-10 14:26:06 -03:00
Mike Jolley d28183f267 Merge pull request #10531 from torrelasley/patch-1
Fixing Issue #10523 - Variations ID lookup by SKU
2016-03-10 12:52:54 +00:00
Mike Jolley 2d2c64d2ab Change heading and tab markup
Closes #10515
2016-03-10 12:52:20 +00:00
Torre Lasley e9c3a3614f Fixing Issue #10523 - Variations ID lookup by SKU
I copied the code from the bulk() function to look up the Variation ID by the Variation SKU if the Variation ID is missing.
2016-03-10 07:34:29 -05:00
Mike Jolley 29d35151a1 woocommerce_cod_process_payment_order_status filter
Closes #10522
2016-03-10 12:30:42 +00:00
Mike Jolley 726728071b [2.5] Hide shipping row when calculator is disabled, and shipping costs are hidden
Fixes #10519
2016-03-10 12:26:52 +00:00
Mike Jolley b4f4e3c7ab Merge pull request #10530 from ConfusedTA/patch-1
Add filter to output from json_search_customers
2016-03-10 12:21:27 +00:00
Mike Jolley 1cf4543137 Spanish postcode format
Closes #10529
2016-03-10 12:17:49 +00:00
ConfusedTA 8495d98275 Add filter to output from json_search_customers
Add filter to admin ajax customer search, to allow modification of search result output via plugin or theme.
2016-03-10 12:15:44 +00:00
Mike Jolley 9ce892bd39 Avoid title case. Clean up colon.
Closes #10524 (lol)
2016-03-10 11:39:32 +00:00
Mike Jolley 32acec8477 Load session handler and abstract together 2016-03-10 09:31:25 +00:00
Shiva Poudel d567d12b64 Remove colon from tax setting page 2016-03-10 11:32:33 +05:45
Claudio Sanches 11decde0ab Make sure that the attribute is a taxonomy before unset #10506 2016-03-09 17:17:21 -03:00
Claudio Sanches 99fd5f0d68 [2.5] Unset deleted attributes when update products, closes #10506 2016-03-09 17:12:19 -03:00
Mike Jolley 2e0f151039 Merge branch 'master' into wc-get-orders-10500
# Conflicts:
#	includes/wc-order-functions.php
#	includes/wc-template-functions.php
#	templates/myaccount/my-orders.php
#	templates/myaccount/orders.php
2016-03-09 16:23:01 +00:00
Mike Jolley cc97de2315 Revert "Implement wc_get_orders() function"
This reverts commit 5075d4bab3.
2016-03-09 16:16:22 +00:00
Mike Jolley c1e8dd1fe8 Use wc_get_orders iternally 2016-03-09 16:11:05 +00:00
Mike Jolley d3f98dce03 More advanced customer filter
#10500
2016-03-09 14:50:34 +00:00
Mike Jolley 333a391406 Remove wc_get_account_orders_query_args
#10500
2016-03-09 13:26:54 +00:00
Mike Jolley 5075d4bab3 Implement wc_get_orders() function
#10500
2016-03-09 13:25:42 +00:00
Mike Jolley 807b860a6c Merge pull request #10514 from SiR-DanieL/email-items-type
Added bool param for email order items hooks
2016-03-09 12:00:11 +00:00
Mike Jolley 55918626f5 [2.5] Update date for paid orders during non-manual updates only
Fixes #10510
2016-03-09 11:58:44 +00:00
Nicola Mustone c7756187e0 Added bool param for email order items hooks 2016-03-09 12:55:28 +01:00
Shiva Poudel 1a9f30d7e1 Simplify the copy-error message in system status 2016-03-09 01:04:41 +05:45
Claudio Sanches ffd150d4df Coding standards 2016-03-08 15:54:19 -03:00
Claudio Sanches b6376b86c5 Trigger webhook when user edit addresses on frontend, closes #10505 2016-03-08 15:54:13 -03:00
Claudio Sanches 2c4aff6370 Merge pull request #10507 from shivapoudel/system-status
Remove WP 4.2 emojis prefix in system status report
2016-03-08 15:47:20 -03:00
Shiva Poudel 3111ecf8e8 Remove WP 4.2 emojis prefix in system status report 2016-03-08 23:32:39 +05:45
Claudio Sanches 4760108a03 Merge pull request #10504 from woothemes/SiR-DanieL-patch-1
[WC-CLI] Allow multidimensional arrays to be created properly
2016-03-08 13:07:50 -03:00
Nicola Mustone 417a97af78 allow multidimensional arrays to be created properly 2016-03-08 17:00:35 +01:00
Nicola Mustone c159f5c0c8 making easier to create variations 2016-03-08 16:49:30 +01:00
Mike Jolley 53d89dd257 Merge pull request #10499 from SiR-DanieL/wc-cli-bool-bugfix
WC CLI can't turn on checkboxes
2016-03-08 14:33:52 +00:00
Nicola Mustone 4633982161 use a helper method to check values 2016-03-08 15:18:31 +01:00
Nicola Mustone a174f85381 checking 'yes' against boolean 2016-03-08 14:51:04 +01:00
Mike Jolley eefbc053c9 escape data-title
Fixes #10490
2016-03-08 13:41:34 +00:00
Mike Jolley f7f26b192b Don't affect log when generating log text 2016-03-08 13:24:19 +00:00
Mike Jolley b3dc976fe3 Only do search logic if search_fields has values
Closes #10497
2016-03-08 12:58:31 +00:00
Mike Jolley 2a4c05a9ca Merge pull request #10495 from pmdeazeta/patch-1
Include backorders_allowed attribute on each of the variations when fetching the product via API
2016-03-08 12:56:08 +00:00
Mike Jolley 75d10abd16 Order by date and ID
Fixes #10493
2016-03-08 12:54:07 +00:00
Mike Jolley 5b7bc59517 [2.5] Rename pay link for clarity 2016-03-08 11:50:41 +00:00
Mike Jolley 00a6fe8682 [2.5] Allow big selects when getting variations 2016-03-08 11:33:04 +00:00
James Koster 69c9ab0345 Use Dashicons on system status page. #9791 2016-03-08 10:21:06 +00:00
Philip Mark Deazeta 72bfa736b5 Update class-wc-api-products.php 2016-03-08 10:07:36 +08:00
Claudio Sanches 32943b818b Shipping classes do not are hierarchical
cc @mikejolley
2016-03-07 15:19:04 -03:00
Claudio Sanches 3aac6dd80e Merge pull request #10489 from woothemes/SiR-DanieL-patch-2
WC CLI does not allow to bulk delete orders
2016-03-07 13:42:32 -03:00
James Koster 850134fc20 Makes the review template easier to customise without forcing a template override. #10339
* Adds `woocommerce_review_before`,
`woocommerce_review_before_comment_meta`, `woocommerce_review_meta` and
`woocommerce_review_comment_text` actions.
* Adds `woocommerce_review_display_gravatar()`,
`woocommerce_review_display_rating()`,
`woocommerce_review_display_meta()` and
`woocommerce_review_display_comment_text()` template functions.
* Adds template files for review rating and meta.
2016-03-07 15:33:47 +00:00
Nicola Mustone 090e0bac64 use the correct order ID 2016-03-07 16:14:21 +01:00
Mike Jolley 2a98607532 Remove log dir from debug
@mattyza
2016-03-07 13:16:39 +00:00
Mike Jolley f1eefa902c [2.5] When getting coupon by code used twice, latest should be queried
Closes #10487
2016-03-07 13:08:02 +00:00
James Koster f926f8e9c9 replaces .png credit card icons with .svg alternatives. closes #9675 2016-03-07 12:15:42 +00:00
James Koster 5d7f95fa7f Update the Storefront banner to include the new logo. closes #10313 2016-03-07 11:36:07 +00:00
Mike Jolley 723b4109d2 Add notice on empty cart when checking out 2016-03-07 10:31:01 +00:00
Mike Jolley 89af9e9416 wc_get_page_permalink - if the page ID is not set, redirect home instead 2016-03-07 10:29:01 +00:00
Thi 348f9cc235 Fix wrong URL and request duration in webhook logs 2016-03-06 01:24:10 +09:00
Mike Jolley 1979138666 Use unformatted coupon post title for comparison
Fixes #10476
2016-03-04 15:55:46 +00:00
Justin Shreve 927941e2ca Merge pull request #10260 from justinshreve/token-api
Payment Token API
2016-03-04 04:34:41 -08:00
Justin Shreve cb68f41ed0 Fix up based on Mike's feedback:
* Made CVC field form-row-last
* Make CC & EC methods abstract
* Change label on add new payment method button
* remove groupings in account settings
2016-03-04 04:32:38 -08:00
Mike Jolley 7580f18678 Merge pull request #10469 from allendav/master
Add hide_save_button to shipping zones instance template
2016-03-04 10:56:41 +00:00
Mike Jolley 533d961947 Merge pull request #10473 from shivapoudel/indentation
Tweak indentation tabs and correct use of <br>
2016-03-04 10:56:26 +00:00
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
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
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 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 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