Commit Graph

11628 Commits

Author SHA1 Message Date
Claudio Sanches bc3c7f6bbd Merge branch 'master' into fix/15315 2017-05-31 11:59:49 -03:00
Mike Jolley 6883b49e81 Atom sucks 2017-05-31 15:57:49 +01:00
Claudio Sanches d9e946491f Merge pull request #15357 from woocommerce/fix/15274-meta
Add ability to invalidate cache by object ID
2017-05-31 11:53:53 -03:00
Claudio Sanches 933386f272 Merge pull request #15371 from woocommerce/fix/15365
Add failed to processing for the processing email
2017-05-31 11:52:12 -03:00
Mike Jolley d8edc8a965 Always map 2017-05-31 15:07:07 +01:00
Mike Jolley eda55579b7 Merge pull request #15373 from woocommerce/feature/product-csv-import-export
Product CSV Import Export
2017-05-31 13:57:37 +01:00
Mike Jolley 21300951f1 Fix tests due to generated names 2017-05-31 13:48:28 +01:00
Mike Jolley 32ab4fb47f Merge pull request #15360 from woocommerce/fix/15228
Store user ID and use that to determine if the session should be loaded or not.
2017-05-31 13:03:29 +01:00
Mike Jolley 532ddfa6b0 Merge conflicts 2017-05-31 12:23:52 +01:00
Mike Jolley e185d5572b Merge branch 'feature/product-csv-import-export' into refactor/fix-importer-and-improve-unit-tests 2017-05-31 12:19:58 +01:00
Mike Jolley 72ddb1f23d Merge branch 'feature/product-csv-import-export' into feature/15302
# Conflicts:
#	includes/export/class-wc-product-csv-exporter.php
2017-05-31 12:13:42 +01:00
Mike Jolley cb59bd0487 Merge pull request #15351 from woocommerce/fix/15329
Use get_max_purchase_quantityin cart template and fix logic
2017-05-31 11:39:53 +01:00
Mike Jolley 56ffa3d2aa Merge pull request #14706 from crodas/make_get_item_consistent
Make get item consistent
2017-05-31 11:10:09 +01:00
Mike Jolley 23315a6930 Add failed to processing for the processing email
Fixes 15365
2017-05-31 10:12:24 +01:00
Claudio Sanches 51ddc36080 Skip empty attributes and reset indexes 2017-05-30 19:26:31 -03:00
Claudio Sanches 4a98844bb8 Shows if attribute is visible in exported data 2017-05-30 18:58:45 -03:00
Claudio Sanches d6fb028481 Allow import and create new global attributes 2017-05-30 18:46:32 -03:00
Claudio Sanches 96fe919535 Added column in exported data to indicate if attribute is global 2017-05-30 18:06:56 -03:00
Claudio Sanches 64a60de24f Merge pull request #15353 from woocommerce/fix/15245
Set all legacy data
2017-05-30 17:58:28 -03:00
Claudio Sanches b8a2815ae5 Merge pull request #15358 from woocommerce/fix/15356
Only delete if the object has an ID
2017-05-30 17:48:22 -03:00
Mike Jolley 85b8d8661a Merge pull request #14595 from woocommerce/feature/helper
Helper: First pass at merging the Helper plugin into WooCommerce
2017-05-30 20:39:08 +01:00
Konstantin Kovshenin aa6353bfa1 Helper: Clean up navigation/headings, remove some noop markup. 2017-05-30 22:26:33 +03:00
Claudio Sanches fb81994855 Fixed downloads URLs in the CSV parser 2017-05-30 15:01:48 -03:00
Claudio Sanches 40c2b471f5 Grouped products after cross sells as in the admin screen 2017-05-30 14:50:54 -03:00
Konstantin Kovshenin 1dc7e507b1 Helper: Redesign (work in progress) 2017-05-30 20:50:14 +03:00
Claudio Sanches 18bb025eaf Fixed exported images 2017-05-30 14:33:17 -03:00
Konstantin Kovshenin 556c2cf84c Helper: Add tabbed interface to WooCommerce > Extensions 2017-05-30 19:46:26 +03:00
Claudio Sanches 73e34b583f Fixed generic stock mapping 2017-05-30 13:04:16 -03:00
Mike Jolley 60def8cde0 Store user ID and use that to determine is session data should overwrite user data. 2017-05-30 17:03:55 +01:00
Claudio Sanches ffd248f19d Merge branch 'feature/product-csv-import-export' into refactor/fix-importer-and-improve-unit-tests 2017-05-30 13:03:17 -03:00
Mike Jolley 3dd7cbf59b Revert d570a81241 2017-05-30 16:54:37 +01:00
Claudio Sanches 9556e248a4 Missing tax class 2017-05-30 12:52:29 -03:00
Cesar Rodas 001cf94ff3 Fixed typo 2017-05-30 10:37:29 -04:00
Mike Jolley ed32f9c792 Only delete if the object has an ID 2017-05-30 14:44:28 +01:00
Mike Jolley 2366a036e3 Add id cache group to invalidate by ID 2017-05-30 14:37:29 +01:00
Mike Jolley f6b9c57b5b Invalidate by ID 2017-05-30 14:37:16 +01:00
Mike Jolley 2346af1816 Update title if changed
This could be the result of a term name changing, parent changing etc.

