Commit Graph

11196 Commits

Author SHA1 Message Date
Mike Jolley dac36505c2 Correct the stock display notice when a variable product manages stock for it's children 2017-04-27 11:03:56 +01:00
Claudio Sanches dbddcaf95f Fixed how to flush rewrite rules after save the shop main page
Fixes #14452
2017-04-26 21:51:30 -03:00
claudiulodro 020e24225a Line up array 2017-04-26 14:20:44 -07:00
claudiulodro 1647e253a0 Add filters 2017-04-26 11:19:54 -07:00
claudiulodro 2fad12221d Better comments 2017-04-26 11:04:28 -07:00
Cesar Rodas 91de312eb2 Make sure the meta data cache is not shared among instances
See #14620 for more context. In there I thought this was the desired behaviour and I enhanced it. After talking with @mikejolley he explained to me that it was not by designed.

This commit makes sure the meta data cache is not shared among instances
2017-04-26 13:51:52 -04:00
claudiulodro 9f0f0cd246 Polish and cleanup 2017-04-26 10:49:19 -07:00
Kathy Darling 36dbe64170 revert price handling so null price still is filtered by woocommerce_get_price_html. closes #14727. 2017-04-26 12:37:30 -05:00
Mike Jolley ac0984f4e2 Merge pull request #14716 from woocommerce/fix/14674
Correctly migrate legacy shipping taxes data
2017-04-26 16:58:19 +01:00
Mike Jolley 88a6681347 Merge pull request #14713 from woocommerce/fix/14694
Don't strtolower address strings
2017-04-26 16:57:44 +01:00
Mike Jolley 165a8971ae Merge pull request #14712 from woocommerce/fix/14700
Add required placeholder for meta fields
2017-04-26 16:57:29 +01:00
Mike Jolley 481a5045aa Merge pull request #14622 from jaumarar/patch-2
Fix: Creating customer triggers password changed
2017-04-26 14:32:28 +01:00
Mike Jolley ac96fe795a wc_attribute_taxonomy_id_by_name needs to use lowercase attribute slug
Fixes #14720
2017-04-26 14:28:47 +01:00
Mike Jolley 801f5e1eb1 Avoid escaped quote chars in strings
Closes #14670
2017-04-26 13:51:53 +01:00
Mike Jolley 13a610d1d8 Merge branch 'pr/14612' 2017-04-26 13:26:26 +01:00
Mike Jolley 13bc235020 Bump template version and move to correct function files. 2017-04-26 13:25:14 +01:00
Mike Jolley 1738464012 Correctly migrate legacy shipping taxes data
Fixes #14674
2017-04-26 12:17:34 +01:00
Mike Jolley ef2246a9cd Don't strtolower address strings
Closes #14694
2017-04-26 11:40:59 +01:00
Mike Jolley 63e8221e2c Add required placeholder for meta fields
Closes #14700
2017-04-26 11:35:34 +01:00
Mike Jolley 234bc3c017 Missing arg in data store too 2017-04-26 11:08:47 +01:00
Gabor Javorszky 6d71eab0cd Adds missing $this to arguments for woocommerce_payment_complete_order_status filter
Fixes #14698
2017-04-26 08:02:46 +01:00
Beka Rice f65b817fcf Code review tweaks 2017-04-25 21:45:42 -04:00
claudiulodro efa1dbbda5 Basic working order queries 2017-04-25 14:52:17 -07:00
Beka Rice c552362b73 Confirm before deleting log files 2017-04-25 17:10:47 -04:00
Claudio Sanches d14924b1cf Merge pull request #14681 from woocommerce/fix/14662
Fix term exclusion in term count queries
2017-04-25 16:25:16 -03:00
claudiulodro 3d5dabc886 Formatting 2017-04-25 11:24:38 -07:00
Claudio Sanches 3bae94e78d Merge pull request #14676 from woocommerce/fix/14665
Sort grouped products by menu order
2017-04-25 14:37:32 -03:00
Claudio Sanches c426d46bd1 Merge pull request #14648 from woocommerce/fix/14581
Fix missing title for actions column
2017-04-25 14:33:40 -03:00
Claudio Sanches 0c6a61df02 Merge pull request #14682 from woocommerce/fix/14679
Legacy customer class missing get_address / get_address_2 functions
2017-04-25 12:45:49 -03:00
Claudio Sanches 10880ab680 Merge pull request #14685 from woocommerce/fix/14592
Filter invalid products before returning them for wc_get_products
2017-04-25 12:45:17 -03:00
Claudio Sanches a177c22e2d Merge pull request #14687 from woocommerce/fix/14660
Prevent orders being their own parent (!)
2017-04-25 12:44:40 -03:00
Claudio Sanches cdbfce30fa Merge pull request #14664 from woocommerce/fix/14126
Added deprecated notice to WC_Order_Item_Meta
2017-04-25 12:37:44 -03:00
Mike Jolley 9923612832 Prevent orders being their own parent (!)
Closes #14660
2017-04-25 14:18:27 +01:00
Mike Jolley 8e624e6230 Filter invalid products before returning them for wc_get_products
Closes #14592
2017-04-25 14:03:30 +01:00
Mike Jolley 943e6a4d54 Merge pull request #14684 from woocommerce/pr/14616
Fixes for #14616
2017-04-25 13:53:18 +01:00
Mike Jolley 7269fde94f Moved reg handlers 2017-04-25 13:51:52 +01:00
Mike Jolley 27993c0c50 Legacy customer class missing get_address / get_address_2 functions
Fixes #14679
2017-04-25 13:18:58 +01:00
Mike Jolley 48c9a49e2d table name 2017-04-25 13:06:32 +01:00
Mike Jolley a8baaf6715 Fix term exclusion in term count queries
Closes #14662
2017-04-25 13:05:21 +01:00
Mike Jolley 763c8e8018 Sort grouped products by menu order
Fixes #14665
2017-04-25 12:08:17 +01:00
Claudio Sanches 2d9e876e6d Removed deprecated WC_Order_Item_Meta from REST API v1 2017-04-24 20:55:09 -03:00
claudiulodro 553a12203b WC_Order_Query 2017-04-24 16:28:13 -07:00
Claudio Sanches 4ded36c66d Allow get all formatted meta data values 2017-04-24 20:27:17 -03:00
Claudio Sanches 6f3b6a2b74 Include deprecated notice in WC_Order_Item_Meta constructor 2017-04-24 20:26:43 -03:00
claudiulodro 29fa59a0b7 WC_Object_Query 2017-04-24 11:33:17 -07:00
Claudio Sanches 89dc3b40e2 Merge pull request #14651 from woocommerce/fix/14646
Allow forward slash in tel
2017-04-24 13:56:16 -03:00
Mike Jolley 04e07795fc Allow forward slash in tel
Closes #14646
2017-04-24 15:24:37 +01:00
Mike Jolley 69838b2f4b Fix missing title for actions column
Closes #14581
2017-04-24 15:20:20 +01:00
Diego Zanella 19aa807da6 Restored filter `woocommerce_checkout_customer_id` during checkout validation 2017-04-24 14:41:23 +01:00
Jaume 5e53ed70d8 Fix: Creating customer triggers password changed
Sending POST /wc/v1/customers or POST /wc/v2/customers with the required args triggers the 'Notice of Password Changed' after creating the customer due to update() calls when the password still has a value.
2017-04-22 20:06:56 +02:00
mdrahul 521ad697b0 fix Invalid argument supplied error, ref #14615 2017-04-22 17:24:30 +05:30
mdrahul c6bc8f7836 Fix Cart Empty message, ref #14519 2017-04-22 11:09:17 +05:30
cristiangrama 216375f6ea Allow passing a `customer=0` for fetching all guest orders 2017-04-21 10:43:09 -05:00
Jeff Stieler 142bb9b24a Add “free shipping” method to the automatically created zone (via setup wizard). 2017-04-21 08:46:03 -06:00
Jeff Stieler d844709db5 Only create a shipping zone from the wizard on the first run. 2017-04-20 23:26:37 -06:00
Jeff Stieler f2f803d007 Create a shipping zone containing the store’s country when enabling shipping calculation from the setup wizard. 2017-04-20 23:02:59 -06:00
Claudio Sanches e96a1eb744 Merge pull request #14577 from woocommerce/fix/14575
wc_get_orders support for guest orders and unit tests
2017-04-20 14:31:59 -03:00
Mike Jolley a325d03deb wc_get_orders support for guest orders and unit tests
Fixes #14575
2017-04-20 18:05:58 +01:00
Claudio Sanches 836b3a3162 Merge pull request #14553 from woocommerce/fix/14544
Check if is a resource before try set log rotate
2017-04-20 13:47:56 -03:00
Claudio Sanches 1142ca20f0 Properly open log files 2017-04-20 13:37:18 -03:00
Claudio Sanches 46b17d7eb3 Merge pull request #14574 from woocommerce/fix/breadcrumb-check
Abort generate_breadcrumblist_data is there are no crumbs
2017-04-20 13:06:50 -03:00
Mike Jolley d5205b97f8 Abort generate_breadcrumblist_data is there are no crumbs 2017-04-20 17:04:48 +01:00
Claudio Sanches dfcbeaf044 Fixed logic in `is_open()` 2017-04-20 12:57:33 -03:00
Claudio Sanches 7f6b0c6d0f Moved resource check for `is_open()` method 2017-04-20 12:53:44 -03:00
Claudio Sanches ab3a8c4a79 Merge pull request #14573 from woocommerce/fix/14543
define get_user_id/get_user methods for bw compat
2017-04-20 12:28:10 -03:00
Mike Jolley 4a6c87d1cc docblock 2017-04-20 16:03:40 +01:00
Mike Jolley 8e28af8b87 define get_user_id/get_user methods for bw compat
Closes #14543
2017-04-20 16:02:10 +01:00
Claudio Sanches 8cb1fa2aff Merge pull request #14570 from woocommerce/fix/14546
Decrease paypal request timeout so failed requests to not take too long
2017-04-20 11:51:21 -03:00
Mike Jolley f8781b9552 Decrease paypal request timeout so failed requests to not take too long
Closes #14546
2017-04-20 15:45:52 +01:00
Mike Jolley 8bc715ca59 Merge pull request #14556 from woocommerce/SiR-DanieL-patch-1
Add filter wc_is_attribute_in_product_name
2017-04-20 15:07:42 +01:00
Mike Jolley 1924291f37 woocommerce_is_attribute_in_product_name 2017-04-20 15:07:06 +01:00
Mike Jolley bb4507bcae Better email handling when invalid 2017-04-20 14:45:04 +01:00
Govind Kumar 2adadd5737 Fixed issue 2017-04-20 17:41:20 +05:30
Mike Jolley 7715990fb1 Merge pull request #14552 from woocommerce/fix/14518
[REST API] Fixed v1 order shipping taxes
2017-04-20 11:48:52 +01: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 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
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 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
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
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
Claudio Sanches 086b60a871 Fixed legacy WC_Checkout->posted warning.
WC_Checkout->get_posted_data() is a protected method and third party
integrations should use $_POST.
2017-04-18 18:15:25 -03:00
Claudio Sanches 372898d12f Merge pull request #14502 from woocommerce/fix/refund-plotting
Add refund_lines to report
2017-04-18 18:11:31 -03:00
Mike Jolley add7170f34 Fixes legacy_posted_data access and adds notices if accessed. 2017-04-18 21:55:31 +01:00
Mike Jolley cd7d6cf73d Add refund_lines 2017-04-18 20:29:10 +01:00
Mike Jolley 2a4103d776 Removed the non-functional order total input and combine the recalculation buttons into one working button.
Fixes #14494
2017-04-18 19:44:42 +01:00
Ryan Ray 40da9faa1a Updates & fixes some embed problems
Added a new combined Creating Products video.
Fixes other time stamp embeds that weren’t really working.
2017-04-18 13:18:00 -04:00
Claudio Sanches 81dcd6e79e Fixed docblocks in REST API v1 for #14416 2017-04-18 13:40:10 -03:00
Mike Jolley c454abc787 Remove attribute_ prefix from names in wc_get_formatted_variation
Fixes #14469
2017-04-18 13:08:39 +01:00
Mike Jolley de016c6615 Fix call to is_compound method
Fixes #14484
2017-04-18 12:00:21 +01:00
Mike Jolley b8aade8523 Update js-cookie to 2.1.4 2017-04-18 11:44:51 +01:00
Mike Jolley 6259ee69e9 Adds a fallback to queue_transactional_email if background sending is disabled.
Fixes #14476

