Commit Graph

12334 Commits

Author SHA1 Message Date
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
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
James Koster b7888f2355 Merge pull request #8396 from corsonr/notice_info_tweak
[CSS] word-wrap for woocommerce notices
2015-06-17 14:52:20 +01:00
Mike Jolley 4a9c2aece9 Update option wording 2015-06-17 14:27:42 +01:00
Mike Jolley 38dd251f96 geolocation 2015-06-17 14:16:37 +01:00
Mike Jolley b1441c05c1 Move geolocation to separate script 2015-06-17 14:16:35 +01:00
Mike Jolley 9886a805df Fix up standards #7939 2015-06-17 13:59:04 +01:00
Mike Jolley d939d7b395 Merge pull request #8391 from justinshreve/sale-date-8357
Make sure sale prices are properly applied when no from date is set and today is used as default (#8357)
2015-06-17 13:49:53 +01:00
Justin Shreve 8ae228f535 Do a less than or equals to check in meta-box-product-data in the case of $date_from being exactly the current time. 2015-06-17 12:18:57 +00:00
Mike Jolley 33c298fea7 Experiment with appending geolocation to query string to prevent caching 2015-06-17 12:12:49 +01:00
Remi Corson c37c2f7c45 word-wrap for woocommerce notices 2015-06-17 12:21:34 +02:00