Commit Graph

205 Commits

Author SHA1 Message Date
Rodrigo Primo 5b425402c2 phpcs fixes in includes/admin/importers/mappings/wordpress.php 2018-03-09 17:25:36 -03:00
Rodrigo Primo 20650248ae phpcs fixes in includes/admin/importers/mappings/mappings.php 2018-03-09 17:25:24 -03:00
Rodrigo Primo c7d13ddab6 phpcs fixes in includes/admin/importers/mappings/generic.php 2018-03-09 17:25:15 -03:00
Rodrigo Primo c18cfd779d phpcs fixes in includes/admin/importers/mappings/default.php 2018-03-09 17:25:05 -03:00
Rodrigo Primo 1dc2511c2c phpcs fixes in includes/admin/importers/class-wc-tax-rate-importer.php 2018-03-09 17:24:55 -03:00
Rodrigo Primo 73cb1663ec phpcs fixes in includes/admin/importers/class-wc-product-csv-importer-controller.php 2018-03-09 17:24:44 -03:00
Rodrigo Primo 23b69eba53 Use phpcbf to fix coding standard violations in includes/admin
After using phpcbf to fix the coding standard violations, I did some manual adjustments to the changes, especially in poorly indented files.
2018-03-05 16:21:35 -03:00
Claudio Sanches ffd7915d49 Make sure that option is an array 2018-02-28 16:46:52 -03:00
Claudio Sanches de804dbe7b Make sure that user saved mapping preferences are applied after all filters 2018-02-28 16:40:26 -03:00
Claudio Sanches 3ca1139cf9 Sanitize mapping before save 2018-02-28 16:36:35 -03:00
Claudio Sanches 8500000da7 Updated user option key 2018-02-28 16:04:20 -03:00
Claudio Sanches 9db8a434b5
Merge pull request #18082 from WPprodigy/remember-importer-mappings
Remember importer mappings
2018-02-23 11:05:24 -03:00
suifengtec 6aab570544 fix: show Maximum size with the size unit on the importer screen 2018-02-12 23:18:24 +08:00
Ryan Ray b3af5c808d Updates & renames all dummy data to sample data. 2018-01-11 11:39:51 -05:00
Caleb Burks 83c1e70d00 Fix docs type 2017-12-11 23:12:53 -06:00
Caleb Burks c7a583e5c1 Add CSV import option to use previous mapping 2017-12-09 02:58:07 -06:00
Caleb Burks 9db92e7152 Remove html that was being escaped 2017-12-09 01:13:27 -06:00
Mike Jolley 5a8cdb1ded Update wording for #17968 2017-12-05 13:31:42 +00:00
Gerhard Potgieter 956db3c8da Change input to button for submit in html-product-csv-import-form.php 2017-11-06 15:15:31 +02:00
Gerhard Potgieter 56ddba9745 PHPCS fixes for html-product-csv-import-form.php 2017-11-06 15:14:35 +02:00
Gerhard Potgieter 01e4778d61 Change input to button for submit in html-csv-import-mapping.php 2017-11-06 15:12:28 +02:00
Gerhard Potgieter 844661230b PHPCS fixes for html-csv-import-mapping.php 2017-11-06 15:11:15 +02:00
Gerhard Potgieter bb9a29da85 Change input to button for submit in class-wc-tax-rate-importer.php 2017-11-06 15:06:15 +02:00
Gerhard Potgieter fbe7a1e2a2 PHPCS fixes for class-wc-tax-rate-importer.php 2017-11-06 15:05:13 +02:00
Claudio Sanches 6782cfaca5 Fixed how apply strtolower in columns names in the importer auto map
Now apply for all columns names, even when added by the filters.
2017-10-26 08:20:06 -02:00
Claudio Sanches 0c6392eeef Display error message when it's impossible to get a sample of the file.
When the file is empty or using an incorrect charset will display just an empty screen, since we output errors before check if the file is valid.

I included the error output inside the mapping step in order to fix this issue, and added a new option to display buttons after the error  message.

