Commit Graph

139 Commits

Author SHA1 Message Date
Claudio Sanches d48f1d4e2e Fixed package tag usage 2020-08-05 13:36:24 -03:00
Claudio Sanches 37777432d4 [Importer/Exporter] Fix "Published" column values
While variations only uses "published" and "private" statuses when
exporting we should display the variations as "draft" in case the parent
product it's also a draft.
2020-07-15 21:45:51 -03:00
Claudio Sanches f6cd453840
Merge pull request #26669 from woocommerce/fix/filter-params
Normalize parameters for woocommerce_product_importer_parsed_data filter
2020-07-01 12:39:17 -03:00
Claudio Sanches ab8a1b78a3
Merge pull request #26668 from woocommerce/fix/typo
Fixed typo in WC_Product_CSV_Importer class
2020-07-01 12:39:03 -03:00
Julia Amosova 7982efb3df Fix the @return description of the CSV Import categories parsing function 2020-06-08 15:03:00 -04:00
Julia Amosova ea17484e42 Remove check for existing term when parsing category & add better error handling 2020-06-07 20:59:23 -04:00
Claudio Sanches 9020cebdbb Normalize parameters for woocommerce_product_importer_parsed_data filter 2020-06-02 14:21:33 -03:00
Claudio Sanches f8a050f914 Fixed typo in WC_Product_CSV_Importer class 2020-06-02 11:42:50 -03:00
Claudio Sanches 8033d5751e Changed wc_get_product_classname function name to wc_get_product_object 2019-12-04 16:15:16 -03:00
Claudio Sanches ba0773d12e Apply wc_get_product_classname() in the current code base 2019-11-13 15:30:09 -03:00
Ron Rennick 71d7f2c1bb remove trailing space 2019-07-10 14:01:38 -03:00
Ron Rennick 64476263b8 add filter for product import image separator 2019-07-10 09:13:05 -03:00
Rodrigo Primo 34e5018137
Merge pull request #23262 from woocommerce/fix/23257
CSV Import - check if sku or id column exists when updating products from csv
2019-07-09 14:25:03 -03:00
Claudio Sanches 55692cba87
Merge pull request #23255 from woocommerce/shopify-column-mapping
Mapping for default Shopify fields
2019-07-08 18:53:57 -03:00
Rodrigo Primo c21a69ff6d Complement WC_Product_CSV_Importer::parse_published_field() phpdoc
Add a phrase to WC_Product_CSV_Importer::parse_published_field() phpdoc
to note that 'true' and 'false' are also supported to set product
published status.
2019-05-21 15:55:41 -03:00
Mike Jolley aaca13ee3d Map more fields, including special columns with custom data handling requirements 2019-04-15 16:05:29 +01:00
Mike Jolley 93535047fd Ability to parse tags with space separators 2019-04-15 15:55:42 +01:00
Mike Jolley 558e96fdb9 parse_tax_status_field 2019-04-15 15:08:25 +01:00
Mike Jolley 244156c0be check if sku or id column exists when updating products from csv 2019-04-10 11:11:40 +01:00
Mike Jolley 7e3eec3ed6 Added parse_published_field 2019-04-04 12:21:38 +01:00
Mike Jolley b4427e0c25 Merge branch 'pr/22298' 2019-01-09 13:51:30 +00:00
Mike Jolley 06b5480f2d
Merge pull request #22071 from Prospress/fix/22060
don't html escape sku used in product lookup
2019-01-09 13:07:04 +00:00
Mike Jolley 0da7f9f06f
Merge pull request #21896 from jespervnielsen/patch-3
Add dependency to WC_Product_CSV_Importer_Controller
2019-01-07 12:48:45 +00:00
Ron Rennick 3083f05a0c missed phpcs sniffs 2018-12-27 11:45:12 -04:00
Ron Rennick 9b200b213d convert newlines to/from \n on export/import 2018-12-26 15:30:40 -04:00
Ron Rennick 0e9494ba50 phpcs sniff fixes in class-wc-product-csv-importer.php 2018-12-26 11:22:52 -04:00
Ron Rennick 99a48cc0a0 don't html escape sku used in product lookup 2018-11-28 13:47:27 -04:00
Ron Rennick ddcfb50d4b fix phpcs in class-wc-product-csv-importer.php 2018-11-28 13:45:33 -04:00
Ron Rennick 900c150569 Introduce `unescape_data` replacing `unescape_negative_number` for consistency with `escape_data` for strings in a CSV context 2018-11-15 15:49:39 -04:00
Jesper V Nielsen a09ddb99dc
Add dependency to WC_Product_CSV_Importer_Controller
When using the class WC_Product_CSV_Importer it gives fatal error, when using outsite of controller context, after "WC_Product_CSV_Importer_Controller" is introduced in this class.

This fixes it, and makes sure the external class exists, and is loaded.
2018-11-13 10:18:05 +01:00
Menaka S 566c57cc45 Trim the import file headers while reading 2018-10-19 16:43:52 +05:30
claudiulodro 7b19673dea Extra file type checking 2018-10-11 13:31:27 -07:00
Rodrigo Primo e3cbebf29e
Merge pull request #21192 from woocommerce/fix/20979
Restrict category creation in importer to appropriate permissions
2018-08-29 11:27:49 -03:00
Rodrigo Primo f1c2dbbf2b Remove unneeded phpcs ignore comment 2018-08-29 10:34:06 -03:00
claudiulodro 74645b13f9 Dont allow users without manage_product_terms permissions to create categories using the importer 2018-08-24 11:32:48 -07:00
Joey cd8416122f removed low stock options for variations, and addressed changes 2018-06-19 12:40:27 +01:00
Joey b08b55a651 added changes for low stock notifications per product 2018-05-27 05:40:58 +01:00
Mike Jolley 970a77b43b This was not needed after all. 2018-04-26 17:18:39 +01:00
Mike Jolley b4657d5a42 Status must be set after import 2018-04-26 16:06:04 +01:00
Mohammed Saimon 7869d5bc83 fix(csv-importer): export/import: unlimited downloads/time on downloadable products conflict is fixed #19720 (#19732)
* fix(csv-importer): export/import: unlimited downloads/time on downloadable products conflict is fixed #19720

* added -- which was removed unwillingly

* changed method name to parse_int_field and removed unnecessary checking
2018-04-17 15:37:33 +01:00
Mike Jolley 5d4561240a Handle escape characters for fputcsv 2018-04-10 18:08:56 +01:00
Gerhard Potgieter e876f0dfb2 empty check on 0 will be true, return no when empty. 2018-03-23 11:21:59 +02:00
Gerhard Potgieter 04cce41b6b Default to no when importing backorders. 2018-03-23 11:19:02 +02:00
Mike Jolley d674aa71aa Fix import placeholder lookup 2018-02-05 14:33:34 +00:00
Mike Jolley 4ffff150b5 fix while loop 2018-01-10 17:28:26 +00:00
Mike Jolley fd2b830a9f Use intval for download limit and expiry 2018-01-09 10:56:57 +00:00
Claudiu Lodromanean 1b079f1e43
Merge pull request #18061 from woocommerce/fix/import-export-18047
Fix ID mapping to existing IDs
2017-12-07 09:57:31 -08:00
Mike Jolley 3de87d3db7 Fix ID mapping to existing IDs
Fixes #18047
2017-12-07 14:12:20 +00:00
Claudio Sanches 0946fd04cf Allow import and export draft products
Closes #17722
2017-12-06 18:32:35 -02:00
claudiulodro 7e52af8b9a Fix logic 2017-11-22 11:57:59 -08:00