After turning off deferred emails by default it seems Subscriptions was
using the ‘default’ value in a filter to check if deferred emails were
enabled or not to hook in these methods.

https://github.com/woocommerce/woocommerce-subscriptions/blob/f87a11cdf0
9bb59aa66f4e86d37592f74193937f/includes/class-wc-subscriptions-email.php
#L339

@thenbrent

This code change adds a fallback so if this method was hooked in
anywhere, and the background emailer was not init or disabled, it will
fallback to regular send-now.
2017-04-18 11:35:37 +01:00
Mike Jolley 16345137e2 Merge pull request #14479 from emgk/fixed-14474
Fixed: get_term() returns objects not array.
2017-04-18 10:36:55 +01:00
Govind Kumar 200cd2de63 Fixed: get_term() returns objects not array. 2017-04-18 13:00:04 +05:30
claudiulodro f21e47f7d0 Update save logic to allow filtering 2017-04-17 14:45:53 -07:00
Claudio Sanches 510630ea05 Merge pull request #14466 from bhubbard/schemal.org-to-https
Updated Schema URLs to use HTTPS
2017-04-17 14:19:34 -03:00
Claudio Sanches 523cd5a0b5 Merge pull request #14443 from woocommerce/fix/14429
wp_insert_term can return an error so handle appropriately in class-wc-product-attribute.php
2017-04-17 13:14:11 -03:00
Claudio Sanches 04f61c73dc Merge pull request #14447 from woocommerce/fix/14362
Make wc_add_order_item pass correct values to woocommerce_new_order_item
2017-04-17 12:54:40 -03:00
Claudio Sanches 5fd29ce0f1 Merge pull request #14449 from woocommerce/add/item-meta-filter
Add woocommerce_order_item_get_formatted_meta_data filter
2017-04-17 12:53:53 -03:00
Mike Jolley cffe326e0e Add variable so shipping calculator is shown on first row
Ref: #14461
2017-04-17 16:35:33 +01:00
Brandon Hubbard fe81c3d74b Updated Schema URLs to use HTTPS 2017-04-17 12:35:21 -03:00
Mike Jolley 1f66a29457 Use smoothHeight
Closes #14448
2017-04-17 16:23:04 +01:00
Mike Jolley 2071e8efee Added has_shipping_address helper method
#14364
2017-04-17 15:15:08 +01:00
Mike Jolley 15fb5fb5ce Add woocommerce_order_item_get_formatted_meta_data filter
2.6 had woocommerce_order_items_meta_display. 3.0 has no filter to
remove meta from display.

