Commit Graph

12453 Commits

Author SHA1 Message Date
Mike Jolley 07cc12049d Merge remote-tracking branch 'origin/add-email-notification-for-partial-refunds-issue-8278' into add-email-notification-for-partial-refunds-issue-8278 2015-06-22 14:59:51 +01:00
Mike Jolley f988aae387 Use hashes and server side redirection 2015-06-22 14:55:15 +01:00
davidlenehan d7538559a8 Pulling customs refund email fields from wp_options
Pulling customs refund email fields from wp_options correctly now and
overriding the basic lookup for subject and heading.
2015-06-22 14:18:44 +01:00
davidlenehan a171407bcb Adding form fields for partial refund emails
This is not a working solution yet, looking for feedback on ho west to
implement this
2015-06-22 13:36:47 +01:00
davidlenehan 47c18b1947 Fixing issue where email settings were blank
Fixing issue where email strings were blank for refunded orders in
wp-admin > WooCommerce > Settings > emails
2015-06-22 11:14:19 +01:00
Mike Jolley 839a09b7cf Minify 2015-06-22 11:09:29 +01:00
Mike Jolley d5660e8cfc Don't disable buttons
Closes #8424
2015-06-22 11:09:23 +01:00
Mike Jolley 5937a08696 Fix cat dropdown URL
Because a filter is not a fix :)

