Justin Shreve
819a4fae0d
wp_endswith doesn't actually exist (its a wpcom/jetpackism) - update with a simple substr check
2015-06-22 17:58:50 +00:00
Claudio Sanches
c92bc6d865
Merge pull request #8406 from justinshreve/api-basic-auth-8256
...
Implement full basic authentication & query string auth without mixing the two, closes #8256
2015-06-22 14:06:07 -03:00
adnanoner
d07e567050
add $args to woocommerce_refund_created action hook
...
#8432
2015-06-22 17:54:45 +02:00
Mike Jolley
9adbdd4a2c
Tweak URL generation before redirect
2015-06-22 15:30:42 +01:00
Mike Jolley
eb4cbaf69f
get_taxable_address does not need to handle geolocation_ajax any more
2015-06-22 15:30:34 +01:00
Mike Jolley
8dbd30e76b
Merge branch 'add-email-notification-for-partial-refunds-issue-8278'
2015-06-22 15:01:17 +01:00
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
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
Mike Jolley
5ac994f4f2
Nonces
2015-06-17 13:35:09 +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
bf9265309e
Merge pull request #8386 from jobthomas/onboarding
...
Edited copy text: consistency with second tab.
2015-06-16 15:45:59 +01:00
Mike Jolley
e626545f67
Shipping costs for new settings
2015-06-16 15:43:39 +01:00
Mike Jolley
b4574ba911
Remove code to view test product
2015-06-16 15:14:14 +01: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
1398ac0feb
Merge pull request #8331 from shivapoudel/nav-margin
...
Tweak nav tab margin for pretty messages
2015-06-12 11:09:45 +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
05b2505c45
Revise links for @BFTrick
2015-06-11 16:18:01 +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
Shiva Poudel
292ca3a764
Tweak docs button for small screen device
2015-06-11 18:52:41 +05:45
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
Claudio Sanches
f333bb68b2
Improved js for widget layered nav #8332
2015-06-09 13:06:50 -03:00
Claudio Sanches
16ddd24887
[2.3] Fixed & and , for layered nav dropdowns, closes #8332
2015-06-09 12:49:57 -03:00
Claudio Sanches
c02052a206
[API] Stop undefined index erros for variations in orders endpoint
...
@justinshreve
2015-06-09 12:39:37 -03:00
Mike Jolley
a148e867b0
[2.3] Fix sale item exclusion logic for variations
...
Closes #8324
2015-06-09 16:10:46 +01:00
Justin Shreve
1d8b6a58d6
Avoid rounding subtotal_tax and total_tax. Don't call wc_round_tax_total for subtotal, and avoid the call to get_line_tax directly which also calls wc_round_tax_total.
2015-06-09 15:06:30 +00:00
Mike Jolley
12eb7aa207
Move dashboard link to footer
2015-06-09 15:54:46 +01:00
Mike Jolley
922ca47cc1
[2.3] woocommerce_downloadable_file_exists filter
2015-06-09 15:27:28 +01:00
Claudio Sanches
db8b343532
Merge pull request #8322 from justinshreve/api-product-variation-7951
...
Take product variation into account when creating orders from the API (fixes #7951 )
2015-06-09 11:20:44 -03:00
Mike Jolley
9009b334e7
Merge branch 'test-price-filter'
2015-06-09 15:15:15 +01:00
Mike Jolley
fe58e1b5e9
Account for tax classes
2015-06-09 14:58:27 +01:00
Justin Shreve
651b65f28e
Add a unit test for get_variation_id so we know we are getting back the IDs that we want
2015-06-09 13:02:02 +00:00
Justin Shreve
937f93faa6
Clean up some naming and add a clarifying comment for the attribute & pa_ stripping.
2015-06-09 12:41:06 +00:00
Justin Shreve
251636c02e
First pass at figuring out what the variation ID is based on variation information being passed in via the API.
2015-06-09 12:41:06 +00:00
Justin Shreve
a7891750b7
Switch the permissions check for json_search_products to use the read_product capability.
2015-06-09 12:35:33 +00:00
Justin Shreve
3233eb471e
Switch the json_search_products and json_search_downloadable_products_and_variations ajax functions to check for the `edit_shop_orders` cap instead of `edit_products`.
2015-06-09 12:35:33 +00:00
Mike Jolley
eb4b9a7cd1
Merge pull request #8304 from krautnerds/quick-fix-variation-admin-stock-display
...
Quick fix stock display for product variations
2015-06-09 12:24:55 +01:00
Mike Jolley
6c557c21e5
woocommerce_duplicate_product_exclude_children, woocommerce_duplicate_product_exclude_meta, woocommerce_duplicate_product_exclude_taxonomies
...
Closes #8271
2015-06-09 12:07:29 +01:00
Mike Jolley
34f8536b20
Merge pull request #8306 from krautnerds/fix-customer-rest-api-pagination
...
Fixed pagination headers for customer REST API
2015-06-09 11:43:27 +01:00
Mike Jolley
5771969c2c
Prevent notices in get_children
2015-06-09 10:32:40 +01:00
Claudio Sanches
1623ffd6ee
Merge pull request #8326 from woothemes/api-tweaks
...
API Keys tweaks
2015-06-08 20:24:44 -03:00
Claudio Sanches
4698111dd2
Hide api key fields when generate a new keys
2015-06-08 20:22:49 -03:00
Claudio Sanches
151499db49
Fixed wc-api-keys script load
2015-06-08 20:14:46 -03:00
Patrick Rauland
77748fa923
tweaking onboarding wizard language. see #7829
2015-06-08 17:09:48 -06:00
Claudio Sanches
61c6e21f6c
Added wc_api_hash() int he consumer_key on update for 2.4
2015-06-08 20:06:04 -03:00
Claudio Sanches
7ee65c0256
Improved the woocommerce_api_keys table
2015-06-08 20:04:29 -03:00
Claudio Sanches
91bb8c7ba9
Updated the api authentication
2015-06-08 19:58:38 -03:00
Claudio Sanches
51c5ef6b20
Removed extra <p>
2015-06-08 19:45:14 -03:00
Claudio Sanches
89ddda9ff6
Added new api key generation methods
2015-06-08 19:41:35 -03:00
Claudio Sanches
55efdc5077
Escaped js/url in widget layered nav when use the dropdown option, closes #8320
2015-06-08 13:10:23 -03:00
Claudio Sanches
3f45c874fe
Created wc_api_hash()
2015-06-08 12:57:19 -03:00
Mike Jolley
303b66c445
Payment step
2015-06-08 16:34:13 +01:00
Claudio Sanches
3697ad9de2
Improved the API keys entropy
2015-06-08 12:01:54 -03:00
Claudio Sanches
ef0f527b40
Created new woocommerce_validate_postcode filter
...
And added PT postcode validation
closes #8319
2015-06-08 11:50:21 -03:00
Mike Jolley
30f981f3ad
Last step CTA and revised links
...
#7829
2015-06-08 15:25:59 +01:00
Sergey
cfecd0af2d
add woocommerce_get_product_terms filter
2015-06-08 16:41:11 +03:00
Job Thomas
610cf66cb9
Edited copy text: consistency with second tab.
2015-06-08 14:56:09 +02:00
Mike Jolley
9e125b37c7
Remove page options #7829
2015-06-08 13:24:57 +01:00
Mike Jolley
68974655d6
Tweak visible child product query and cache
2015-06-08 13:18:23 +01:00
Mike Jolley
bb4c303c39
get_type has no args
2015-06-08 12:22:26 +01:00
Mike Jolley
983041209b
Use get_type() in post_class function
2015-06-08 12:20:51 +01:00
Mike Jolley
3c87e39ce6
Product get_type() method
2015-06-08 12:20:39 +01:00
Claudio Sanches
0b861d6587
Fixed filetype check for digital downloads, closes #8316
...
@mikejolley
2015-06-07 22:39:32 -03:00
Florian Ludwig
994e4104e9
Fixed pagination headers for customer REST API
...
The old code didn’t ever work in my opinion, because WP_User_Query has
no attributes page and total_pages
2015-06-05 19:28:58 +02:00
Florian Ludwig
2b4e19d0b4
Quick fix stock display for product variations
...
This fixes bug #8302 in a very ugly way (in my opinion)
2015-06-05 19:22:32 +02:00
Justin Shreve
0fb9851164
When upgrading to WooCommerce 2.4, make sure that the order.updated webhook fires for woocommerce_order_edit_status as well.
2015-06-05 17:09:46 +00:00
Justin Shreve
e88c1bfb9e
When the status is changed via bulk actions or by the status button, execute order.updated.
2015-06-05 16:43:24 +00:00
Claudio Sanches
6fee82b377
[API] Added display and image info in product category endpoint, closes #8298
2015-06-05 11:37:46 -03:00
Mike Jolley
716302d76e
Revised API endpoint
...
- Trigger an generic action on all API requests
- Set status header based on whether or not the API endpoint is
actually valid/being listened for
- No cache headers
- No longer try to init unknown class
- Init gateways before the request so their listeners are registered
cc @claudiosmweb
2015-06-05 14:36:50 +01:00
Mike Jolley
79629c5928
Merge pull request #8287 from aelia-co/master
...
Ensured that refunds have parent order's currency
2015-06-05 13:54:00 +01:00
Mike Jolley
541edc3570
Merge pull request #8274 from SiR-DanieL/patch-5
...
Filter wc_tax_enabled
2015-06-05 13:53:33 +01:00
Mike Jolley
a4c2a73050
Max array keys
2015-06-05 13:37:45 +01:00
Mike Jolley
71673684fb
[2.3] get_discounted_price needs to check if taxes are enabled
...
Closes #8267
2015-06-05 11:24:59 +01:00
Claudio Sanches
b433f5e2ce
Removed duplicated code in WC_AJAX::increase_order_item_stock()
2015-06-04 21:02:03 -03:00
Claudio Sanches
2d5c53942b
Removed duplicated code in WC_AJAX::reduce_order_item_stock()
2015-06-04 20:57:43 -03:00
Diego Zanella
1d3713922b
Restored original WC_Gateway_PayPal class
2015-06-04 09:04:33 +01:00
Diego Zanella
c0051da5c5
Added logic to copy the refund currency from parent order
2015-06-04 08:55:24 +01:00
Diego Zanella
edd831db94
Merge remote-tracking branch 'upstream/master'
2015-06-04 08:45:27 +01:00
Justin Shreve
01a19cc0c7
Round the total_pages calculation up so we always display the right number of pages.
2015-06-03 23:05:52 +00:00
Claudio Sanches
b9442f2ffa
[2.3] Check if rating is enabled before check if rating is required to a review, closes #8281
2015-06-03 16:57:36 -03:00
Mike Jolley
a2f05dd368
Show notices before cat loops
2015-06-03 14:22:23 +01:00
Nicola Mustone
29e6082ab6
typo
2015-06-03 12:50:11 +02:00
Nicola Mustone
17eac9eaed
added filter wc_tax_enabled
2015-06-03 12:49:10 +02:00
Job Thomas
c20ebeb899
Some edits in the copy of the second step of the onboarding wizard.
...
** Setup (noun) > set up (verb)
** Singular "Customer" + plural verb -> Plural customers
** Notation of where to find settings options conform docs team standards
2015-06-03 12:09:48 +02:00
Shiva Poudel
db107fac45
Check array in expression for json_search_* events
2015-06-02 22:58:52 +05:45
Shiva Poudel
27adbb2a0b
Best practise to check array in expression :)
2015-06-02 22:55:02 +05:45
Mike Jolley
60dd4474db
abstract email class should not exist ! legacy
2015-06-01 10:48:13 -03:00
Mike Jolley
2febc8f20a
Add capability checks to ajax requests
...
Closes #15
2015-06-01 13:38:00 +01:00
Mike Jolley
1505424469
Define allowed_file_types
...
#13
2015-06-01 13:37:43 +01:00
Mike Jolley
527311d553
Validate file types when saving products. Closes #13
...
Handles 3 possible types of file;
1. Relative path on server
2. Absolute URL
3. Shortcodes
URLs without extensions are not validated.
2015-06-01 13:37:39 +01:00
Mike Jolley
5b435024ea
Use htmlspecialchars to ensure characters get encoded for select2
...
We cannot update to select2 4.0 until a major release. Closes #4
2015-06-01 13:37:26 +01:00
Mike Jolley
c5bb4ad473
Fix tooltip implode
2015-06-01 13:37:21 +01:00
Mike Jolley
cb2079deaa
wc_send_frame_options_header
...
Prevent Clickjacking - prevent checkout and account pages from being
used in iFrames. Added via filter so this can be disabled.
Closes #8
2015-06-01 13:37:12 +01:00
Mike Jolley
3b45c0d46f
Set nonce_user_logged_out to WC session ID, if set
...
Closes #9
2015-06-01 13:36:07 +01:00
Mike Jolley
ed99be9aed
Sanitize tooltips with htmlspecialchars and remove esc_attr usage
...
Part of #4
2015-06-01 13:36:03 +01:00
Claudio Sanches
51c8bbf87c
wrong nonce verification
2015-06-01 13:33:51 +01:00
Mike Jolley
ec5a693ad7
Use prepare for updating attributes
...
Closes #7
2015-06-01 13:29:02 +01:00
Claudio Sanches
9eb3b6ddf9
Changed all requests with wp_remote_* to wp_safe_remote_*
2015-06-01 13:28:55 +01:00
Alexander Concha
c1db266e80
Explicitly cast as integer the rating comment meta.
...
On multisite this can contain arbitrary values.
2015-06-01 13:27:16 +01:00
Ben Bidner
27f1c15900
email templates can only be moved / deleted / edited if the user has `edit_themes` capabilities
2015-06-01 13:26:02 +01:00
Claudio Sanches
48094b9bf2
Added nonces and check capability when hide admin notices
2015-06-01 13:19:26 +01:00
Claudio Sanches
65608d3fd0
Added nonces and check capability to copy or delete email templates, closes #5
2015-06-01 13:12:25 +01:00
Claudio Sanches
5b00dee203
Implemented wp_safe_remote_* functions for webhooks requests #10
2015-06-01 13:09:21 +01:00
Claudio Sanches
166ec607c0
Escape columns
2015-06-01 13:08:33 +01:00
Alexander Concha
f194330aeb
Escape properly echoed values
...
The variables $base_slug/$structures may contain unsafe values due to
the use of urldecode. For example if the post slug is '%22%3E%3Cscript%3Ealert%281%29%3C%2Fscript%3E'
2015-06-01 12:59:03 +01:00
Alexander Concha
f38bc86c5d
Escape properly the metadata to be copied.
...
Fixes a SQL injection because the meta key can contain arbitrary values.
2015-06-01 12:58:56 +01:00
Alexander Concha
3c1b14d00d
Escape properly the provided array of post codes
...
The callers only run wc_clean/esc_attr on the provided values which are
not functions meant to protect against SQL injections.
2015-06-01 12:58:51 +01:00
Ben Bidner
7d8db595f2
Fixes an (admin) SQLi when setting stock levels for product variations
2015-06-01 12:58:38 +01:00
Alexander Concha
7896b49684
fclose requires a resource, not a string.
2015-06-01 12:58:06 +01:00
Ben Bidner
2740db17c0
Merge conflict - esc customer data
2015-06-01 12:57:48 +01:00
Ben Bidner
f46060a0dd
Remove call to `wp_specialchars_decode()` in `wc_get_price_thousand_separator()` and `wc_get_price_decimal_separator()`.
...
Closes #6
2015-06-01 12:54:23 +01:00
Ben Bidner
f3e3b5c209
add `$args` arguments to `WC_Product_Factory->get_product_class()` to allow `$product_type` to be overwritten by `$args['product_type']`
2015-06-01 12:54:18 +01:00
Ben Bidner
7b9a22208e
readds the `$the_product` global variable
2015-06-01 12:54:14 +01:00
Ben Bidner
f066a7bb21
pass correct number of arguments to `wc_lostpassword_url()`, `wc_nav_menu_items()`, `wc_nav_menu_item_classes()`, and `wc_change_term_counts()`
2015-06-01 12:53:51 +01:00
Ben Bidner
32e37b57d0
fixes too many arguments in function or method call: WC_Shortcode_My_Account::add_payment_method($wp->query_vars['add-payment-method'])
2015-06-01 12:52:10 +01:00
Ben Bidner
1aa020ca57
fixes undefined constant ('error_code' > '$error' typo)
2015-06-01 12:52:01 +01:00
Ben Bidner
5e22e13975
set default currency position format string (in case of missing or invalid `woocommerce_currency_pos` option value)
2015-06-01 12:51:56 +01:00
Mike Jolley
3d049ff379
[2.3] Clear expired transients on update
2015-06-01 11:39:03 +01:00
Mike Jolley
1ce272b385
[2.3] Tweak transient clear SQL
2015-06-01 11:38:43 +01:00
Mike Jolley
b9708c4df9
Show refunded total shipping and taxes
...
Closes #8222
2015-06-01 11:06:11 +01:00
Mike Jolley
bd7624e5b7
Check template code isset
2015-05-29 17:40:53 +01:00
Mike Jolley
1e3fcd0e6d
[2.3] Avoid initialising classes when saving
2015-05-29 17:38:25 +01:00
Mike Jolley
803f4a9e85
[2.3] Delete correct transient when linking variations
...
Closes #8241
2015-05-29 15:34:27 +01:00
Mike Jolley
3222d1473e
Merge pull request #8242 from n-dawson/master
...
Add a filter to override needs_shipping_address order method.
2015-05-29 15:28:49 +01:00
Mike Jolley
a7a290e12a
Merge pull request #8250 from kilbot/patch-1
...
Add capability_type to product_variation
2015-05-29 15:27:41 +01:00
Mike Jolley
0a3defd798
Move tax enabled check
2015-05-29 14:55:57 +01:00
Claudio Sanches
b2711f3d64
[API] Fixed products tags in write-mode
2015-05-29 10:05:15 -03:00
Claudio Sanches
88003436a6
[API] Add properly sanitization for categories and tags in products endpoint, closes #8251
2015-05-29 10:04:02 -03:00
Claudio Sanches
e6ae10ee9a
Test
2015-05-29 10:01:43 -03:00
Paul Kilmurray
b16d443709
fix missing comma
2015-05-29 19:35:31 +08:00
Paul Kilmurray
b158d517e9
Add capability_type to product_variation
...
By default the product_variation has `capability_type = 'post'` which means that users need `edit_post` capability to edit. This change will make variation capabilities consistent with products, ie: `edit_product`
2015-05-29 17:42:33 +08:00
roykho
b9eefa58fa
use esc_textarea function
2015-05-28 16:08:22 -07:00
roykho
54b0a0ca54
changed dynamic variation description to allow limited HTML and some sanitized tweaks
2015-05-28 14:31:45 -07:00
Mike Jolley
e51eae80c6
Merge pull request #8167 from roykho/dynamic-variation-description
...
Dynamic variation description
2015-05-28 15:53:03 +01:00
Nathan Dawson
e535e005b7
Add a filter to override needs_shipping_address order method.
...
If an order doesn't have any shipping methods it's not possible to set needs_shipping_address to true. When 'woocommerce_cart_needs_shipping_address' is set to true the address needs to be shown on the front end and in confirmation emails.
2015-05-28 15:48:37 +01:00
Mike Jolley
4e5091adda
Merge remote-tracking branch 'origin/master'
2015-05-28 14:42:45 +01:00
Mike Jolley
5cac639cff
Merge branch 'improve-refund-reporting' Closes #8028
...
Conflicts:
includes/admin/reports/class-wc-report-sales-by-date.php
includes/updates/woocommerce-update-2.4.php
2015-05-28 14:41:20 +01:00
Claudio Sanches
903cb817f0
Fixed WC_Install::get_schema for woocommerce_api_keys table
2015-05-28 10:36:25 -03:00
Mike Jolley
5ef335b169
Merge pull request #8215 from JeroenSormani/order-tests
...
Order tests
2015-05-28 12:44:17 +01:00
Mike Jolley
b77755af5c
Merge pull request #8236 from n-dawson/master
...
[2.3] Resolve blank shipping information bug. Fixes #8235
2015-05-28 12:21:38 +01:00
Mike Jolley
4a9971193f
Only track product views when widget is active
...
Closes #8212
2015-05-28 11:49:10 +01:00
James Koster
8c1e452514
proceed to checkout button template. closes #7507
2015-05-28 11:48:37 +01:00
Mike Jolley
ba2e638e54
nocache download_file requests
...
Closes #8162
2015-05-28 11:44:47 +01:00
Nathan Dawson
f9e43b874c
Resolve blank shipping information bug. Fixes #8235
...
Setting the 'woocommerce_cart_needs_shipping' filter to true means the shipping fields can be shown for virtual products. Whether to check shipping details should be based on whether they're shown and not whether the cart needs shipping.
2015-05-28 00:54:05 +01:00
Claudio Sanches
a76aa5218b
Improved the new order and cancelled order emails descriptions, closes #8195
2015-05-27 16:57:57 -03:00
Claudio Sanches
676e09fdd3
Added new woocommerce_api_keys table in wpmu exclude and in status report
2015-05-27 16:46:43 -03:00
Claudio Sanches
ebdcb0d9e8
[2.3] [API] Fixed subtotal_tax round and decimal dp, closes #8140
2015-05-27 16:18:02 -03:00
Claudio Sanches
f503cda874
Improved hold stock input width, closes 8233
2015-05-27 14:26:12 -03:00
Claudio Sanches
169e72b824
Added extra arg to all woocommerce_order_item_name filters #8159
2015-05-27 13:29:15 -03:00
Claudio Sanches
88596b595e
Improved PayPal get_icon_url() method
2015-05-27 13:23:21 -03:00
Claudio Sanches
6ff7215f3c
Improved the error display for #7959
2015-05-27 13:19:44 -03:00
Mike Jolley
4fd9e1daf2
[2.3] Improved get_icon_url()
...
Closes #8211
2015-05-27 17:13:36 +01:00
Claudio Sanches
5c2b14d89f
Standardise case of some strings closes #8125
2015-05-27 12:53:04 -03:00
Claudio Sanches
989dd5d88e
Improved exclude_from_order_webhook check #8146
2015-05-27 12:46:44 -03:00
Claudio Sanches
bc7d73f81f
Merge pull request #8146 from mattallan/order_args_exclude_webhooks
...
New order post type param: exclude_from_order_webhook
2015-05-27 12:29:49 -03:00
Claudio Sanches
cc9721ed9d
Merge pull request #7959 from tivnet/patch-4
...
Check for non-existing attribute ID
2015-05-27 12:24:40 -03:00
Mike Jolley
5920b88d5d
Add classes to tax and shipping labels/notices
...
Closes #8189
2015-05-27 16:17:36 +01:00
Mike Jolley
915342f38b
[2.3] Only clear in delete_version_transients when version is set
2015-05-27 15:56:49 +01:00
Claudio Sanches
267c481d86
Improved admin bar visit store link #8196
2015-05-27 11:55:32 -03:00
Claudio Sanches
e5e81e5516
Merge pull request #8196 from corsonr/visit_store_link
...
Added visit store link in admin bar
2015-05-27 11:35:49 -03:00
Nicola Mustone
b5e193956b
added action woocommerce_refund_deleted
2015-05-27 15:23:59 +02:00
Mike Jolley
e383889957
[2.3] Optimise delete_version_transients
...
1. WC does not work network wide so _site_transient does not need
checking
2. The LIKE matches timeout and transient keys
2015-05-27 12:03:46 +01:00
Claudio Sanches
1caa5ebcee
Improved WC_Geolocation support for IPv6 #8184
2015-05-26 17:32:47 -03:00
Claudio Sanches
fcc9542608
Merge branch 'master' of github.com:woothemes/woocommerce
2015-05-26 14:41:24 -03:00
Claudio Sanches
44dba5036c
Added geolocate IPv6 support, closes #8184
2015-05-26 14:41:13 -03:00
Mike Jolley
15e3d23022
Merge pull request #8209 from ChromeOrange/master
...
Update html-admin-page-status-report.php
2015-05-26 17:50:37 +01:00
Mike Jolley
f1af777368
[2.3] Fix typo in validate_maximum_amount
...
Closes #8207
2015-05-26 17:40:07 +01:00
Claudio Sanches
d53d21781b
[2.3] Fixed product category media upload modal and some coding standards, closes #8227
2015-05-26 10:24:49 -03:00
Mike Jolley
28d838c5cd
[2.3] Related posts tweaks
...
Remove real randomness and add transient caching to improve performance.
The above was not worth the cost of the query - only users refreshing a
product page would see a difference.
2015-05-25 15:40:28 +01:00
Claudio Sanches
9c5cd0e525
[API] Accept dashes in products/sku endpoint, closes #8220
2015-05-25 10:22:59 -03:00
Claudio Sanches
70b33b7919
Merge pull request #8221 from shivapoudel/settings-api
...
Introduce get_field_key method
2015-05-25 09:55:45 -03:00
Shiva Poudel
cadc1ab301
Add id for title
...
Fixes scrutinizer issues for not having param
2015-05-25 17:32:30 +05:45
Shiva Poudel
9a818503b9
Updated blockUI Version
2015-05-25 17:03:41 +05:45
Shiva Poudel
2871df7451
Move the validate checkbox method above select
2015-05-25 16:58:08 +05:45
Shiva Poudel
4d46b35590
Clean settings-api docblock
2015-05-25 16:56:44 +05:45
Shiva Poudel
d90bb50c20
Use get_field_key for validate_*_field
2015-05-25 16:41:08 +05:45
Shiva Poudel
3b9124e0cf
Use get_field_key for generate_*_html
2015-05-25 16:28:19 +05:45
Shiva Poudel
597b152407
Introduce get_field_key method for settings API
2015-05-25 16:18:28 +05:45
Mike Jolley
b8bcd24edd
[2.3] Combine transients for get_rating_count
...
@claudiosmweb
2015-05-25 02:00:20 +01:00
Mike Jolley
62c70603ec
[2.3] When updating transients, clear previous version of transients
...
Closes #8131 @claudiosmweb
2015-05-25 01:48:17 +01:00
Mike Jolley
1b73322874
[2.3] Replace max_related_posts_query with wp_count_posts
2015-05-25 01:20:31 +01:00
JeroenSormani
b95b22d144
Add wc_get_order() tests + Order helper class
2015-05-23 10:48:07 +02:00
Andrew Benbow
79d4d921fd
Update html-admin-page-status-report.php
2015-05-23 07:22:12 +01:00
Andrew Benbow
54437afc5c
Update html-admin-page-status-report.php
2015-05-22 19:33:59 +01:00
Claudio Sanches
be0f93f112
[2.3] Fixed theme check notice for core supported themes, closes #8208
2015-05-22 13:52:18 -03:00
Fulvio Notarstefano
c0dda8c582
Typos conditonal_includes -> conditional_includes
...
I believe you meant 'conditional' - I don't think it's referenced elsewhere so it should be safe to rename
2015-05-22 16:01:55 +02:00
Remi Corson
611765e0da
added comparison with home url
2015-05-22 13:59:51 +02:00
mehulkaklotar
05d5b421d6
filter when cart item remove notice item title, issue : #8204
2015-05-22 14:15:11 +05:30
Remi Corson
db0ee68886
Added visit store link in admin bar
2015-05-21 10:57:50 +02:00
Mike Jolley
779b53b2bc
Merge pull request #8187 from lukasjuhas/master
...
#8186 memory exhausted problem fix
2015-05-20 13:48:01 -04:00
Claudio Sanches
95535ea47d
Removed sslverify=false and used wp_safe_remote_post() in WC_Auth
2015-05-20 14:24:44 -03:00
Mike Jolley
2763175d3e
[2.3] Bump prettyphoto version to prevent caching
2015-05-20 10:56:45 -04:00
James Koster
6389e5defa
related products / upsets. closes #7873
2015-05-19 13:07:00 -04:00
Mike Jolley
c01bc43369
Adjust #8165 to deal with 0
2015-05-19 12:53:03 -04:00
Claudio Sanches
79a5c2e98d
Moved the order type verification to WC_Order_Factory::get_order() #8180
2015-05-19 13:51:04 -03:00
Mike Jolley
6bdd713112
return true if cats get displayed only
...
Closes #8172
2015-05-19 12:49:34 -04:00
Mike Jolley
a08b2e5968
Loop over all posted attributes by referencing max posted key
...
Closes #8165
2015-05-19 12:46:32 -04:00
Claudio Sanches
ece787686d
Added order type validation in wc_get_order() function, closes #8180
2015-05-19 13:21:47 -03:00
Lukas Juhas
21bda86baa
#8186 memory exhausted problem fix
...
#8186 issue
2015-05-19 17:16:41 +01:00
Mike Jolley
0b58a840e2
Merge pull request #8168 from Nikker/master
...
Added method to check if cart is empty
2015-05-19 11:41:48 -04:00
Claudio Sanches
e106d57947
Merged #8021
2015-05-18 16:53:04 -03:00
Claudio Sanches
db87add809
Updated the auth endpoint to works with the new woocommerce_api_keys database
2015-05-18 16:46:52 -03:00
Claudio Sanches
22bf7d5c81
Created bulk revoke keys
2015-05-18 16:12:47 -03:00
Claudio Sanches
1c6b91ca14
Improved webhooks nonces and actions
2015-05-18 16:01:51 -03:00
Claudio Sanches
772d45bd06
Added method to revoke api keys
2015-05-18 15:46:16 -03:00
Claudio Sanches
c4d4a623b5
Improved the API Keys table list, added actions and fixed the links
2015-05-18 15:33:36 -03:00
Claudio Sanches
2f5df9c185
Added methods to generate and edit API keys
2015-05-18 15:23:05 -03:00
Claudio Sanches
961843780d
Merge pull request #8182 from corsonr/filters_widget_tweak
...
Filters Widget hooks tweak
2015-05-18 11:06:36 -03:00
Matt Harrison
b656ef904a
minor grammar fix. "an SSL" to "a SSL"
2015-05-18 09:03:51 -04:00
Remi Corson
aa2e51f205
tweaked hooks
2015-05-18 12:48:36 +02:00
Claudio Sanches
c49ab520b8
Created page to edit and create keys
2015-05-16 00:09:29 -03:00
Claudio Sanches
2689d8b51e
Created api keys table list
2015-05-15 23:03:24 -03:00
Claudio Sanches
84c937c011
Improved the woocommerce_api_keys table
2015-05-15 22:52:00 -03:00
Claudio Sanches
20906f2248
Fixed the authentication with the new woocommerce_api_keys table
2015-05-15 21:16:53 -03:00
Claudio Sanches
bee1fba738
Added nonces field in woocommerce_api_keys table
2015-05-15 18:25:41 -03:00
Claudio Sanches
41e8f69a70
Fixed the woocommerce_api_keys name
2015-05-15 18:20:49 -03:00
Claudio Sanches
c76c965b59
Removed user api keys options
2015-05-15 18:04:58 -03:00
Claudio Sanches
0ecfc26a84
Created new database for api_apps
...
@mikejolley
2015-05-15 17:57:18 -03:00
Claudio Sanches
572712cb52
Improved the access to the keys/apps section in api tab
2015-05-15 17:14:31 -03:00
Claudio Sanches
eb6f25b47b
Moved some webhooks admin methods from WC_Settings_Rest_API to WC_Admin_Webhooks class
2015-05-15 16:50:30 -03:00
Claudio Sanches
7b8a24924a
Moved api settings to API tab
2015-05-15 16:35:50 -03:00
Claudio Sanches
0edbfeaa35
Created new Settings API tab and moved the old webhooks tab to API tab
2015-05-15 16:12:11 -03:00
Mike Jolley
126eb578aa
Upgrade routine
2015-05-15 16:27:11 +01:00
Mike Jolley
fd772e41fa
Show non existing tables in system status report #8147
2015-05-15 15:19:39 +01:00
Mike Jolley
cc213de455
Add note and system status link to PP settings
...
Closes #8158
2015-05-15 14:50:48 +01:00
Mike Jolley
0e72c5e699
Class tidy
2015-05-15 14:16:44 +01:00
Mike Jolley
c1e3da8bcb
Return real json response during checkout
...
Closes #8086
2015-05-15 13:51:51 +01:00
Mike Jolley
bb77120619
Auto load customer details + tweak icons
...
Closes #8112
2015-05-15 12:52:25 +01:00
Nikki DelRosso
536d3096f2
Replaced missing end parenthesis
2015-05-14 14:37:17 -07:00
Nikki DelRosso
940c2369b0
Added method to check if cart is empty
2015-05-14 14:18:53 -07:00
roykho
b812b2fd94
add dynamic variation description feature
2015-05-14 10:56:26 -07:00
Mike Jolley
d53f78ed56
Styled auth and login endpoints
2015-05-14 16:58:34 +01:00
Mike Jolley
9a30f40d69
[2.3] Move action to prevent infinite recursion on login/restoring saved cart
...
Thanks @roykho. Follow up to #7852
2015-05-14 16:08:09 +01:00
Paul Kilmurray
27d50aef55
default properties for $order_fee class
...
The add_fee method on WC_Abstract_Order expects taxable, tax, tax_data
and tax_class properties to be present. The API ignores these
properties if taxable = false.
2015-05-14 16:10:56 +08:00
Mike Jolley
4311055aeb
Send review moderation email to admin
...
Closes #8132
2015-05-13 15:47:32 +01:00
James Koster
0aef556a5c
storefront prompt on add ons screen
2015-05-13 14:50:40 +01:00
Mike Jolley
d19117a108
When paypal payment is on hold, reduce stock and empty cart.
...
Closes #8145
2015-05-13 14:28:17 +01:00
Mike Jolley
2a4f9f77db
Throw API exception when order is invalid
...
Closes #8151 @claudiosmweb
2015-05-13 14:08:12 +01:00
matttallan
93d76e33f0
New order post type param: exclude_from_order_webhook
...
Allows others that are using custom order types to choose whether
webhooks for WC Orders should also be triggered.
More of a CPT approach than adding more hooks and filters :)
2015-05-12 14:01:23 +10:00
Claudio Sanches
e6eaf11aa7
Fixed webhook filter name typo, closes #8135
2015-05-10 11:54:15 -03:00
Mike Jolley
02c346eb87
Filter before and after unsetting cart items
...
Closes #8110
2015-05-08 10:26:04 -07:00
Mike Jolley
fa94a7c5e0
Merge pull request #8117 from SiR-DanieL/patch-1
...
Replace get_product_url with add_to_cart_url
2015-05-08 10:18:14 -07:00
Claudio Sanches
b54a7a34a1
[API] Created bulk update/insert for coupons #7915
2015-05-07 13:13:41 -03:00
Claudio Sanches
05aad18c5e
[API] Created bulk update/insert for customers #7915
2015-05-07 13:09:59 -03:00
Claudio Sanches
3a29a0b743
Fixed docblocks for WC_API_Orders:bulk()
2015-05-07 12:27:39 -03:00
Diego Zanella
f375378f91
Refactored logic to allow altering PayPal refunds
...
* Replaced `wc_paypal_standard_refund_before` action with a more flexible `wc_paypal_standard_refund_args` filter.
2015-05-07 09:54:22 +01:00
Claudio Sanches
611cf9b521
[API] Created bulk update/insert for orders #7915
2015-05-06 18:41:48 -03:00
Claudio Sanches
fd3c802516
Merge branch 'master' of github.com:woothemes/woocommerce
2015-05-06 18:18:22 -03:00
Claudio Sanches
431768df61
Improved the paypal logo for JP, closes #8119
2015-05-06 18:17:19 -03:00
Claudio Sanches
67fdba87eb
Merge pull request #8121 from helgatheviking/master
...
change priority on custom email addresses in emails
2015-05-06 17:58:23 -03:00
Claudio Sanches
41e1ba2811
[2.3] [API] Fixed enable_html_description and enable_html_short_description for products endpoint, closes #8090
2015-05-06 14:28:57 -03:00
Claudio Sanches
08f8317554
[2.3] [API] Fixed start and end date for products, closes #8063
2015-05-06 13:55:40 -03:00
Kathy Darling
bbf928ea9e
change priority on custom email addresses in emails, so plugins can insert data between customer_details and addresses
2015-05-06 14:10:06 +02:00
Diego Zanella
23724bde07
Added new `wc_paypal_standard_refund_before` action
...
* The action will allow to intercept a refund just before it's placed, and to alter the parameters, if required.
2015-05-06 12:10:07 +01:00
Nicola Mustone
fe6f680e44
replace get_product_url with add_to_cart_url
2015-05-05 16:18:01 +02:00
Mike Jolley
af6998fe4d
[2.3] Correct coupon % calc. Added inline note to prevent regression.
...
Closes #8074
2015-05-05 14:33:35 +01:00
Mike Jolley
48d071731a
Set date after status
...
Closes #8078
2015-05-05 14:19:22 +01:00
Mike Jolley
d1d5a489fc
[2.3] Fix round_chart_totals to deal with arrays
...
Closes #8077
2015-05-05 13:55:56 +01:00
Mike Jolley
5a92126a39
Remove all sslverify false
...
Closes #8058 cc @claudiosmweb @roykho @barrykooij
2015-05-05 13:39:34 +01:00
Mike Jolley
7254e45edc
Remove notice fade class Closes #8096
2015-05-05 13:28:08 +01:00
Claudio Sanches
31558ba8c8
Merge branch 'master' of github.com:woothemes/woocommerce
2015-05-05 09:01:55 -03:00
Claudio Sanches
8a9ab7ffea
Fixed get_woocommerce_api_url() for the new API versions numbers and
...
fixed the tests
@mikejolley
2015-05-05 09:01:34 -03:00
Claudio Sanches
e3782efbf5
Merge pull request #8001 from bordoni/feature/add_context_to_woocommerce_admin_order_item_headers_action
...
Admin Order Header lacks Variable for context
2015-05-05 08:56:39 -03:00
Claudio Sanches
89cd5ac32d
Added esc_html() for #8075
2015-05-05 08:53:43 -03:00
Claudio Sanches
2c52e0e973
Fixed conflicts for #8075
2015-05-05 08:52:28 -03:00
Mike Jolley
5f67a63b43
woocommerce_paypal_refund_request filter
...
Closes #8111
2015-05-05 12:29:07 +01:00
Nicola Mustone
3288997f72
fix coupons amount
2015-05-04 17:19:34 +02:00
Gabor Javorszky
fc66b8581a
Adds a filter to webhook topic dropdown values
...
Fixes #8098
2015-05-02 02:31:24 +01:00
Mike Jolley
3e8ba7d591
Merge pull request #8062 from Victoor/master
...
Add order to woocommerce_get_return_url filter
2015-05-01 15:36:16 +01:00
Mike Jolley
1a2afc0bca
Merge pull request #8083 from woothemes/avoid-multi-get-default-calls
...
Avoid making multiple get_default_* calls
2015-05-01 15:35:40 +01:00
Mike Jolley
0e66f85efe
Merge pull request #8092 from roykho/paypal
...
log paypal standard transaction fees closes #8091
2015-05-01 15:34:32 +01:00
Mike Jolley
8bb7a8c934
[2.3] Move action to prevent infinite recursion on login/restoring saved cart
...
Thanks @roykho. Follow up to #7852
2015-05-01 15:33:24 +01:00
Mike Jolley
8a45f4030a
Tweak shipping text
2015-05-01 15:26:00 +01:00
Mike Jolley
906940791a
Merge branch 'variation-prices-sync'
2015-05-01 15:01:14 +01:00
Mike Jolley
efb8be72c2
Round tax total
2015-05-01 14:57:56 +01:00
Mike Jolley
3b3845872f
Change deprecated args
...
Closes #7210
2015-05-01 14:52:51 +01:00
Mike Jolley
d6604cb668
Split order details into customer + item templates. Tidied up codebase/template based logic.
...
cc @jameskoster
2015-05-01 14:50:18 +01:00
Mike Jolley
77941a57c5
New way to gather item meta with bw compatibility on item meta class
...
#7210
This also includes a new template file for order item details.
@jameskoster Version bumping the order details template. Splitting it
up some more in next commit.
2015-05-01 12:42:29 +01:00
roykho
c23b68dc93
revised to not hide meta and sanitize
2015-04-30 21:05:46 -07:00
roykho
7c074c75e2
log paypal standard transaction fees closes #8091
2015-04-30 20:29:02 -07:00
roykho
7eb7f7df30
fixed issue with bulk edit sale price saving as 0 when not entering any value fixes #8076
2015-04-30 15:49:22 -07:00
Mike Jolley
6c842458b4
fix result
2015-04-30 18:15:47 +01:00
Mike Jolley
b5ec1d98a7
Error in installer
2015-04-30 14:03:31 +01:00
Mike Jolley
c1d87f2350
Pointer tweaks
2015-04-30 13:34:51 +01:00
Mike Jolley
18d671731c
Pointers
2015-04-30 13:30:03 +01:00
Gerhard
072b52c520
Avoid making multiple get_default_* calls after each other, just reuse the first calls data
2015-04-30 14:29:25 +02:00
roykho
a23142423c
fixed on password change, password 1 field can be skipped closes #8079
2015-04-29 22:07:34 -07:00
Peter
d94b2c95fc
Update class-wc-meta-box-order-data.php
2015-04-29 16:47:17 -04:00
Peter
c8707a68c1
Update class-wc-meta-box-order-data.php
...
Set "Order" string to be retrieved from post type object singular name rather than being hard coded. Similar to side bar meta box titles.
2015-04-29 16:01:34 -04:00
Mike Jolley
7cf65a8760
View/add test product using API
2015-04-29 16:34:07 +01:00
roykho
ae678b538c
add filter for products widget args
2015-04-29 07:36:27 -07:00
Mike Jolley
c9ce3baceb
Load settings from DB in case of re-run
2015-04-29 14:55:12 +01:00
Mike Jolley
54fa1e34d3
Show notice when pages don't exist, and set gateway defaults
2015-04-29 13:21:01 +01:00
Mike Jolley
b8dc089040
Check for language pack when updating WPLANG
...
@claudiosmweb
2015-04-29 13:05:02 +01:00
Mike Jolley
8b5c8182f4
Tweak template notice
2015-04-29 13:04:40 +01:00
Mike Jolley
fedf3db92f
Add filter to disable notices
...
Closes #8027
2015-04-29 12:21:48 +01:00
Mike Jolley
4f162d0326
Remove server locale from report
2015-04-29 12:16:54 +01:00
Mike Jolley
218fafe61c
Only show notices to users who can manage_woocommerce
...
#8027
2015-04-29 12:08:15 +01:00
Mike Jolley
c4df91eafb
Remove frontend colors notice
2015-04-29 11:56:38 +01:00
Mike Jolley
13f6f09e9e
Notice string tweaks
2015-04-29 11:55:32 +01:00
Mike Jolley
fcf6e97f7c
Small code tweaks
2015-04-29 11:32:03 +01:00
Mike Jolley
e454c52e58
Optimise admin redirect function
2015-04-29 11:24:29 +01:00
Mike Jolley
7263a4ace2
woocommerce_enable_setup_wizard filter
2015-04-29 10:59:59 +01:00