Closes #14372
2017-04-17 13:00:05 +01:00
Mike Jolley 887cb8b62c Make wc_add_order_item pass correct values to woocommerce_new_order_item
Fixes #14362
2017-04-17 12:50:27 +01:00
Mike Jolley 4fcada6fe9 wp_insert_term can return an error so handle appropriately in class-wc-product-attribute.php
Fixes #14429
2017-04-17 12:05:36 +01:00
Mike Jolley 71929666ac Merge pull request #14404 from thenbrent/fix_get_meta_returning_deleted_values
Don't return deleted meta in get_meta_data()
2017-04-17 11:38:12 +01:00
Mike Jolley d11337706e Merge pull request #14401 from woocommerce/fix/14389
Use read_downloads in variations
2017-04-17 11:20:14 +01:00
Mike Jolley 9187f3cbb3 Merge pull request #14436 from woocommerce/fix/14398
Fixes the shipping address map URL
2017-04-17 11:12:19 +01:00
Matt Cohen 4aba3d16b0
Adjusts the filter to apply after removing the undesired elements, instead of before. #14398 2017-04-17 12:05:29 +02:00
Matt Cohen dc37646273
Removes the first name, last name, and company from the shipping address map URL. Fixes #14398 2017-04-17 11:15:30 +02:00
rafsuntaskin 6334e95576 UAE state field set to not required, resolves #14409 2017-04-16 14:55:13 +06:00
Mike Jolley d4a8f3c25b fix coupon update 2017-04-15 21:48:22 +01:00
Mike Jolley 1f28b9d0b8 Other object types 2017-04-15 21:18:24 +01:00
Mike Jolley 27c9006f77 Product data store loop protection 2017-04-15 21:04:41 +01:00
Akash Soni e17e7f38bd Change format of product link class.
In this class use capital characters, it's not good formate.

So, I change that and create a new class " woocommerce-loop-product__link ".

The example we use this class for loop product title tag " woocommerce-loop-product__title ".