Closes #8412
2015-06-22 10:22:15 +01:00
Mike Jolley 0d6ec24a83 Merge branch 'pr/8413' 2015-06-22 10:14:31 +01:00
Mike Jolley e967c1e01c Tweak filters - move to format_string 2015-06-22 10:14:21 +01:00
Mike Jolley 36549725fb Merge pull request #8427 from fhugas/patch-1
Removed redundant strtolower()
2015-06-22 10:03:50 +01:00
fhugas e0c81c5fb8 Removed redundant strtolower()
Removed the redundant strtolower on line 43 in the private function get_file_name_from_class() which is only called from line 66 using a $class variable that is just strtolower()ed on line 65
2015-06-21 23:44:47 +02:00
Justin Shreve fcab013d53 $enc_type for http_build_query() is only available in PHP 5.4+
go back to a normalization approach
2015-06-19 23:03:45 +00:00
Claudio Sanches 80e8bd94ad Escape return to shop url 2015-06-19 17:29:37 -03:00
Justin Shreve 482303c0f9 Don't convert nested parameters to strings.
Switch to the native http_build_query instead of our own normalize function.
2015-06-19 16:11:17 +00:00
Justin Shreve 59bc17e0cb Check before building the current URL to see if a trailing slash should be appended or not, that way if a request includes one, the signature still matches. 2015-06-19 16:05:23 +00:00
Justin Shreve c43f9157c3 When generating the signature to compare, append a trailing &.
The OAuth spec (http://tools.ietf.org/html/rfc5849#section-3.4.2) states that a & character must be present, even if a token secret is not a part of the request.
2015-06-19 15:05:51 +00:00
Nicola Mustone c7e1540dea added filters for emails placeholders 2015-06-19 17:01:37 +02:00
Justin Shreve 0a9d00bab6 Update the version number check for test_get_woocommerce_api_url 2015-06-19 13:42:10 +00:00
Justin Shreve 9e2f0f55d8 Remove reauth endpoint. It's not going to work the way we want it to. If clients need to log out (like a browser), they can clear the sessions per browser. Also returns JSON error when auth is not returned correctly. 2015-06-19 13:42:10 +00:00
Justin Shreve 8da19e4dae Provide some directions in the Basic auth input box so the user knows where to provide the API key and secret. 2015-06-19 13:42:10 +00:00
Justin Shreve d63f7d014f Implement basic auth improvements and query string fall back.
If the key and secret query strings are provided, do auth based on those. If not, and the Basic auth headers are set, do full basic auth (including sending the correct headers).
Also implements a /reauth endpoint for basic auth.
2015-06-19 13:42:10 +00:00
Justin Shreve ade8db4f21 Load v2 files when v2 of the API is requested. Add rewrite support for v3 and load the 'default' API files for those requests. 2015-06-19 13:42:10 +00:00
Justin Shreve c9a2611d33 Version off the current api files into a v2 folder. 2015-06-19 13:42:10 +00:00
Mike Jolley 1e5d508675 woocommerce_removed_coupon
since the other action is ‘woocommerce_applied_coupon’ Closes #8404
2015-06-19 13:50:59 +01:00
Mike Jolley a8f88ec8d7 Merge pull request #8409 from justinshreve/prevent-duplicate-location-code-notice
Prevent duplicate key name 'location_type_code' MySQL error
2015-06-19 13:45:35 +01:00
Mike Jolley 5381dddff9 Merge remote-tracking branch 'origin/master' 2015-06-19 13:43:34 +01:00
Mike Jolley f5693309e2 Merge branch 'pr/8408' 2015-06-19 13:43:27 +01:00
Mike Jolley e08e123988 Note version since 2015-06-19 13:43:18 +01:00
Mike Jolley 8284d01ec4 Merge pull request #8407 from justinshreve/quantity-improvements
Remember the user's quantity selection if a validation error occurs
2015-06-19 13:40:44 +01:00
Mike Jolley 126a662968 Merge pull request #8398 from justinshreve/sku-space-search-8395
Fix searching for SKUs with spaces (#8395)
2015-06-19 13:38:09 +01:00
Mike Jolley 7e2ba5e05a Ajax endpoint should always be relative 2015-06-19 13:30:57 +01:00
Mike Jolley c136d4ffd8 Merge branch 'master' into add-email-notification-for-partial-refunds-issue-8278 2015-06-19 13:05:52 +01:00
Mike Jolley 928b1cca2f Use DKK symbol 2015-06-19 12:15:14 +01:00
Claudio Sanches 2c599e436f Merge pull request #8410 from kilbot/patch-2
Allow decimal stock quantity via REST API
2015-06-19 02:42:56 -03:00
Paul Kilmurray 3538d02ca9 Allow decimal stock quantity via REST API
The WooCommerce default is to validate stock quantity as integer, however some users find it useful to override this to allow any float quantity, eg: 
```php
remove_filter('woocommerce_stock_amount', 'intval');
add_filter( 'woocommerce_stock_amount', 'floatval' );
```

Currently the API forces stock quantities to integer, this change will allow decimal quantities.
2015-06-19 12:07:10 +08:00
Justin Shreve 6a1d3f0032 In create_tables, drop the location_type_code index before doing a dbDelta, otherwise a duplicate key error occurs. 2015-06-19 00:47:18 +00:00
Gabor Javorszky 1dfb27f928 Adds WC_Abstract_Order->get_address
Adds a function to retrieve order address in non-localized, raw, non-formatted way.
2015-06-19 01:43:31 +01:00
Justin Shreve 5b7c51b5de Wrap the quantity from $_POST in wc_stock_amount to cast it properly 2015-06-18 23:16:00 +00:00
Justin Shreve eddec91b5a If a quantity is set in the $_POST request, use that over the field default. This way, if a validation error occurs, the user's requested quantity stays the same. 2015-06-18 20:51:17 +00:00
James Koster 92c048c9ff totals / addresses. #7841 2015-06-18 15:56:51 +01:00
James Koster 5836370a38 font family. #7841 2015-06-18 14:58:42 +01:00
Claudio Sanches 52bec33665 Added locale info for Brazil 2015-06-18 10:53:40 -03:00
James Koster 82df867276 text color. #7841 2015-06-18 14:46:25 +01:00
James Koster fd18b129e4 border colors. #7841 2015-06-18 14:22:40 +01:00
James Koster 7dbdbdaf13 td colors. #7841 2015-06-18 14:14:26 +01:00
James Koster 3292cdfc55 link colors. #7841 2015-06-18 13:35:28 +01:00
James Koster df51bb3a97 product image/title. #7841 2015-06-18 13:30:08 +01:00
James Koster 370ae8e94b table colors. #7841 2015-06-18 13:02:43 +01:00
James Koster 2dbb7e9478 table fonts. #7841 2015-06-18 12:54:18 +01:00