Mike Jolley
8c2e305823
phpcs
2019-02-14 15:05:56 +00:00
Mike Jolley
621229b894
Variations cannot be drafts - set to private.
2019-02-14 15:05:10 +00: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
Nicolas Bovee
b7ef951ac0
Revised error message and set is_type method on .
2018-11-05 23:19:10 -07:00
Nicolas Bovee
fe5f2d411b
added an error for variation using variation for parent in import and removed @access on 87
2018-11-04 23:34:17 -07: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
e6ddc65c2a
Wrap cell in ' rather than prepend
2018-05-11 12:16:02 +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
565f1c6e66
Inherit 'is variation' from existing attribute during csv import
2018-03-15 12:18:31 +00:00
Gerhard Potgieter
85636f8fe7
PHPCS passing for abstract-wc-product-importer.php
2018-03-06 10:04:37 +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
Mike Jolley
47b39caf83
phpcs
2017-12-15 13:19:23 +00:00
Mike Jolley
ea8681280a
Only get ID when it's not empty so 0 and '' is ignored
2017-12-15 12:59:54 +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
Claudio Sanches
c07d039242
[Importer] Get global attribute ID only when is a global attribute.
...
Closes #17923
2017-12-05 16:55:56 -02:00
Mike Jolley
0a9485c465
Merge branch 'master' into feature/11259
...
# Conflicts:
# assets/css/admin-rtl.css
# assets/css/admin.css
# includes/admin/list-tables/class-wc-admin-list-table-products.php
# includes/class-wc-install.php
# includes/wc-update-functions.php
2017-12-04 14:14:03 +00:00
claudiulodro
160e562dc6
Better negative number unescape
2017-11-27 09:48:28 -08:00
Manos Psychogyiopoulos
7463182c3f
Change abstract importer methods visibility
2017-11-27 17:22:19 +02:00
claudiulodro
7e52af8b9a
Fix logic
2017-11-22 11:57:59 -08:00
claudiulodro
ee445b6ee5
Importer/Exporter backorder compatibility
2017-11-22 11:48:19 -08:00
axelmm
1a309856c3
Access to importer parameters - DRY
...
Access (read only) to params can be required in many cases when you're playing with importing.
In my case it was extending importer with filters and actions (procedural way - within original csv importer process) but it relates to objective way (extending importer class), too.
I wanted to know if 'update_existing' flag is set (other way than $_POST values) within filter 'woocommerce_product_importer_parsed_data' in parse/expand loop (called from class-wc-product-csv-importer.php 'set_parsed_data' method). Unfortunately this (and similiar) filter doesn't receive importer instance, only row data (raw, parsed and product object). Thanks to https://github.com/woocommerce/woocommerce/pull/15796 we have 'woocommerce_product_importer_formatting_callbacks' filter receiving importer instance. Unfortunately importer '$params' field is not accessible (protected in abstract). This PR resolves this simple problem - we can get this flag (and other params) before importing loops, processing rows etc.
2017-11-20 02:09:49 +01:00
Gerhard Potgieter
8e837adc50
Allow for shortcode and relative download urls to be imported. Closes #17334
2017-10-25 14:54:02 +02:00
Mike Jolley
b72268172a
Fix image matching queries
2017-10-12 16:32:40 +01:00
Claudio Sanches
fecff53353
[Importer] Do not override stock_status when already declared
...
And fixed a few coding standards because the pre-commit hook.
Fixes #16992
2017-09-29 16:07:15 -03:00
Mike Jolley
a8ab4860ca
Reverse image logic in get_attachment_id_from_url
...
Closes #16905
2017-09-25 12:58:25 +01:00
Matt Miller
c87762177b
Add check for 0 as a string
2017-09-21 16:21:49 -07:00