Thank.
2017-04-16 01:26:38 +05:30
Mike Jolley 5a7dd4938d Merge pull request #14390 from bekarice/fix-php71-notices
Fix PHP 7.1 warnings when manually adding order items
2017-04-15 18:02:03 +01:00
Beka Rice d35621f166 Cast unmodified tax as float as well 2017-04-15 12:01:37 -04:00
claudiulodro 96ed33f227 Use read_downloads in variations 2017-04-14 14:18:08 -07:00
Brent Shepherd 0e40d2c764 Don't return deleted meta
By using $this->get_meta_data() which passed meta through the
WC_Data::filter_null_meta() method, rather than $this->meta_data
which still has null values set.
2017-04-14 13:58:00 -07:00
Claudiu Lodromanean f7c166ca22 Merge pull request #14368 from mdrahul/Fix-14366
Reset ratings count when product is duplicated, ref #14366
2017-04-14 11:40:00 -07:00
AJ Clarke b8e5fc22a2 Localized Photoswipe script 2017-04-14 09:34:05 -07:00
Beka Rice 9de8589c9c Fix PHP 7.1 warnings when manually adding order items 2017-04-14 11:12:53 -04:00
Mike Jolley d695a141ed Variations were not correctly inheriting the parent image or shipping class id 2017-04-14 13:32:14 +01:00
mdrahul b4ca263a4f Reset ratings count when product is duplicated, ref #14366 2017-04-14 11:37:15 +05:30
Claudio Sanches b5090ad629 Merge pull request #14356 from woocommerce/fix/variation-get_attribute
Made the get_attribute method work on variation objects
2017-04-13 13:19:26 -03:00
Mike Jolley a1390125a0 Made the get_attribute method work on variation objects
Fixes #14345
2017-04-13 17:16:46 +01:00
Claudio Sanches 75ecc91d96 Merge pull request #14308 from woocommerce/add/14304
Add backtrace to deprecated message
2017-04-13 12:49:01 -03:00
Claudio Sanches 2879b6ec75 Merge pull request #14353 from woocommerce/fix/itemreviewed-data
Restores itemReviewed structured data for product reviews
2017-04-13 12:37:47 -03:00
Claudio Sanches a0822e6d1f Merge pull request #14352 from woocommerce/fix/grouped-sale-badge
Grouped sale badge fix
2017-04-13 12:36:20 -03:00
Mike Jolley 7bdf8302ec Restores itemReviewed structured data for product reviews 2017-04-13 16:30:06 +01:00
Claudio Sanches ef8136b135 Merge pull request #14344 from woocommerce/remove/defer-email-default
Set default email sending method to not defer
2017-04-13 12:29:34 -03:00
Claudio Sanches 5d5fc57f40 Merge pull request #14342 from woocommerce/fix/14332
Use refund date not order date in refund display
2017-04-13 12:25:08 -03:00
Claudio Sanches f33127b239 Merge pull request #14341 from woocommerce/fix/14333
When checking if the update notice should be shown, compare minor version, not the patch version
2017-04-13 12:24:14 -03:00
Mike Jolley 0e67202ab1 Grouped sale badge fix
Closes #14348
2017-04-13 16:13:48 +01:00
Mike Jolley 77d93a70e0 Set woocommerce_defer_transactional_emails to false by default 2017-04-13 14:22:33 +01:00
Mike Jolley 180f5cd40b send_transactional_email try catch block 2017-04-13 14:22:07 +01:00
Mike Jolley 34227d826f Add backtrace to wc_doing_it_wrong 2017-04-13 14:01:58 +01:00
Mike Jolley 4870506a65 Revert "Add backtrace to deprecated message"
This reverts commit 3e9f74d038.
2017-04-13 13:34:19 +01:00
Mike Jolley 41f7a637cd Use refund date not order date in refund display
Fixes #14332
2017-04-13 13:24:48 +01:00
Mike Jolley 412ddeacda When checking if the update notice should be shown, compare minor version, not the patch version
Fixes #14333
2017-04-13 13:15:49 +01:00
Mike Jolley 8268fc01ad Make sure filters apply on parent_data
Closes #14321
2017-04-13 12:48:21 +01:00
Mike Jolley 01a4f9432f get_tax_class should handle both parent data and unfiltered context to get the tax class before plugin modification. 2017-04-13 12:39:19 +01:00
Mike Jolley f9dd3310b2 Unfiltered context rather than true 2017-04-13 12:38:54 +01:00
Tim Elsass 02de1cc60b Fixing grammar error in msg fixes #14319 2017-04-12 17:03:39 -04:00
Claudio Sanches 078b23a3c2 Revert "Apply distinct to term id only" 2017-04-12 15:54:48 -03:00
Claudio Sanches ad5dad52a2 Merge pull request #14309 from woocommerce/fix/stock-notification-settings
woocommerce_notify_low_stock and woocommerce_notify_no_stock were not hooked up
2017-04-12 14:46:33 -03:00
Mike Jolley 85a67151ff woocommerce_notify_low_stock and woocommerce_notify_no_stock were not hooked up 2017-04-12 18:01:59 +01:00
Mike Jolley 3e9f74d038 Add backtrace to deprecated message 2017-04-12 17:37:59 +01:00
Claudio Sanches c0619f99cd Merge pull request #14306 from woocommerce/fix/file-validation
Only validate file type on relative paths
2017-04-12 12:51:48 -03:00
Mike Jolley de7d8681d2 Only validate file type on relative paths 2017-04-12 16:49:43 +01:00
Claudio Sanches 8151eb1320 Merge pull request #14291 from woocommerce/fix/dupe-cats
Apply distinct to term id only
2017-04-12 12:18:34 -03:00
Claudio Sanches 582999c6c5 Merge pull request #14297 from woocommerce/fix/wc_customer_has_capability
Add $order checks to ensure object is set
2017-04-12 12:09:44 -03:00
Claudio Sanches c5ee1aa00e Merge pull request #14298 from woocommerce/fix/read_downloads
Ensure name and file is set
2017-04-12 12:09:05 -03:00
Mike Jolley 21da0cf71f Ensure name and file is set 2017-04-12 14:11:04 +01:00
Mike Jolley b258e64902 Add $order checks to ensure object is set 2017-04-12 13:46:14 +01:00
Mike Jolley 0628a91cfc Apply distinct to term id only 2017-04-12 11:38:59 +01:00
Claudio Sanches 307a42b37e Merge pull request #14279 from woocommerce/fix/14276
Fix shipping item name update
2017-04-11 18:36:15 -03:00
Mike Jolley 692eceb4cd Fix shipping item name update
Fixes #14276
2017-04-11 21:38:50 +01:00
Claudio Sanches e7acb2918c Merge pull request #14250 from woocommerce/fix/14231
Update notice wording links and styling
2017-04-11 17:34:15 -03:00
Claudio Sanches b122681700 Merge pull request #14268 from woocommerce/fix/background-mails
Works around some cookie hosting issues, and updates the queue more frequently in case of error during email send.
2017-04-11 17:31:49 -03:00
Claudio Sanches 4133f77a31 Merge pull request #14242 from dixitadusara/issue-14227
Incorrect sale dates set when bulk editing variations ref #14227
2017-04-11 17:26:58 -03:00
Claudio Sanches 627d7a8790 Merge pull request #14278 from woocommerce/fix/14209-alt
Variation Attribute Name Fixes (simplified)
2017-04-11 17:25:28 -03:00
Claudio Sanches a1478442d8 Merge pull request #14274 from woocommerce/fix/14239
Ensure object exists
2017-04-11 17:13:55 -03:00
Mike Jolley 5cfed7569c Simplify wc_is_attribute_in_product_name and change separator 2017-04-11 21:12:30 +01:00
Claudio Sanches 610bd3c4db Merge pull request #14272 from woocommerce/fix/14266
GP, GF, KW, LB, MQ, RE and YT does not have states
2017-04-11 17:05:13 -03:00
Claudio Sanches 0df920ebde Merge pull request #14273 from woocommerce/fix/14162
Return if there is no product in woocommerce_upsell_display
2017-04-11 17:03:46 -03:00
Claudio Sanches 3278d9e5d7 Merge pull request #14255 from woocommerce/fix/14163
Download permissions; Convert dates to timestamp on read so UTC is preserved.
2017-04-11 16:51:20 -03:00
Claudio Sanches e027e5b0a1 Merge pull request #14228 from woocommerce/fix/14135
Fix shortcodes formatted with <p> and improved wc_format_content()
2017-04-11 16:14:18 -03:00
Mike Jolley f0f1efcffd Ensure object exists
fixes #14239
2017-04-11 19:29:20 +01:00
Mike Jolley a7e22e3749 Return if there is no product in woocommerce_upsell_display
Fixes #14162
2017-04-11 19:21:13 +01:00
Mike Jolley f5fdd59209 More states
Fixes #14270
2017-04-11 19:10:01 +01:00
Mike Jolley 6ad0f1755d KW does not have states
Fixes #14266
2017-04-11 19:02:23 +01:00
Mike Jolley 7f820c2526 Break if batch is empty
Fixes #14261
2017-04-11 18:59:58 +01:00
Claudio Sanches 6ccdacb0fd Merge pull request #14271 from woocommerce/fix/14259
Apply query_arg filter before generating transient name in product_loop
2017-04-11 14:52:26 -03:00
Claudio Sanches 765179b4da Merge pull request #14253 from woocommerce/add/date-format-filter
woocommerce_admin_order_date_format filter to replace old post_date_column_time
2017-04-11 14:48:35 -03:00
Mike Jolley cb668d42e0 Apply query_arg filter before generating transient name in product_loop
Fixes #14259
2017-04-11 18:47:05 +01:00
Claudio Sanches 4e9febc829 Merge pull request #14269 from woocommerce/fix/14263
Correct variable name
2017-04-11 14:45:25 -03:00
Mike Jolley 9757d2a0ce Correct variable name
Fixes #14263
2017-04-11 18:29:55 +01:00
Mike Jolley 63cd7c25d0 Works around some cookie hosting issues, and updates the queue more frequently in case of error during email send. 2017-04-11 18:23:45 +01:00
Mike Jolley 510adc652c Download permissions; Convert dates to timestamp on read so UTC is preserved.
Fixes #14163
2017-04-11 13:13:03 +01:00
Mike Jolley 899176bee7 woocommerce_update_customer_args filter 2017-04-11 12:47:53 +01:00
Mike Jolley 2f9a9589df woocommerce_admin_order_date_format filter to replace old post_date_column_time 2017-04-11 12:41:30 +01:00
Mike Jolley 2eb9405caa Fix notice styling 2017-04-11 11:40:42 +01:00
Mike Jolley d81493cc52 Merge pull request #14229 from woocommerce/fix/14184
[REST API] Fixed line_items meta type to array on legacy REST API
2017-04-11 10:32:17 +01:00
dixitadusara 1bf13e2b8b Incorrect sale dates set when bulk editing variations ref #14227 2017-04-11 13:04:39 +05:30
Claudio Sanches 6b12559b76 Merge pull request #14164 from RamyTalal/patch-1
Fix notice errors on PHP 7.1
2017-04-11 02:20:27 -03:00
Ramy Talal 36de5db080 Coding standards 2017-04-11 07:19:24 +02:00
Claudio Sanches 4a5a93f629 Merge pull request #14107 from woocommerce/fix/rest-api-legacy-v3-variations
[REST API] Fixed missing $variations variable in legacy v3
2017-04-10 20:19:43 -03:00
Claudio Sanches 5c92f9141b [REST API] Fixed line_items meta type to array on legacy REST API
Closes #14184
2017-04-10 19:57:35 -03:00
Claudio Sanches 5eab267ec1 Fixed shortcodes formatted with <p> and improved wc_format_content()
This fix the shortcode issue, stop extra sanitization and allow use
smilies, attachments, embeds and Jetpack markdown.

