Commit Graph

20859 Commits

Author SHA1 Message Date
Theme.al 79d3291ba5 Hook comments for each action on template files
As i'm working with my theme i have found difficult to keep track of all actions and hooks, i think all actions should be commented with their respective hooks like you have already done on archive-product.php
2017-04-20 09:48:36 +02:00
Nicola Mustone 7f6909040d add filter wc_is_attribute_in_product_name
The filter `wc_is_attribute_in_product_name` will allow customizations to show the variations in the cart like in WC 2.6.
2017-04-20 09:53:49 +03:00
Claudio Sanches 3b7a41ea53 Improved logic of WC_Order::get_shipping_address_map_url()
See comments in #14436
2017-04-20 02:12:18 -03:00
Claudio Sanches e208e35e33 Fixed coding standards in tests 2017-04-20 01:34:58 -03:00
Claudio Sanches aa21db2e64 Check if is a resource before try set log rotate
Fixes #14544
2017-04-20 00:54:31 -03:00
Claudio Sanches 0b60af0774 Merge pull request #14415 from woocommerce/fix/save-post-infinite-loops
Prevent infinite loops during save_post
2017-04-20 00:44:57 -03:00
Claudio Sanches accf956632 Merge pull request #14500 from woocommerce/fix/14494
Removed the non-functional order total input and combine the recalculation buttons into one working button.
2017-04-20 00:43:22 -03:00
Claudio Sanches 60b3e3c123 [REST API] Fixed v1 order shipping taxes
Fixes #14518
2017-04-20 00:37:27 -03:00
Claudio Sanches bd92f99359 Merge pull request #14547 from woocommerce/fix/14545
Get updated product before doing low stock actions
2017-04-20 00:08:14 -03:00
hussong 3ca4c733c7 Change field label and placeholder to minimize user error, add translators notice
Status Quo:
Working with several high-volume WooCommerce shops (in the range of several thousand orders per day combined), we've seen that the current placeholder text (and its translations in particular) lead to quite a few users filling in their address data incorrectly. You'd be surprised by the number of people who fail to properly write down their own address (house number missing, house number in wrong place).

Problem:
This leads to incomplete shipping labels, unsuccessful deliveries, and costly returns (especially for international shipping: 10-40 Euros lost per parcel).

Solution:
While some of these may stem from misdirected or incomplete browser auto-fills, we've seen (by customizing the language files for German, French, Spanish and Italian) that a more descriptive placeholder text helps reduce user errors on address entry. The goal is basically to make this as fool-proof as possible.

Why this matters: 
At 1000 orders shipped per day, getting the error rate from 5% down to 4% means 10 less parcels coming back every day, which can save hundreds of Euros per day.

Choice of wording:
- "Address" is not just one field, but rather the sum of all address fields that will end up on a shipping label.
- "Street Address" is what the user needs to input here, hence the new label for the two address fields
- "House number and street name" is the most descriptive placeholder text I can come up with for this field (assuming the U.S. as default), hence the new placeholder text. 
- Translator notice added since many countries will have the house number after the street name.

