Commit Graph

21401 Commits

Author SHA1 Message Date
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
Mike Jolley a15fffb945 Merge pull request #15204 from ughimire/nepali-zones
Tweak - Nepali zone name update
2017-05-22 12:18:35 +01:00
Mike Jolley 076eac48b5 Merge pull request #15189 from woocommerce/feature/import-merges-2
Add "Skip existing products" option.
2017-05-22 11:56:39 +01:00
Umesh Ghimire b026e9839c Tweak - Nepali zone name update 2017-05-22 14:14:07 +05:45
Claudio Sanches f294447543 Fixed unit tests 2017-05-19 19:18:09 -03: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 76d6248cbd Minify js 2017-05-19 12:50:42 -07: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 142f6f5c07 Merge pull request #15180 from woocommerce/fix/importer-parsing
Fix importer parsing
2017-05-19 16:03:52 +01:00
Mike Jolley 7a952cdc00 Merge branch 'feature/product-csv-import-export' into fix/importer-parsing 2017-05-19 15:36:07 +01:00
Mike Jolley eae2fb64c8 Group by term ID to prevent duplicates
Fixes #14861
2017-05-19 15:27:57 +01:00
Claudiu Lodromanean d0fc08d5b0 Merge pull request #15177 from woocommerce/update/done-step-15155
Done step and styling
2017-05-19 07:27:08 -07: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 310de1f1e0 Merge pull request #15135 from woocommerce/feature/background-processing
Importer background processing.
2017-05-18 12:59:06 -07: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 64bcef0722 Merge pull request #15148 from woocommerce/fix/15115
Variations should inherit purchase_note from parent.
2017-05-18 16:08:03 +01:00
Mike Jolley db8906c87c Merge remote-tracking branch 'origin/feature/csv-importer' into feature/product-csv-import-export 2017-05-18 16:02:28 +01: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
Mike Jolley 0d7307a336 Merge pull request #15138 from woocommerce/feature/importer-match-exporter
Importer - Auto map exported fields
2017-05-18 11:51:51 +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