Closes #14135
2017-04-10 19:21:22 -03:00
Claudio Sanches 702d72f173 Merge pull request #14225 from woocommerce/fix/14213
Use correct thumbnail for variation images in gallery
2017-04-10 19:13:09 -03:00
Mike Jolley 7274c14591 Use correct thumbnail for variation images in gallery
Fixes #14213
2017-04-10 23:02:53 +01:00
Claudio Sanches 394532c9ab Merge pull request #14199 from woocommerce/add/visibility-terms-debug-14147
Add product visibility terms to system status report to help debug
2017-04-10 18:52:10 -03:00
Claudio Sanches 8bd7e2de4a Merge pull request #14188 from woocommerce/fix/14186
Correct calls to wc_reduce_stock_levels in PayPal and Simplify gateways
2017-04-10 18:50:51 -03:00
Claudio Sanches 2acc956254 Merge pull request #14206 from woocommerce/fix/14118
__clone meta correctly on object clone
2017-04-10 18:49:49 -03:00
Claudio Sanches 47a6741707 Merge pull request #14221 from woocommerce/fix/14216
Do not duplicate grouped products, only variations
2017-04-10 18:49:28 -03:00
Claudio Sanches 0b7f990dae Merge pull request #14219 from woocommerce/fix/14211
Fix backwards compat logic in enable_guest_checkout
2017-04-10 18:48:16 -03:00
Claudiu Lodromanean 715656921d wc_is_attribute_in_product_name 2017-04-10 14:35:16 -07:00
Claudio Sanches b79711b54c Merge pull request #14141 from rellect/copy_suffix
Add back the (Copy) suffix for duplicated products
2017-04-10 18:16:09 -03:00
Mike Jolley bcd39e9a79 Pass id not object to wc_reduce_stock_levels 2017-04-10 21:55:17 +01:00
Mike Jolley 76d962b606 since 2017-04-10 21:52:06 +01:00
Mike Jolley ade147ccc2 Do not duplicate grouped products, only variations
Fixes #14216
2017-04-10 21:45:57 +01:00
Mike Jolley 3cf50c60f6 Fix backwards compat logic in enable_guest_checkout
Fixes #14211
2017-04-10 21:18:49 +01:00
Claudiu Lodromanean 903b176b99 Attribute title tweaks 2017-04-10 13:16:58 -07:00
Claudio Sanches 043265101f Merge pull request #14142 from rellect/unset_set_on_duplicating
Reset slug when duplicating product - fix #14128
2017-04-10 16:28:50 -03:00
Mike Jolley 12dbc059c3 Update add_to_cart_text for external products to include default
Fixes #14181
2017-04-10 17:54:39 +01:00
Mike Jolley e14d85d0a3 __clone meta correctly on object clone
Fixes #14118
2017-04-10 17:12:17 +01:00
Claudio Sanches e6d68c7897 Merge pull request #14198 from woocommerce/fix/14158
Make get_cross_sells unique.
2017-04-10 12:55:25 -03:00
Mike Jolley 7d5efe4b78 Add product visibility terms to system status report to help debug
Closes #14147
2017-04-10 15:51:14 +01:00
Mike Jolley 95397188d5 Make get_cross_sells unique.
Fixes #14158
2017-04-10 15:20:41 +01:00
Mike Jolley 243b7a0d3f Exclude location meta from setters 2017-04-10 12:16:25 +01:00
Mike Jolley 8fa73602eb Correct calls to wc_reduce_stock_levels in PayPal and Simplify gateways
Fixes #14186
2017-04-10 11:56:52 +01:00
Ramy Talal 6b29066d3e Fix notice errors on PHP 7.1 2017-04-09 13:45:46 +02:00
refael iliaguyev 6ee1fb0a62 set empty string as slug 2017-04-08 18:14:34 +03:00
refael iliaguyev 5add77c201 add 'woocommerce' text domain 2017-04-08 15:59:01 +03:00
refael iliaguyev 3be5f80ee7 unset slug - fix #14128 2017-04-08 13:39:06 +03:00
refael iliaguyev 3af7452370 Add back the (Copy) suffix for duplicated products 2017-04-08 13:16:42 +03:00
Govind Kumar 2ea79cc5ed Fixed issue #14124 2017-04-07 19:14:10 +05:30
Claudio Sanches 708df27719 Merge pull request #14117 from woocommerce/fix/14108
If variation tax class meta is not set, it should be 'parent' to support 2.6 data
2017-04-07 13:29:40 -03:00
Mike Jolley 7418b9f8b8 If variation tax class meta is not set, it should be 'parent' to support 2.6 data
Fixes #14108
2017-04-07 17:13:59 +01:00
Claudio Sanches 51c00cce09 Merge pull request #14099 from dixitadusara/issue-14089B
Modified suggestion of Invalid argument supplied for foreach ref #14089
2017-04-07 12:33:01 -03:00
Claudio Sanches ef6895fd56 Merge pull request #14113 from woocommerce/fix/product-object-checks
Fix/product object checks
2017-04-07 12:31:28 -03:00
Mike Jolley e14eb70814 Skip reports if no product is found 2017-04-07 16:08:06 +01:00
Mike Jolley 84c96046f0 Check objects are not false/null 2017-04-07 16:01:51 +01:00
Claudio Sanches 8de0bb0a46 [REST API] Fixed missing $variations variable in legacy v3 2017-04-07 10:31:28 -03:00
Claudio Sanches 731c9cfdd9 Merge pull request #14097 from woocommerce/fix/14085
Ensure meta_value has valid keys in read_attributes
2017-04-07 09:19:25 -03:00
Claudio Sanches c42505f7e5 Merge pull request #14096 from woocommerce/fix/14087
Add missing woocommerce_cross_sells_columns filter.
2017-04-07 09:18:54 -03:00
Mike Jolley 4f412678bd Ensure meta_value has valid keys in read_attributes
Fixes #14085
2017-04-07 10:59:59 +01:00
dixitadusara e527b6608c modified suggestion of Invalid argument supplied for foreach ref #14089 2017-04-07 15:27:52 +05:30
Mike Jolley 078dfb4ffa Add missing woocommerce_cross_sells_columns filter.
Closes #14087
2017-04-07 10:35:42 +01:00
Gareth 425752d8ff Updates product title in product loop commenting
Commenting indicated the product title in the product loop was enclosed in an `<h3>`, when the code was actually printing an `<h2>`.
2017-04-07 09:55:48 +02:00
dixitadusara 3ba9063d3d Invalid argument supplied for foreach - class-wc-product-data-store-cpt.php ref #14089 2017-04-07 13:24:34 +05:30
Claudio Sanches 464ea7f01d Fixed ccoding standards 2017-04-06 19:46:06 -03:00
Claudio Sanches c4adec3e1a Removed translatable function used for variables 2017-04-06 19:45:59 -03:00
Claudiu Lodromanean 19361127a9 Array filter before saving 2017-04-06 14:47:22 -07:00
Claudio Sanches 7f18e9ef83 Merge pull request #14076 from woocommerce/fix/remove-empty-items
filter items which are false
2017-04-06 18:21:14 -03:00
Claudio Sanches c2830af5e1 Merge pull request #14071 from woocommerce/fix/14068
Fix variation category restriction and limit to x uses
2017-04-06 18:15:45 -03:00
Mike Jolley fbcb46b273 filter items which are false
https://wordpress.org/support/topic/call-to-a-member-function-is_type-cl
ass-wc-order-php-on-line-1305/
2017-04-06 22:15:42 +01:00
Claudio Sanches 56b8a4661a Merge pull request #14074 from woocommerce/fix/14067
Fixed sanitization of order items meta data
2017-04-06 18:14:34 -03:00
Claudio Sanches ee76842edb Merge pull request #14075 from woocommerce/fix/14072
Remove date on dupe
2017-04-06 18:13:26 -03:00
Mike Jolley c1b670eaa6 Remove date on dupe 2017-04-06 22:11:00 +01:00
Claudio Sanches af7f271de1 Fixed sanitization of order items meta data
Closes #14067
2017-04-06 17:58:24 -03:00
Mike Jolley 1b5cad3d78 Fix variation category restriction and limit to x uses
Fixes #14068
2017-04-06 21:51:11 +01:00
Claudiu Lodromanean 94814a0b03 Dont throw exceptions when reading 2017-04-06 13:39:36 -07:00
rafsuntaskin ac5de585e5 added bulk variation update for stock status, resolves #14046 2017-04-07 02:11:04 +06:00
Mike Jolley d8bc209cab read_product_data does not exist 2017-04-06 20:55:51 +01:00
Claudio Sanches 14572c8d80 Merge pull request #13991 from woocommerce/fix/13928
When setting props, exclude deprecated ones
2017-04-06 16:20:34 -03:00
Mike Jolley 2877752e1f array_flip 2017-04-06 20:18:14 +01:00
Claudio Sanches 0529e4efab Merge pull request #14026 from woocommerce/fix/13978
Fix variable stock syncing
2017-04-06 16:06:26 -03:00
Mike Jolley 8f2287be12 Use get_children for comparison 2017-04-06 19:47:22 +01:00
Mike Jolley 5701b1f7e2 Get cross sells from parent
fixes #14054
2017-04-06 19:01:57 +01:00
Claudio Sanches abc48f1601 Correct class version and author 2017-04-06 14:47:56 -03:00
Claudio Sanches fa40e7b205 Merge pull request #14035 from woocommerce/fix/13963
Background Emailer instead of just CRON
2017-04-06 14:47:15 -03:00
Claudio Sanches 2ff763a976 Merge pull request #14042 from franticpsyx/order-again-meta-std-class-props
[3.0] Fix non-existing stdClass props in WC_Form_Handler::order_again
2017-04-06 14:42:14 -03:00
Claudio Sanches 5ca593f782 Merge pull request #14048 from woocommerce/fix/13949
Fix variation description formatting in frontend and REST API v2
2017-04-06 14:42:01 -03:00
Claudio Sanches b16d3a091c Merge pull request #14049 from woocommerce/fix/variation-description-sanitization
Removed extra variation description extra sanitization
2017-04-06 14:41:41 -03:00
Claudio Sanches 42ca7bda3d Merge pull request #13989 from woocommerce/fix/product-meta-save_post
Fix saving meta when using `save_post`.
2017-04-06 14:38:16 -03:00
Claudio Sanches cdab73af3c Merge pull request #14051 from woocommerce/fix/no-base-permalinks
Make sure there is a name, otherwise the taxonomy + base will conflict with other post types if empty
2017-04-06 14:29:45 -03:00
Claudio Sanches 5f9a215318 Merge pull request #14052 from woocommerce/fix/variation-tax-status
Pull tax status from parent since there is no UI to set at variation level
2017-04-06 14:29:28 -03:00
Mike Jolley 0348a4751e Use placeholder value from backend if not set 2017-04-06 18:19:07 +01:00
Mike Jolley fd3e656912 Pull tax status from parent since there is no UI to set at variation level 2017-04-06 17:54:34 +01:00
Mike Jolley 56eb3c4da3 Make sure there is a name, otherwise the taxonomy + base will conflict with other post types if empty 2017-04-06 17:50:04 +01:00
Claudio Sanches 4032167f6c Removed extra variation description extra sanitization 2017-04-06 13:21:34 -03:00
Claudio Sanches fc9ba64e50 Properly format variation description in REST API v2 2017-04-06 13:02:51 -03:00
Claudio Sanches f3c2e6c5f6 Improved wc_format_content() formatting and added sanitization 2017-04-06 13:01:35 -03:00
Claudio Sanches 567a551d83 Fixed shortcode render for variations and backwards compatibility
Fixes #13949
2017-04-06 13:00:02 -03:00
Claudio Sanches b059851882 Merge pull request #14001 from woocommerce/fix/13980
Allow search customers by ID in admin customer ajax search
2017-04-06 12:01:39 -03:00
Claudio Sanches 3fff61ea4e Merge pull request #14043 from woocommerce/fix/missing-product-type-field
if product type field is not posted, we should maintain existing type, not change to simple
2017-04-06 11:58:55 -03:00
Mike Jolley 82cdf65c04 if product type field is not posted, we should maintain existing type, not change to simple 2017-04-06 15:56:55 +01:00
Manos Psychogyiopoulos e18d9741a4 Fix non-existing stdClass props 2017-04-06 17:42:51 +03:00
Claudio Sanches f3156fb5f4 Merge pull request #13981 from woocommerce/fix/13936
[REST API] Fixed attributes while trying to save variations
2017-04-06 11:38:23 -03:00
Claudio Sanches 83135c24c1 Merge pull request #13971 from woocommerce/fix/13966
Ensure gateways are loaded in emails
2017-04-06 11:38:09 -03:00
Claudio Sanches 966fd0e411 Merge pull request #14037 from woocommerce/fix/legacy-sync
Only call sync if callable
2017-04-06 10:54:58 -03:00
Claudio Sanches 6c1a38d637 Merge pull request #13975 from woocommerce/fix/13943
Compare to the order item title instead of variation title
2017-04-06 10:36:36 -03:00
Claudio Sanches 550f7b4028 Merge pull request #13986 from woocommerce/fix/13954
Fixed "singular" and "plural" parameters of WP_List_Table instances
2017-04-06 10:33:43 -03:00
Claudio Sanches 9a219b71da Merge pull request #14036 from woocommerce/fix/14032
Make sure we have a prefix for strstr
2017-04-06 10:25:46 -03:00
Mike Jolley 261ae0ebda Only call sync if callable 2017-04-06 14:18:17 +01:00
Claudio Sanches 03004bdd49 Merge pull request #14009 from woocommerce/fix/14006
When forcing shipping to billing, set the shipping fields in the order itself
2017-04-06 10:17:54 -03:00
Claudio Sanches 01c425398c Merge pull request #14012 from woocommerce/fix/13930-alt
Hide structured data in hidden element
2017-04-06 10:14:30 -03:00
Claudio Sanches f2b90d6163 Merge pull request #14014 from woocommerce/fix/13906
Set session data only if the value is empty in customer object. Prevents session data overwriting customer data on login.
2017-04-06 10:12:54 -03:00
Claudio Sanches 03e05cab1c Merge pull request #14017 from woocommerce/fix/14008
Allow variation image to be unset
2017-04-06 10:12:12 -03:00
Mike Jolley 822412d03c Make sure we have a prefix for strstr
Closes #14032
2017-04-06 14:11:00 +01:00
Claudio Sanches ddf188a61e Merge pull request #14018 from woocommerce/fix/13968
Show a sale price on variable products if on sale and all prices are the same
2017-04-06 10:10:49 -03:00
Mike Jolley 288026ca9f Background Emailer instead of just CRON 2017-04-06 13:46:07 +01:00
Mike Jolley bf09c7df82 Ensure reg prices are the same 2017-04-06 13:08:18 +01:00
Mike Jolley 36e9b73ef3 Make sure we have a product before generating JSON 2017-04-06 12:40:53 +01:00
Mike Jolley a7a896008c Fix up the child_is_in_stock function 2017-04-06 12:26:19 +01:00
Mike Jolley 7e90a318cd On variable save, sync with children and avoid transient cache 2017-04-06 12:26:10 +01:00
Mike Jolley 47411f7397 wc_deferred_product_sync queue function 2017-04-06 12:25:54 +01:00
Mike Jolley fe42b2565c Defer variation parent sync to shutdown rather than cron 2017-04-06 12:25:34 +01:00
Mike Jolley 93689a8107 Show a sale price on variable products if on sale and all prices are the same
Fixes #13968
2017-04-06 11:01:20 +01:00
Mike Jolley eea6867ac9 Allow variation image to be unset
@claudiosanches is this correct way?