References:
- https://en.wikipedia.org/wiki/Address_(geography)
2017-04-20 11:46:14 +10:00
claudiulodro 01a6b3bae0 Get updated product before doing low stock actions 2017-04-19 15:32:51 -07:00
Claudio Sanches c90e71e890 Merge pull request #14509 from woocommerce/fix/14480
Only return product by SKU if published
2017-04-19 14:38:14 -03:00
Claudio Sanches 0d46a89f83 Check only if is not in trash 2017-04-19 14:27:19 -03:00
Claudiu Lodromanean 3768730641 Merge pull request #14520 from franticpsyx/fix-order-item-offset-get
[3.0.3] Fix Undefined property notice in `WC_Order_Item::offsetGet`
2017-04-19 10:16:42 -07:00
Claudiu Lodromanean 3152b35406 Merge pull request #14521 from woocommerce/fix/14507
wc_update_300_grouped_products update routine needs to unset the post_parent on grouped products
2017-04-19 10:16:12 -07:00
Claudiu Lodromanean b13380d120 Merge pull request #14523 from franticpsyx/fix-wc-get-weight-notice-warning
[3.0.3] Fix PHP 7.1 `wc_get_weight` warning
2017-04-19 10:15:53 -07:00
Claudiu Lodromanean 1c0b4ed729 Merge pull request #14524 from woocommerce/fix/14515
Give zoomed images a bg color so it supports transparent PNG
2017-04-19 10:15:27 -07:00
Claudiu Lodromanean fe0ff8d795 Merge pull request #14526 from woocommerce/fix/14517
wp_die when WC_REST_System_Status_Controller is. not available on status report.
2017-04-19 10:14:58 -07:00
Claudiu Lodromanean 28ec6b4d6f Merge pull request #14527 from franticpsyx/fix-typo-in-wc-ajax-class
[3.0] Fix typo in json_search_downloadable_products_and_variations
2017-04-19 10:14:42 -07:00
Claudiu Lodromanean cd9ea0daf2 Merge pull request #14528 from woocommerce/fix/14525
is_existing_sku should check all post statuses except for trash
2017-04-19 10:13:56 -07:00
Claudiu Lodromanean b479224656 Merge pull request #14531 from mihaigrigori/master
Wrong variable name in \wc_add_order_item
2017-04-19 10:13:37 -07:00
Claudiu Lodromanean 894d77d4db Merge pull request #14534 from woocommerce/fix/14533
Address field sorting was not working due to wrong data name
2017-04-19 10:12:56 -07:00
Claudiu Lodromanean beab1fd0b8 Merge pull request #14535 from woocommerce/fix/item-get_order
Ensure order is not cached before download permissions are generated
2017-04-19 10:12:39 -07:00
Claudiu Lodromanean 97958de059 Merge pull request #14536 from woocommerce/fix/14530
When on backorder without notifications, hide the text
2017-04-19 10:12:20 -07:00
Claudio Sanches 5d3330fac2 Merge pull request #14537 from woocommerce/fix/14503
Remove unused variable
2017-04-19 14:03:30 -03:00
claudiulodro c3331ff416 Remove unused variable 2017-04-19 10:00:00 -07:00
Mike Jolley 69a8b6c9b5 When on backorder without notifications, hide the text
Fixes #14530
2017-04-19 16:57:49 +01:00
Mike Jolley e1ae5bded2 Ensure order is not cached before download permissions are generated 2017-04-19 16:53:31 +01:00
Mike Jolley 3b6e7d9d14 Address field sorting was not working due to wrong data name
Fixes #14533
2017-04-19 16:33:32 +01:00
Mike Jolley be96e8c8a1 Merge pull request #14506 from woocommerce/fix/14496
Prevent nonce check outside admin when calculating for reports
2017-04-19 15:05:31 +01:00
Mike Jolley 84c9ce9ceb Merge pull request #14505 from woocommerce/fix/14504
Fixed legacy WC_Checkout->posted warning.
2017-04-19 15:05:21 +01:00
Mike Jolley 77bbd938c6 Merge pull request #14508 from woocommerce/fix/14359
[REST API] Fixed ignored parameters when changing status
2017-04-19 15:05:09 +01:00
Mihai Grigori 170de188a0 Wrong variable name in \wc_add_order_item 2017-04-19 15:55:49 +03:00
Mike Jolley bdb01c4bea is_existing_sku should check all post statuses except for trash
Fixes #14525
2017-04-19 11:32:49 +01:00
Manos Psychogyiopoulos 1670f9ae60 Fix typo in json_search_downloadable_products_and_variations 2017-04-19 13:20:05 +03:00
Mike Jolley 8ab10ade0e Missing comma for code standards
WC_Admin_Customize is a 3.1 class

Closes #14522
2017-04-19 11:15:10 +01:00
Mike Jolley 335319e6ea wp_die when WC_REST_System_Status_Controller is. not available on status report.
Closes #14517
2017-04-19 11:08:34 +01:00
Mike Jolley 5b9ee32c49 Give zoomed images a bg color so it supports transparent PNG
Fixes #14515
2017-04-19 10:44:56 +01:00
Manos Psychogyiopoulos 6392582d16 Fix wc_get_weight warning with PHP 7.1 2017-04-19 12:35:40 +03:00
Mike Jolley 5d7aa234b0 wc_update_300_grouped_products update routine needs to unset the post_parent on grouped products
Fixes #14507
2017-04-19 10:35:39 +01:00
Manos Psychogyiopoulos 1270c0d313 Fix Undefined property notice in WC_Order_Item::offsetGet 2017-04-19 12:30:38 +03:00
Claudio Sanches f61646d1a2 Only return product by SKU if published
Fixes #14480
2017-04-18 21:32:52 -03:00
Claudio Sanches f318ce935c [REST API] Fixed ignored parameters when changing status
Prevent override saved data when updating order status.

Fixes #14359
2017-04-18 21:15:24 -03:00
Claudio Sanches 2da71bd7fb Prevent nonce check outside admin when calculating for reports
Fix all REST API reports endpoints.

Fixes #14496
2017-04-18 20:33:25 -03:00
Claudio Sanches d94f3883da Merge pull request #14497 from woocommerce/fix/14416
Fixed docblocks in REST API v1
2017-04-18 18:43:06 -03:00
Claudio Sanches 58b7b82ee1 Merge pull request #14489 from woocommerce/fix/14469
Remove attribute_ prefix from names in wc_get_formatted_variation
2017-04-18 18:39:21 -03:00
Claudio Sanches d17dd2947b Merge pull request #14485 from woocommerce/update/js-cookie
Update js-cookie to 2.1.4
2017-04-18 18:38:56 -03:00
Claudio Sanches 185ae083a1 Merge pull request #14499 from woocommerce/help-video-updates
Updates & fixes some embed problems
2017-04-18 18:32:16 -03:00
Claudio Sanches e034a69c98 Merge pull request #14486 from woocommerce/fix/14484
Fix call to is_compound method
2017-04-18 18:29:57 -03:00
Claudio Sanches faaac6d67b Merge pull request #14483 from woocommerce/fix/14476
Adds a fallback to queue_transactional_email if background sending is disabled.
2017-04-18 18:29:33 -03:00