Fixes #15315

May degrade performance if reading many variations.
2017-05-30 13:20:36 +01:00
Mike Jolley fe3406ceec Set all legacy data
Fixes #15245
2017-05-30 12:36:20 +01:00
Mike Jolley 7529e1ac26 Merge branch 'pr/15304' 2017-05-30 11:56:10 +01:00
Mike Jolley 4ea9138d3e Code and test improvements 2017-05-30 11:54:31 +01:00
Mike Jolley 9880879ebb Merge pull request #15348 from davefx/patch-1
Add new filter woocommerce_logger_log_message
2017-05-30 11:37:18 +01:00
Mike Jolley 38bcdcfb28 Use get_max_purchase_quantityin cart template and fix logic
Closes #15329
2017-05-30 11:02:56 +01:00
Mike Jolley ef52345f1b Merge pull request #15337 from aelia-co/fix-issue-15336
Fix for #15336
2017-05-30 10:38:31 +01:00
David Marín f421939a3e Add new filter woocommerce_logger_log_message
It replicates the filter for the deprecated add logger function in the equivalent log function.
2017-05-30 09:55:10 +02:00
claudiulodro 7cf62bb023 Set up and add extra mappings 2017-05-29 11:16:44 -07:00
Cesar Rodas 8c67ae6a7a Make `get_item` to rely no `get_items` 2017-05-29 12:38:25 -04:00
Claudiu Lodromanean 2fb8f4b6b0 Merge pull request #15331 from woocommerce/fix/14759
Format parent stock qty on read
2017-05-29 08:24:15 -07:00
Claudio Sanches 7f4c650c87 Merge pull request #15334 from woocommerce/fix/15322
Ensure we have child before getting price
2017-05-29 12:02:01 -03:00
Claudio Sanches c73461f440 Merge pull request #15332 from woocommerce/fix/15307
Hide replies from recent reviews widgets
2017-05-29 12:00:57 -03:00
Diego Zanella b14a2db2e6 Fix for #15336
* Replaced reference to `WC()->payment_gateways` property with call to `WC()->payment_gateways()` method.
2017-05-29 13:02:16 +01:00
Mike Jolley 139c652e1d Ensure we have child before getting price
Fixes #15322
2017-05-29 10:43:56 +01:00
Mike Jolley 4ec3fe61f9 Merge pull request #15290 from peterrath/New-action-for-display-custom-data-in-order-fee-lines
New action for display custom data in order fee lines
2017-05-29 10:17:35 +01:00
Mike Jolley 934e95bc8b Merge pull request #15308 from woocommerce/fix/15297
Grouped product support in importer/exporter
2017-05-29 10:13:45 +01:00
Mike Jolley 4251d71dab Hide replies from recent reviews widgets
Fixes #15307
2017-05-29 10:09:17 +01:00
Mike Jolley f1d718d38a Format parent stock qty on read
Fixes #14759
2017-05-29 10:03:35 +01:00
claudiulodro 759fcae533 Use 'grouped_products' for grouped products 2017-05-28 12:37:18 -07:00
Peter 314f64b566 Change the name of the new action
Change the name of the new action to woocommerce_after_order_fee_item_name.
2017-05-28 20:40:59 +02:00
Claudio Sanches 6d54ae3504 Fetch product ID for temporary products only while processing the item 2017-05-26 19:57:31 -03:00
Claudio Sanches 3d5891e589 Fixed how backorders field is parsed 2017-05-26 19:39:20 -03:00
Claudio Sanches 77fcaf3392 Fixed images map handler 2017-05-26 19:30:42 -03:00
Claudio Sanches 0719746af2 Validate dates and use string format to use website timezone 2017-05-26 19:25:44 -03:00
Claudio Sanches 4bc139fef9 Fixed conflicts 2017-05-26 19:09:57 -03:00
Claudio Sanches 4d66bc9e45 Merge branch 'feature/product-csv-import-export' into refactor/fix-importer-and-improve-unit-tests 2017-05-26 19:07:46 -03:00
Claudio Sanches fe67ca0aff Fixed images mapping key 2017-05-26 18:58:35 -03:00
Claudio Sanches 2eeb444eeb Properly set stock quantity 2017-05-26 18:53:22 -03:00
Claudio Sanches 02a27ae258 Fixed PHP Notice about undefined name for product attributes 2017-05-26 18:44:22 -03:00
Claudio Sanches 780ce1a4e6 Fixed deprecated `set_stock` notice 2017-05-26 18:42:07 -03:00
Claudio Sanches d2c3bf362f Normalize column names 2017-05-26 18:01:15 -03:00
claudiulodro 9b925d28ec Grouped product child support 2017-05-26 13:30:17 -07:00
claudiulodro c96f8b5bc1 Better unset 2017-05-26 12:16:38 -07:00
claudiulodro 4a104f3202 Remove extra isset 2017-05-26 11:41:44 -07:00
claudiulodro 00d37412eb Accidentally reverted a fix 2017-05-26 11:37:12 -07:00
claudiulodro d362d47995 Get external products working 2017-05-26 11:26:55 -07:00
Ninos Ego 8eec5cc802 Small fix for thousand separators replacement check 2017-05-26 20:06:24 +02:00
Ninos Ego ccdac49723 Fix for #15294 2017-05-26 19:31:13 +02:00
Mike Jolley dcdd44ae67 Use correct keys for images 2017-05-26 18:09:49 +01:00
Mike Jolley dbd0f3dce0 error message 2017-05-26 16:56:37 +01:00
Mike Jolley d9217b1d59 More tidyup 2017-05-26 16:54:43 +01:00
Mike Jolley f51d434d10 Added todo item in exporter 2017-05-26 15:57:29 +01:00
Mike Jolley 3a7f4884d8 Moved logic around and organised 2017-05-26 15:57:17 +01:00
Claudio Sanches 995aa89b84 Fixed shipping class parser 2017-05-26 12:27:06 +01:00
Mike Jolley 62bcca6cce Merge pull request #15277 from woocommerce/fix/float-number-comparison
Support floats for the custom sort function
2017-05-26 11:16:22 +01:00
Mike Jolley c92d6335ff Merge pull request #15282 from woocommerce/fix/15267
Use meta id instead of key in WC_Order_Item::offsetGet
2017-05-26 11:11:01 +01:00
Peter 05516dbea5 New action for display order fee custom data
We need to display custom data in fee lines, similarly to woocommerce_after_order_itemmeta action in shipping line items.
2017-05-26 10:05:26 +02:00
Jonathan Moore 7dc2c7cd6e fixes #15283
fixes #15283 Notice: Undefined property: stdClass::$post_ID in wp-content/plugins/woocommerce/includes/class-wc-structured-data.php on line 262 
when calling wp_list_comments with $options['callback'] = 'woocommerce_comments'
2017-05-26 07:59:42 +08:00
claudiulodro e00d7b7c55 File metadata by id 2017-05-25 14:43:36 -07:00
Konstantin Kovshenin dda05889eb Helper: Avoid an undefined warning in the main template 2017-05-25 23:44:29 +03:00
claudiulodro fc05af3514 Phpcs fixes 2017-05-25 12:53:32 -07:00
claudiulodro df06d6f942 Merge remote-tracking branch 'origin/feature/product-csv-import-export' into HEAD 2017-05-25 12:41:26 -07:00
claudiulodro c4c990bc7c Remove unneccessary function 2017-05-25 12:36:10 -07:00
claudiulodro a99d7ff099 Exporter tests and tweaks 2017-05-25 12:33:14 -07:00
Claudio Sanches ac4bcf39c2 Merge pull request #15268 from woocommerce/fix/14775
For COD orders, force payment complete status to be completed.
2017-05-25 15:12:34 -03:00
Mike Jolley ba305eacb5 Fix tests 2017-05-25 18:16:10 +01:00
Boro Sitnikovski be70a3f95c Support floats for the custom sort function 2017-05-25 18:05:13 +02:00
claudiulodro 6d098b9c21 Clean up and some tests 2017-05-25 08:41:11 -07:00
Mike Jolley c31ab30391 Create temp objects to update later 2017-05-25 14:54:49 +01:00
Mike Jolley 42c3c9e593 Remove extra full stop 2017-05-25 12:36:12 +01:00
Mike Jolley 2e5053633b CRUD should update post type on update so it matches expected value. 2017-05-25 12:09:59 +01:00
Mike Jolley d2da39e046 Merge branch 'pr/14549' 2017-05-25 11:51:55 +01:00
Mike Jolley 7ec25f987f Only replace the user set thousand separator and add test 2017-05-25 11:51:45 +01:00
Mike Jolley 0e675137e3 Merge branch 'fix/issue-15252' 2017-05-25 11:30:09 +01:00
Mike Jolley d73849eee3 wc_strtoupper helper 2017-05-25 11:30:01 +01:00
Anwer AR c4fcddca73 Back to attributes link on attributes edit page (#15088)
* see #15059 The issue was about editing product attributes. Added back to attributes link.

* Updates admin_url to esc_url

* Added admin_url again wrapping inside esc_url

The function works without admin_url in my previous commit. but i have added admin_url again to make sure it points to correct location.

* Correctted typo of esc function and removed icon

correction of spell mistake and removal of &larr due to translation and RTL concerns. though WP and WC itself using &larr on some places.
2017-05-25 11:15:57 +01:00
Dixita Dusara fe4a4a7e83 Update issue Undefined index warning when saving variations with stock management disabled #15242 (#15271)
* Issue Undefined index warning when saving variations with stock management disabled #15242

* updated issue as per your suggestion for index warning when saving variations with stock management disabled #15242
2017-05-25 10:58:32 +01:00
Claudio Sanches a58bd42dcf Merge pull request #15172 from woocommerce/fix/15166
Correct price query when on a post type archive
2017-05-24 21:13:30 -03:00
Cesar Rodas 563aa887f7 Apply woocommerce_order_get_items filter to get_item 2017-05-24 17:30:14 -04:00
Claudio Sanches 72b98cbf5d Fixed WC_Customer->set_display_name @since #15239 2017-05-24 17:45:20 -03:00
Claudiu Lodromanean be25e49069 Merge pull request #15266 from woocommerce/fix/15238
Fix saving of text attributes with special chars
2017-05-24 11:38:28 -07:00
Boro Sitnikovski e68977d021 function_exists check 2017-05-24 20:22:58 +02:00
Mike Jolley bf48ac9e96 Merge pull request #15239 from woocommerce/fix/15020-display-name-update
Check for an existing display name before updating a user on checkout
2017-05-24 19:20:45 +01:00
Boro Sitnikovski c7c4cfbae5 Use mb 2017-05-24 20:19:17 +02:00
Claudiu Lodromanean 0a57283b61 Merge pull request #15264 from woocommerce/fix/15240
Gallery should be updated even if empty.
2017-05-24 11:18:53 -07:00
Kelly Dwan ea98da7778 Use display_name from the customer data store 2017-05-24 14:14:29 -04:00
Mike Jolley 28d355948f docblock 2017-05-24 19:11:16 +01:00
Boro Sitnikovski 43955736fc Update PR after review 2017-05-24 20:10:51 +02:00
Kelly Dwan 0a265b53a2 Add display_name to customer data store 2017-05-24 13:57:11 -04:00
Mike Jolley 20637e53b8 For COD orders, force payment complete status to be completed. 2017-05-24 18:48:34 +01:00
Kelly Dwan 51f4a6b1b8 Customers: Don’t update the display name of a user when completing an order, unless the old display name is an email. 2017-05-24 13:32:02 -04:00
Mike Jolley 7f8add52a7 Fix saving of text attributes with special chars
Fixes #15238
2017-05-24 18:01:19 +01:00
Mike Jolley 4b74f304b0 Gallery should be updated even if empty.
Fixes #15240
2017-05-24 17:23:28 +01:00
Konstantin Kovshenin 8b5c5c0bd6 Helper: Add better update URLs to theme subscriptions 2017-05-24 18:15:07 +03:00
Konstantin Kovshenin f912f39364 Helper: Add better update URLs to plugin subscriptions 2017-05-24 18:11:37 +03:00
Konstantin Kovshenin 353eac70ca Helper: Remove some legacy updater notices 2017-05-24 18:10:31 +03:00
roykho c837827992
Fix undefined global variable notice 2017-05-24 07:21:20 -07:00
Claudio Sanches 5f28c733cc Merge pull request #15234 from woocommerce/update/14630
Update serializejson to 2.8.1
2017-05-24 09:21:10 -03:00
Boro Sitnikovski 30f20b81de Make state validation less stricter for keys 2017-05-24 14:09:09 +02:00
Konstantin Kovshenin e8afe57593 Helper: Add contextual nags about available extension updates 2017-05-24 14:59:48 +03:00
Claudio Sanches da7d5786d3 Merge branch 'feature/product-csv-import-export' into feature/product-parser-match-exporter 2017-05-24 08:56:27 -03:00
Claudio Sanches b08c75fb83 Added handler for default attributes and improved how deal with product attributes 2017-05-24 08:14:10 -03:00
Mike Jolley f866f164eb Merge pull request #15244 from woocommerce/improvement/15187
Order query unit tests and fixes.
2017-05-24 12:03:40 +01:00
Claudio Sanches 66d7aabe6c Added full support for variations in importer 2017-05-24 07:26:57 -03:00
Konstantin Kovshenin a1b3d2834b Helper: Fix duplicate product output 2017-05-24 13:04:52 +03:00
Claudio Sanches 86036d7040 Check for WP_Error while getting/creating tags and shipping classes 2017-05-24 06:47:12 -03:00
Claudio Sanches 83f08ec18d Set attribute as visible by default 2017-05-24 05:43:15 -03:00
Claudio Sanches 60dd750a7b Handle product attributes 2017-05-24 04:32:28 -03:00
Claudio Sanches cd4a9ccf6a Fixed mapping sample display of 0 and false 2017-05-24 03:57:36 -03:00
Claudio Sanches c08d3a356e Added support "Attribute %d Visible" 2017-05-24 03:42:38 -03:00
Claudio Sanches 2c5c0133f3 meta_data is always an array 2017-05-24 03:35:53 -03:00
Claudio Sanches b10f3a3be9 Fixed coding standards 2017-05-24 03:26:17 -03:00
Claudio Sanches babc38822a Handle featured image and gallery 2017-05-24 03:14:54 -03:00
claudiulodro 201ea727db Simplify status check 2017-05-23 18:52:03 -07:00
claudiulodro 4faad7d964 Finish unit tests and bugfixes 2017-05-23 18:44:37 -07:00
Claudio Sanches a07dc188d0 Parse and save downloads 2017-05-23 22:31:06 -03:00
Claudio Sanches f676fa2752 Update products and variations parser 2017-05-23 21:58:10 -03:00
Claudio Sanches 43a26ea851 Properly map items when CSV match WooCommerce exporter format 2017-05-23 21:38:27 -03:00
Cesar Rodas ea9c573f2c Improved WC_Order::get_item()
Do not load all items, just load the items with a given order_item_type.
2017-05-23 20:12:47 -04:00
Claudio Sanches 2ebea10be6 Fixed tags and shipping class parsers warnings
wp_insert_term() returns array with `term_id` and `term_taxonomy_id` only.
2017-05-23 21:11:21 -03:00
Claudio Sanches d20c61678c Parser categories 2017-05-23 21:06:16 -03:00
Cesar Rodas b612bab38b Fixed coding styles 2017-05-23 19:18:31 -04:00
Mike Jolley 383a318f59 Merge pull request #14949 from aelia-co/Improvement-customer-total-spent-filter
New filters for customer total spent
2017-05-23 20:37:58 +01:00
Diego Zanella 89efc65327 Fixed call to woocommerce_customer_get_total_spent_query filter
* Variable `$customer` was passed to `$wpdb->get_var()` instead of the filter.
2017-05-23 20:35:21 +01:00
Mike Jolley c5d7dfba6c Feedback 2017-05-23 19:46:46 +01:00
Mike Jolley f6df18542a Merge pull request #15113 from bekarice/fix/wc_create_refund-date
Fix: Re-add date for wc_create_refund()
2017-05-23 19:33:23 +01:00
Mike Jolley a3b89a9efc Merge pull request #15144 from timondavis/fix/15103-cannot_set_default_variation_to_string_zero
#15103 Variation default value of '0' fails to save on product.
2017-05-23 19:31:38 +01:00
Mike Jolley 8a22d41605 Merge remote-tracking branch 'origin/master' 2017-05-23 19:29:44 +01:00
Mike Jolley 41e8b22b5a Merge branch 'pr/15219' 2017-05-23 19:28:45 +01:00
Mike Jolley 002dd935b5 Check we have a product object 2017-05-23 19:28:35 +01:00
Mike Jolley 35536b8ace Merge pull request #14576 from Chouby/tools_message
Add custom message for custom system status tools
2017-05-23 19:22:47 +01:00
Mike Jolley 6dfdc86111 Merge branch 'pr/14678' 2017-05-23 19:16:37 +01:00
Mike Jolley 109e951de3 Renamed filters and actions 2017-05-23 19:16:30 +01:00
Mike Jolley c16acc6b51 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	assets/css/wc-setup-rtl.css
#	assets/css/wc-setup.css
2017-05-23 19:00:24 +01:00
Mike Jolley d3666738d8 Merge branch 'pr/15069' 2017-05-23 18:56:58 +01:00
Mike Jolley 00e5189a05 Merge pull request #15070 from rasmusbe/phpdoc-missing-return-throws
Phpdoc: Add missing return and throws
2017-05-23 18:50:58 +01:00
Mike Jolley 4efc8d1247 Merge remote-tracking branch 'origin/master' 2017-05-23 18:48:31 +01:00
Mike Jolley 3b1894dd8f Merge branch 'pr/15039' 2017-05-23 18:48:24 +01:00
Mike Jolley c709b7f490 since 2017-05-23 18:48:16 +01:00
Mike Jolley c6d63e7819 Merge pull request #15017 from Ninos/filter/cookie
Filter for cookie name
2017-05-23 18:38:42 +01:00
Mike Jolley f594f11273 Merge pull request #14293 from woocommerce/fix/14162-query
Set and restore wp_query so product page functions think it's a real product page
2017-05-23 18:29:24 +01:00
Mike Jolley c4837f4419 Merge pull request #14653 from woocommerce/fix/14150
Update price sorting code
2017-05-23 18:13:27 +01:00
Diego Zanella a6bcc73846 Added $customer to filter woocommerce_customer_get_total_spent_query 2017-05-23 17:06:16 +01:00
Diego Zanella 885cb14029 Merge branch 'master' into Improvement-customer-total-spent-filter 2017-05-23 17:05:08 +01:00
Mike Jolley 8f27df6af3 Merge pull request #14294 from woocommerce/fix/14292
When searching, disable WC sort order
2017-05-23 16:43:24 +01:00
Mike Jolley 15f47e00a2 Merge branch 'master' into feature/13088
# Conflicts:
#	assets/css/admin-rtl.css
#	assets/css/admin.css
#	assets/css/twenty-seventeen-rtl.css
#	assets/css/twenty-seventeen.css
#	assets/css/woocommerce-rtl.css
#	assets/css/woocommerce.css
2017-05-23 16:35:17 +01:00
Mike Jolley db012b3a12 Merge pull request #15011 from woocommerce/fix/14999
Add abspath checks
2017-05-23 15:57:35 +01:00
Mike Jolley d31a58b117 More abspath 2017-05-23 15:40:19 +01:00
Mike Jolley 2d479e0580 Update serializejson to 2.8.1
Closes #14630
2017-05-23 15:27:53 +01:00
Mike Jolley 7901653f94 Merge pull request #15003 from woocommerce/fix/15001
Use VAT for norway
2017-05-23 15:07:39 +01:00
Mike Jolley 90213efa46 Merge pull request #15227 from woocommerce/fix/15225
A single multi-word attribute is fine for variation titles
2017-05-23 15:06:55 +01:00
Mike Jolley b1a5b23629 Done screen handling and form tweaks 2017-05-23 15:05:32 +01:00
Mike Jolley 2383799409 A single multi-word attribute is fine for variation titles
Closes #15225
2017-05-23 10:52:44 +01:00
Mike Jolley f09f7eb84e Merge pull request #15150 from woocommerce/fix/15118
Add handles so drag and drop does not break edit on mobile
2017-05-23 10:20:08 +01:00
dixitadusara ebe831ccec Issue Missing $ip Variable #15213 2017-05-23 11:50:30 +05:30
Claudio Sanches ac304473c7 Allow external URL and button text for external products 2017-05-22 20:18:39 -03:00
Claudio Sanches 8d5f706077 Save meta_data 2017-05-22 19:31:05 -03:00
Claudio Sanches 7f92479f4f Create shipping class or tag if does not exist 2017-05-22 19:24:33 -03:00
Claudio Sanches 775a934b74 Parse shipping class ID and tags IDs 2017-05-22 18:54:30 -03:00
James Kemp 90c987af70 Utilise $product method to get thumbnail
Is there any reason this function isn't using the `get_image()` method? It seems if we're accessing the `$post->ID`, then we should have access to the `$product` object too?

The reason being, the `get_image()` method also checks for the parent featured image, so is more robust. It may also be worth considering a filter in the `get_image()` method.
2017-05-22 22:07:51 +01:00
Claudiu Lodromanean 4bbc50d52c Merge pull request #15182 from woocommerce/fix/14861
Group by term ID to prevent duplicates
2017-05-22 13:14:47 -07:00
Claudiu Lodromanean 58189cb4b5 Merge pull request #15208 from woocommerce/fix/15203
Missing variable in legacy API
2017-05-22 13:10:28 -07:00
Claudiu Lodromanean d530587cd3 Merge pull request #15170 from woocommerce/fix/15163
Cancelled email should be send for processing orders, not pending.
2017-05-22 12:00:25 -07:00
Claudiu Lodromanean 2a19598930 Merge pull request #15214 from woocommerce/fix/15191
Update jquery payment to v3
2017-05-22 11:13:22 -07:00
Claudiu Lodromanean 700460d925 Merge pull request #15211 from woocommerce/fix/15002
Zones API changes for zone 0
2017-05-22 11:12:59 -07:00
Mike Jolley 2a51aa2020 Update jquery payment to v3 2017-05-22 16:37:08 +01:00
Mike Jolley b1bf3278a7 Prevent zone 0 having locations set in CRUD 2017-05-22 15:19:15 +01:00
Mike Jolley 8cba7db7cd Prevent zone 0 name being changed 2017-05-22 15:19:04 +01:00
Mike Jolley a826b363d8 Prevent zone 0 locations being changed 2017-05-22 15:18:55 +01:00
Mike Jolley d1b49888f2 Missing variable in legacy API
Fixes #15203
2017-05-22 13:25:33 +01:00
Mike Jolley fc8100877c Undo change 2017-05-22 12:19:54 +01:00
Claudio Sanches 4f16740f61 Parse special column names and internal fields 2017-05-19 18:50:09 -03:00
Claudio Sanches 8a7e215b41 Return raw_keys if mapped_keys is empty 2017-05-19 18:46:42 -03:00
Claudio Sanches e66a657a2e Removed "CSV" from filters and IDs 2017-05-19 18:45:58 -03:00
claudiulodro 57c4d904bd Type 2017-05-19 12:43:40 -07:00
claudiulodro cb297ad1b0 Add skip existing option 2017-05-19 10:58:31 -07:00
Mike Jolley eae2fb64c8 Group by term ID to prevent duplicates
Fixes #14861
2017-05-19 15:27:57 +01:00
Mike Jolley 636754096d Handle type parsing correctly 2017-05-19 15:06:45 +01:00
Mike Jolley 754e991220 Redirect if there is no mapping data 2017-05-19 15:06:36 +01:00
Mike Jolley e860a8d307 Abort if we have no mapping data 2017-05-19 14:59:05 +01:00
Mike Jolley aeb3234ec6 Formatting 2017-05-19 14:33:40 +01:00
Mike Jolley cde32be82d Done step and styling 2017-05-19 13:25:03 +01:00
Mike Jolley 1617c62f47 Export text tweaks 2017-05-19 12:03:34 +01:00
Mike Jolley 2082d84e4d Always sync incorrect titles on variation read regardless of version
For #15158
2017-05-19 11:28:13 +01:00
Mike Jolley 47d7fedff8 Correct price query when on a post type archive
Fixes #15166
2017-05-19 11:19:30 +01:00
Mike Jolley 067489b155 Cancelled email should be send for processing orders, not pending.
Fixes #15163
2017-05-19 10:45:26 +01:00
Claudio Sanches 33da6e16de Start handle parsed data 2017-05-18 21:19:01 -03:00
Claudio Sanches 2ba8e27469 Included required methods to the interface 2017-05-18 21:18:56 -03:00
Claudio Sanches ca083c6197 Skip reletive field if empty 2017-05-18 21:18:53 -03:00
Claudio Sanches 4c9d7ef02e Handle relative fields 2017-05-18 21:18:50 -03:00
Claudio Sanches 74b4ba8a94 Improved sanitization in product CSV importer and handle special columns 2017-05-18 21:18:47 -03:00
Claudiu Lodromanean a13668f201 Merge branch 'feature/product-csv-import-export' into feature/background-processing 2017-05-18 10:11:34 -07:00
claudiulodro 9d52ef9f61 Performance tweak 2017-05-18 10:05:31 -07:00
claudiulodro 83908bc735 Move file functions to abstract class 2017-05-18 09:59:40 -07:00
claudiulodro b2e8d31262 Clean up 2017-05-18 09:49:58 -07:00
Mike Jolley 9f4b29a677 Merge pull request #15153 from woocommerce/tweak/15104
Check if subtotal is blank, not empty
2017-05-18 16:50:26 +01:00
Claudiu Lodromanean 0132a29c18 Merge pull request #15152 from woocommerce/fix/15127
Handle shipping item taxes if set to avoid the legacy fallback
2017-05-18 08:28:02 -07:00
Claudiu Lodromanean b5b76a428f Merge pull request #15151 from woocommerce/fix/15145
Fix stock/backorder notice when stock management is disabled
2017-05-18 08:24:04 -07:00
Mike Jolley 8dbf41994b Check if subtotal is blank, not empty
Closes #15104
2017-05-18 15:59:07 +01:00
Mike Jolley 56a3b31e68 Handle shipping item taxes if set to avoid the legacy fallback
Fixes #15127
2017-05-18 15:48:42 +01:00
Mike Jolley 89ece25a32 Fix stock/backorder notice when stock management is disabled
Fixes #15145
2017-05-18 15:28:38 +01:00
Mike Jolley c3c966b5fd Add handles so drag and drop does not break edit on mobile
Fixes #15118
2017-05-18 15:22:12 +01:00
Mike Jolley eb147197a2 Variations should inherit purchase_note from parent.
Fixes #15115
2017-05-18 14:47:00 +01:00
Mike Jolley cac5b33553 Merge pull request #14639 from atimmer/stories/webhook-public-build_payload
Change build_payload from private to public
2017-05-18 13:15:53 +01:00
Mike Jolley ebfe8fec65 Merge pull request #14953 from pixedelic/master
added filters on zoom / flexslider / photoswipe enabling
2017-05-18 13:14:14 +01:00
Timon Davis af308da6b9 Fix bug #15103 where site operator cannot assign a variation with value of '0' as the default choice on the customer facing form.
The WC_Product::set_default_attributes function uses an array_filter (using the default callback for filtration)
to remove null and false values from the defaults array for a given product.  The issue here is that, in the above use case,
the array_filter will evaluate '0' as 0 and therefore as false.  Ultimately, array_filter then prevents the value from being
recorded, moving forward.

I've added a new filter callback to includes/wc-attribute-functions which will disregard all FALSE PHP equivalents except for
'0' (as a a string).  Also, I've updated the filter_array call in WC_Product::set_default_attributes so that it uses this new callback,
instead of the PHP default. Finally, I've added a phpunit test to assert that, when storing default variations / attributes on a product,
the false/true PHP synonyms are evaluating and storing like one would normally expect, with the exception that (string) '0'
evaluates as true in this special case.

This solution could potentially be broadened to facililate similar rules elsewhere, but the need raised in the bug is specific and
this is a specific solution.
2017-05-18 02:43:14 -07:00
Boro Sitnikovski d302e18a9b Rename `informational` to `info` in the phpdoc 2017-05-18 10:32:25 +02:00
Claudio Sanches 36fa838678 Allow extend auto mapping options 2017-05-17 21:10:26 -03:00
Claudio Sanches df63ea9b5a Handle special column names
Handle columns names like "Attribute 1 Name" and "Meta: _foo_bar".
2017-05-17 20:59:36 -03:00
claudiulodro 2ab0fdfe78 Styling 2017-05-17 14:55:20 -07:00
claudiulodro fa1446bc86 Clean up 2017-05-17 14:43:03 -07:00
claudiulodro 17083dafae Initial background importer implementation 2017-05-17 14:34:49 -07:00
Claudio Sanches d3ec48f378 Match regular fields between exporter and importer 2017-05-17 17:55:28 -03:00
Claudio Sanches ce6741e117 Fixed error display and incorrect use of WP_Error 2017-05-17 14:57:03 -03:00
Claudio Sanches 215a9fa0c1 Fixed warning about empty callback name 2017-05-17 14:43:48 -03:00
Mike Jolley e23acb3719 Fix shop page when using shop base and UTF8 shop page slug
To test, set shop page slug and name to `חנות` then set permalinks to
shop base.

Repeat that before and after patch.

Shop page 404 errors before patch.

Fixes #15111
2017-05-17 18:13:32 +01:00
Mike Jolley 956b1a6181 Adds storefront/theme step to the setup wizard
Also includes a background install to get Storefront installed and
activated on demand.

To test, use a default theme and go to wp-admin/index.php?page=wc-setup
The theme step will be after payments!
2017-05-17 17:42:18 +01:00
claudiulodro adc8f4eacb Use correct method name 2017-05-17 09:15:49 -07:00
claudiulodro d6ef3ca855 Docblock tweak and remove unused query var 2017-05-17 08:51:45 -07:00
Mike Jolley a6537ff269 export styling 2017-05-17 14:22:41 +01:00
Mike Jolley d67fb8fb83 New style import controller
Closes #15107
2017-05-17 14:16:38 +01:00
Mike Jolley bf2979f68d Revert change - export directory contains logic only, not admin 2017-05-17 11:50:55 +01:00
Mike Jolley 8a48c7d388 Made exporter and importer screens, classes and directories consistent
Once merged, @claudiosanches @claudiulodro, we should work on
https://github.com/woocommerce/woocommerce/tree/feature/product-csv-impo
rt-export branch going forward and get this merged into it.
2017-05-17 11:24:27 +01:00