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
James Koster
e09f5e35db
header padding. #7841
2015-06-18 12:39:12 +01:00
davidlenehan
4c2982affe
Removing an unused file
...
Deleting a file no longer needed for this.
2015-06-18 12:00:14 +01:00
davidlenehan
718d550252
Merging refund email template files
...
Changing previous commit to merge templates for partial and full
refunds to cut down on files.
2015-06-18 11:34:21 +01:00
Mike Jolley
af83181a25
Set to default locale if QS does not match customer data in store
2015-06-17 16:56:26 +01:00
Mike Jolley
389ccd5761
Remove base location from script and don't rely on session storage
2015-06-17 16:56:06 +01:00
Claudio Sanches
05ca8898fe
Merge pull request #8399 from shivapoudel/tweak-meta
...
Tweaks Meta boxes Scripts
2015-06-17 11:38:03 -03:00
davidlenehan
8b02b02145
Add email notification for partial refunds
...
fixes #8278
Emails are now sent to the customer when a partial refund is issued. I
referenced #7785 when doing this.
When a full refund happens the email the customer receives is clear
enough that they are getting a full refund. However I thought it would
be useful to add a new line in these new partial refund emails that
states exactly the value of the partial refund as it may not be that
clear.
2015-06-17 15:35:54 +01:00
James Koster
2951a40b89
select2 highlight. closes #8352
2015-06-17 15:33:34 +01:00
Shiva Poudel
2a2867cf51
Tweaks Meta boxes Scripts
2015-06-17 20:15:06 +05:45
Mike Jolley
b8f644fe9e
Remove line breaks
2015-06-17 15:19:04 +01:00
Justin Shreve
55317e69e3
Move the wp_posts ID check out of the string matching so we can find by ID _OR_ find based on sku match
2015-06-17 13:59:39 +00:00