Fixes #14008
2017-04-06 10:41:09 +01:00
Mike Jolley d570a81241 Set session data only if the value is empty in customer object. Prevents session data overwriting customer data on login.
Fixes #13906
2017-04-06 10:28:32 +01:00
Mike Jolley 52939e800c Hide structured data in hidden element 2017-04-06 10:06:21 +01:00
Mike Jolley 8614a7922d When forcing shipping to billing, set the shipping fields in the order itself
Fixes #14006
2017-04-06 09:50:34 +01:00
Claudio Sanches 2ffb2e8853 Allow search customers by ID in admin customer ajax search
Closes #13980
2017-04-06 02:19:12 -03:00
Gregory Karpinsky 37c7e2a615 Docblock fix
`get_availability` returns array of strings
2017-04-06 00:32:36 -04:00
Claudio Sanches 168a4a3096 Merge pull request #13909 from woocommerce/fix/prevent-only-color-picker-to-flip
Prevent RTL flip only color picker inputs
2017-04-05 21:21:38 -03:00
Claudio Sanches 4bb2c070ae Merge pull request #13900 from woocommerce/fix/rest-api-remove-extra-taxes-params
[REST API] Removed extra taxes params.
2017-04-05 21:18:09 -03:00
Claudio Sanches 4b2481f9f2 Merge pull request #13994 from woocommerce/fix/cross-sell-columns
Cross sells were not showing first last classes since columns (2) was not being set
2017-04-05 20:33:31 -03:00
Claudio Sanches b3937bcc4d Merge pull request #13995 from woocommerce/fix/13902
Hash querystring is v not version. Stops infinite loop.
2017-04-05 20:33:00 -03:00
Mike Jolley 8333d75703 Hash querystring is v not version. Stops infinite loop.
Fixes #13902
2017-04-05 23:42:33 +01:00
Mike Jolley e16119f687 Cross sells were not showing first last classes since columns (2) was not being set 2017-04-05 23:28:13 +01:00
Mike Jolley 70778abade When setting props, exclude deprecated ones
Fixes #13928
2017-04-05 23:16:45 +01:00
Justin Shreve 15bf1da7d5 Call save_meta_data before wp_update_post for data stores that use it, and refresh meta cache after. 2017-04-05 14:39:41 -07:00
Claudio Sanches 5bcace31fc Fixed "singular" and "plural" parameters of WP_List_Table instances
Both should be slugs and not translatable.

Fixes #13954
2017-04-05 18:15:40 -03:00
Claudiu Lodromanean c02cee595e Add missing download_id param 2017-04-05 13:37:42 -07:00
Claudio Sanches 87199d0627 [REST API] Fixed attributes while trying to save variations
Closes #13936
2017-04-05 17:03:05 -03:00
Mike Jolley 359213d720 Fix direction 2017-04-05 20:25:21 +01:00
Mike Jolley 0035afc5a0 Make sure we have number > 0 so all variations are not deleted 2017-04-05 20:22:05 +01:00
Mike Jolley a6080aa4a9 Pass ID, not the product object 2017-04-05 20:21:33 +01:00
Claudiu Lodromanean 523d39578a Compare to the order item title instead of variation title 2017-04-05 12:03:18 -07:00