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
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
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
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
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
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
James Koster
82df867276
text color. #7841
2015-06-18 14:46:25 +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
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
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
Mike Jolley
4a9c2aece9
Update option wording
2015-06-17 14:27:42 +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
Mike Jolley
9843608cd4
Move country field with other address fields
...
Closes #8263
2015-06-17 10:17:41 +01:00
Evan Mattson
2181cd1d26
rename $email_id to $email_key
...
`$email_id` here is not the same as `$email->id`, renaming to show this, and for consistency with similar code
2015-06-16 21:37:54 -04:00
Evan Mattson
c9c48b718e
identify current section by email key to be consistent
2015-06-16 21:36:36 -04:00
Justin Shreve
e1130005a5
When figuring out if to store a sale price, make sure $date_from is set to "today" when blank. The date meta was previously set, but the check to set the actual sale price saw $date_from as empty.
2015-06-16 20:00:16 +00:00
Tamara Zuk
bd7f07d29f
[2.3] Fix bug introduced in #8365
...
my mistake 🙀
2015-06-16 14:46:54 -04:00
Mike Jolley
a31a1911cd
Merge pull request #8388 from justinshreve/download-url-help-text
...
Update the help text to mention that we expect already encoded URLs
2015-06-16 18:09:12 +01:00
Claudio Sanches
1876227c9a
Removed dead variable and fixed coding standards on wc_create_page()
2015-06-16 13:08:30 -03:00
Justin Shreve
5d8b17bd6f
Update the help text to mention that we expect already encoded URLs.
2015-06-16 15:48:05 +00:00
Mike Jolley
f8151f416c
Merge branch 'text-attribute-handling'
2015-06-16 15:11:58 +01:00
Mike Jolley
622b11ae9f
Add version check to prevent pre-2.4 logic kicking in when not needed
...
@claudiosmweb
2015-06-16 15:10:53 +01:00
Claudio Sanches
dde7bc699b
Merge pull request #8385 from jobthomas/master
...
Copy edit shipping settings
2015-06-16 10:54:19 -03:00
Job
fd5fec705b
Copy edit shipping settings
...
users > customer's
2015-06-16 15:51:36 +02:00
Mike Jolley
09fb3a604b
[2.3] Small tweak to use email ID rather than classname directly
...
#8365
2015-06-16 14:47:03 +01:00
Mike Jolley
2501af0376
Merge pull request #8365 from tamarazuk/master
...
[2.3] Email settings save tweak
2015-06-16 14:43:07 +01:00
Mike Jolley
f414ab99b4
Merge pull request #8375 from justinshreve/negative-refund-amount-8346
...
Prevent negative refund amounts (#8346 )
2015-06-16 14:25:17 +01:00
Claudio Sanches
680605481f
Merge pull request #8383 from woothemes/pages-cant-be-created-on-install-issue-8269
...
Allow trashed pages to be republished, closes #8269
2015-06-16 10:15:52 -03:00
Mike Jolley
93fbfe0bc3
Merge branch 'flat-rate-shipping-refactor'
2015-06-16 14:09:38 +01:00
Mike Jolley
583e1fc284
Typo closes #8381
2015-06-16 14:08:46 +01:00
Mike Jolley
71fc6c207e
Free should only be used if costs set. If left blank, offer no rate
...
Closes #8380
2015-06-16 14:07:28 +01:00
davidlenehan
2fb7e0b52b
Allow trashed pages to be republished
...
Expanding on @mehulkaklotar’s fix above. One issue is that is a deleted
store page has had its short code removed then it won’t be republished
and that page is still missing.
This fix catches pages that are in the trash but have no short code.
Those pages are now left in the trash and new page with the correct
short code is added in its place.
Fixes #8269
2015-06-16 12:31:15 +01:00
Mike Jolley
2347418c5b
International shipping + legacy updater
2015-06-16 11:37:58 +01:00
Justin Shreve
e832f1d132
Add some filters around order meta to enable filtering the output of meta/attribute information.
2015-06-15 22:16:44 +00:00
Justin Shreve
b68244f3eb
Prevent negative refunds in wc_create_refund by 0ing it out.
2015-06-15 20:20:31 +00:00
Justin Shreve
12a3a9d305
Return the 'Invalid refund amount' error for negative refunds.
2015-06-15 20:19:52 +00:00
Claudio Sanches
ed20fd7921
Merge pull request #8372 from woothemes/add-empty-order-item-meta-issue8-339
...
Fixes issue with adding empty order item meta
2015-06-15 16:30:47 -03:00
Justin Shreve
910bcc7100
Index only the prefix of location_code when creating the tax_rate_locations table
...
Otherwise we hit a max key limit of 1000 with utf8 (since multiple bytes are stored per characater).
2015-06-15 16:45:30 +00:00
davidlenehan
925b46967a
Removing the use of mb_strlen as it is always installed as standard.
2015-06-15 17:06:02 +01:00
davidlenehan
791317cfcf
Fixes issue with adding empty order item meta
...
The changes just check to make sure that either a meta key or meta
value has been entered before it saves. Otherwise it deletes the order
item meta row that has been added. The user must add something to the
order item meta row now or it won’t get saved.
Not sure if this is the cleanest way to fix this issue. I was expecting
to see the function wc_update_order_item_meta() but it is not used in
this case.
2015-06-15 16:22:53 +01:00
Mike Jolley
75b01c5201
[2.3] woocommerce_downloadable_file_allowed_mime_types filter
...
#8362
2015-06-15 15:37:34 +01:00
Mike Jolley
b3a161a744
Fix upgrade logic for per item type
2015-06-15 15:32:51 +01:00
Mike Jolley
de1d818d4c
remove functions and eval
2015-06-15 15:24:59 +01:00
Mike Jolley
6f90640ba3
Upgrade logic and option fallbacks
2015-06-15 15:24:51 +01:00
Mike Jolley
803714d088
BW compat for additional rates
2015-06-15 12:01:24 +01:00
Remi Corson
32a22b3337
replaced esc_attr by sanitize_html_class
2015-06-15 09:30:09 +02:00
Tamara Zuk
92c6d3d649
[2.3] Email settings save tweak
...
Allows emails to use a single common class as is done in Order Status
Manager
2015-06-13 10:15:58 -04:00
Remi Corson
61d7b156f4
added esc_attr
2015-06-12 21:59:51 +02:00
Mike Jolley
d24461a9a5
Simplify flat rate shipping UI #8243
2015-06-12 16:19:43 +01:00
Mike Jolley
af41e4bcd4
Eval Math Class
2015-06-12 14:27:50 +01:00
Remi Corson
40a56e2f9e
Add debug tools classes
2015-06-12 15:07:01 +02:00
Mike Jolley
753a22734f
Prevent Manage stock being forced on
...
Closes #8336
2015-06-12 11:22:54 +01:00
Mike Jolley
59d3fb5224
Merge pull request #8358 from justinshreve/colorpicker-integration
...
Implement the new color picker input and preview for integrations
2015-06-12 11:08:08 +01:00
Mike Jolley
12396f4296
Attempted bw compat by comparing sanitised text to real text
2015-06-11 15:42:18 +01:00
Claudio Sanches
6d3ea23fac
Added woocommerce_add_to_cart_redirect to ajax cart button, closes #8349
2015-06-11 11:40:26 -03:00
Justin Shreve
133b9ce969
Implement the new color picker + preview for integrations as well.
2015-06-11 14:40:06 +00:00
Mike Jolley
89f7e15052
Save full version of text based attributes when dealing with variations
2015-06-11 14:43:02 +01:00
Mike Jolley
02ef083eaf
wc_get_text_attributes function
2015-06-11 14:42:37 +01:00
Mike Jolley
a3ed5efcd9
Merge pull request #8351 from MikeHansenMe/master
...
Fix broken password reset
2015-06-11 10:43:15 +01:00
Justin Shreve
5f627cf850
Move the color preview to its own separate "preview box" rather then changing the color of the input div box.
2015-06-11 07:15:51 +00:00
Mike Hansen
819f22df29
Update wc-page-functions.php
2015-06-10 17:53:34 -06:00
Diego Zanella
1faae5f4f5
Fixed reference in PayPal IPN class
...
* Using __CLASS__ in valid_response() prevents inheritance, as __CLASS__ is always resolved as the parent class. A descendant class would have to copy/paste the whole block of code for it to work correctly. Solution: replaced it with $this, as the valid_response() method is not static, and neither are any of the "payment_status_" methods.
2015-06-10 19:17:37 +01:00
Mike Jolley
f3951a7490
[2.3] Fallback to serialized data if safe.
2015-06-10 18:28:34 +01:00
Mike Jolley
aaaef5bfcf
[2.3] Incorrect wc_product_total_stock_ transient
...
Closes #8337
2015-06-10 18:28:34 +01:00
Mike Jolley
21773ff9ba
[2.3] JSON encode/decode PayPal response
2015-06-10 18:28:33 +01:00
Claudio Sanches
157a22a79c
Merge pull request #8345 from justinshreve/product-api-download-url-8335
...
[2.3] Run URLs through esc_url_raw instead of wc_clean in the Products API (#8335 )
2015-06-10 13:24:23 -03:00
Justin Shreve
66ccc8a75c
Only run the file URL through esc_url_raw if it looks like an absolute URL, otherwise if it is a shortcode or relative URL, continue to use wc_clean.
2015-06-10 16:12:10 +00:00
Justin Shreve
7c3774e65f
For file URLs and images, run the URL through esc_url_raw rather than wc_clean (which removes/strips things like entities).
2015-06-10 15:34:36 +00:00
Claudio Sanches
fa026ea49d
Normalize the "Order #" #8305
2015-06-10 12:09:18 -03:00
Claudio Sanches
c9c3be6d3e
[API] Use settings to auto generate passwords or not, closes #8342
2015-06-10 10:56:25 -03:00
Patrick Rauland
2d69a0d9c9
removing references to the community forum
2015-06-09 13:55:05 -06:00
Claudio Sanches
eefd9a24f1
Merge pull request #8330 from justinshreve/api-tax-rounding-8328
...
Stop using the frontend display setting for tax rounding in the API (#8328 )
2015-06-09 13:09:46 -03:00