Closes #16928
2017-09-26 17:48:37 -03:00
Claudio Sanches b68b4eeb6b Fixed 'Download %d URL' string 2017-09-25 14:14:55 -03:00
Claudio Sanches 9fc6615909 Removed new translatable string introduced in #16843
Fixes #16843
2017-09-25 14:13:50 -03:00
claudiulodro 9d8e308a78 Make importer columns case-insensitive 2017-09-17 10:18:03 -07:00
Dharmesh Patel d877ab31c5 Apply filter on product csv importer steps. 2017-09-13 23:56:15 +05:30
Claudio Sanches 7ad0dd55f9 Allow import 'menu_order' 2017-08-22 17:22:39 -03:00
webspecnick 49ba871795 Add enclosure and escape arguments to importer. Introduce filter to change importer arguments (#16053)
* Introduce woocommerce_product_csv_importer_args filter.

* Add extra args to WC_Product_CSV_Importer. Have fgetcsv use extra args

* Update to follow coding standards.
2017-07-12 12:11:44 +01:00
Mike Jolley b91da6f021 Change how mapping is posted 2017-07-06 18:51:36 +01:00
Daniel Hüsken d6377c9609 will improve #15806 2017-06-27 14:43:51 +02:00
Daniel Hüsken 84881c3e36 Importer fix file type detection on local path 2017-06-27 14:21:05 +02:00
Claudio Sanches 783f2318c4 Fixed undefined variable for importer default mapping 2017-06-23 15:33:37 -03:00
Claudio Sanches 25a2ee0ca8 Use default English mapping when English is not the current language 2017-06-22 18:07:12 -03:00
Claudio Sanches 1806590e71 Invert special importer mapping options to allow multiple keys 2017-06-22 18:06:10 -03:00
claudiulodro fcd5460ec0 Check filetype in CSV upload 2017-06-21 11:50:03 -07:00
Mike Jolley 907b986d4f Tweak wording 2017-06-14 16:37:53 +01:00
Mike Jolley 393f1be092 Merge pull request #15580 from woocommerce/refactore/improve-importer-mapping-options
Better importer mapping options
2017-06-13 12:15:33 +01:00
Mike Jolley 1a6e477c83 Merge pull request #15579 from woocommerce/fix/importer-delimiter
Start handle importer delimiter
2017-06-13 11:57:10 +01:00
Umesh Ghimire b5cd0a8680 Space after parentheses 2017-06-13 09:52:27 +05:45
Claudio Sanches e6b5ac83c4 Better importer mapping options
- Rearranged fields to make easy to find
- Grouped price fields
- Include context to "Stock" since could means different things depending on the language
2017-06-12 18:08:23 -03:00
Claudio Sanches 2702647f88 Start handle importer delimiter
This make able handle the delimiter input passing to mapping screen and to the AJAX importation process.
2017-06-12 17:47:20 -03:00
Umesh Ghimire 71c22cadf1 Fixed - Directory separator issue on windows for product import file fixed. 2017-06-10 08:50:41 +05:45
Claudio Sanches b93d286985 Stop auto skip column map and remove all related code 2017-05-31 14:59:17 -03:00
Mike Jolley d8edc8a965 Always map 2017-05-31 15:07:07 +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
Claudio Sanches d6fb028481 Allow import and create new global attributes 2017-05-30 18:46:32 -03:00
Claudio Sanches 40c2b471f5 Grouped products after cross sells as in the admin screen 2017-05-30 14:50:54 -03:00
Claudio Sanches 73e34b583f Fixed generic stock mapping 2017-05-30 13:04:16 -03: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
Claudio Sanches 9556e248a4 Missing tax class 2017-05-30 12:52:29 -03:00
claudiulodro 7cf62bb023 Set up and add extra mappings 2017-05-29 11:16:44 -07: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
claudiulodro 759fcae533 Use 'grouped_products' for grouped products 2017-05-28 12:37:18 -07:00
Claudio Sanches 77fcaf3392 Fixed images map handler 2017-05-26 19:30:42 -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 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 d362d47995 Get external products working 2017-05-26 11:26:55 -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 6d098b9c21 Clean up and some tests 2017-05-25 08:41:11 -07:00
Mike Jolley 42c3c9e593 Remove extra full stop 2017-05-25 12:36:12 +01:00
Mike Jolley 28d355948f docblock 2017-05-24 19:11:16 +01: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
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 b10f3a3be9 Fixed coding standards 2017-05-24 03:26:17 -03:00
Claudio Sanches 43a26ea851 Properly map items when CSV match WooCommerce exporter format 2017-05-23 21:38:27 -03:00
Mike Jolley c5d7dfba6c Feedback 2017-05-23 19:46:46 +01:00
Mike Jolley b1a5b23629 Done screen handling and form tweaks 2017-05-23 15:05:32 +01:00
Claudio Sanches ac304473c7 Allow external URL and button text for external products 2017-05-22 20:18:39 -03:00
claudiulodro cb297ad1b0 Add skip existing option 2017-05-19 10:58:31 -07:00
Mike Jolley 754e991220 Redirect if there is no mapping data 2017-05-19 15:06:36 +01:00
Mike Jolley cde32be82d Done step and styling 2017-05-19 13:25:03 +01: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 b2e8d31262 Clean up 2017-05-18 09:49:58 -07: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
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
Claudio Sanches 020e61927b Created abstract product class 2017-05-16 01:02:46 -03:00
Claudio Sanches cc05ed77d2 Properly display the importer results 2017-05-15 20:41:19 -03:00
Claudio Sanches 121f8f6315 Abstract the product importer 2017-05-15 19:49:53 -03:00