Commit Graph

209 Commits

Author SHA1 Message Date
Claudio Sanches d48f1d4e2e Fixed package tag usage 2020-08-05 13:36:24 -03:00
Claudio Sanches f4d11c89f3
Merge branch 'master' into issue-24266-solution 2020-06-23 16:47:30 -03:00
Julia Amosova 479cac4fc0 Add note to Products Importer that TXT files are also supported. 2020-06-02 12:55:06 -04:00
Christopher Allford 7bf9c31f64 Adjusted the column name normalization to avoid squashing meta key case sensitivity
Since we were converting the field to lowercase we ended up inserting meta in all lowercase, regardless of what it was in the CSV file. We should only be using the normalized field name when looking at the default columns, and should instead rely on a case-insensitive regex for the special columns.

One thing to note is that we're still defaulting the $headers array to the normalized field, as we don't want to change what is being passed to the filter for unmapped columns.
2020-05-14 21:20:55 -07:00
Claudio Sanches c09a269589
Revert "Fix duplicated custom fields after import products from .csv file" 2020-05-14 14:06:01 -03:00
Sergey Ratushnuy c2f857a4d8 Fix duplicated custom fields after import products from .csv file 2020-01-29 13:09:27 +02:00
Rodrigo Primo f06ad5d78a Replace removed WordPress.Security.NonceVerification.NoNonceVerification
WordPress Coding Standard 2.0 removed the sniff
WordPress.Security.NonceVerification.NoNonceVerification:

```
The WordPress.Security.NonceVerification sniff used the same error code for both an error as well as a warning.
The old error code NoNonceVerification is no longer used.
The error now uses the Missing error code, while the warning now uses the Recommended error code.
```

(from
d45f5e5cf3/CHANGELOG.md (200-rc1---2018-12-31))

This commit updates WooCommerce code and replaces all instances where WordPress.Security.NonceVerification.NoNonceVerification verification was used with either WordPress.Security.NonceVerification.Missing or
WordPress.Security.NonceVerification.Recommended. In a few cases WordPress.Security.NonceVerification.NoNonceVerification was used but was not needed, so instead of replacing the sniff, the line was removed. In two other cases, I removed other unrelated sniffs that were not needed.
2019-12-13 17:45:32 -03:00
Shamali Sulakhe 64fbb197d7 Removed patch file and merged changed with ver 3.9.0-dev 2019-11-15 17:58:54 +05:30
Yash Kapoor 9517cd7877
Update html-product-csv-import-form.php
Fixed line indentation issue on line no 52.
2019-08-23 18:22:28 +05:30
Yash Kapoor ef2d38097d
Update html-product-csv-import-form.php
Fixed escaping issue.
2019-08-23 18:04:52 +05:30
Yash Kapoor 9eed3757ae
Update html-product-csv-import-form.php
Fixed escaping issue.
2019-08-23 18:03:59 +05:30
Yash Kapoor c3c91298b5
Update html-product-csv-import-form.php
Fixed data-showtext value.
2019-08-23 17:18:01 +05:30
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
Claudio Sanches c1223e3890 Fixed meta: label 2019-07-08 18:52:03 -03:00
Rodrigo Primo 737f6af5e8 Introduce file type check for tax rate importer 2019-07-02 10:44:21 -03:00
Rodrigo Primo cabf9de71a Added nonce check to CSV importer actions 2019-07-02 10:37:46 -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 b5f89e35d1 Remove localisation 2019-04-15 14:26:49 +01:00
Mike Jolley c5b7719697 Only map if this is looks like a Shopify export. 2019-04-15 14:24:56 +01:00
John Coy 0bd52938ab Mapping for default Shopify fields
Helps to improve assigning the default Shopify columns upon upload.
2019-04-09 14:09:09 -05:00
Mike Jolley cb27b40c67 Search for 'number' anywhere in cell, not just the end 2019-04-09 14:37:46 +01:00
Rodrigo Primo 2c8d006c37 Update PHPCompatibility sniff names
The name of some sniffs changed in the most recent PHPCompatiblity version. This commit update all instances where those names are used in WooCommerce codebase.
2018-11-21 11:08:26 -02:00
Rodrigo Primo bfa9424d17 Update WPCS sniff name
The name of one of the WPCS sniffs changed from WordPress.CSRF.NonceVerification.NoNonceVerification to WordPress.Security.NonceVerification.NoNonceVerification. This commit updates all instances where this sniff is used in WooCommerce codebase.
2018-11-21 11:07:05 -02:00
Rodrigo Primo e467737653 phpcs fixes 2018-11-21 11:06:42 -02:00
jvanderveen c205cab470
Update class-wc-tax-rate-importer.php 2018-11-06 15:01:44 +01:00
claudiulodro ccdf6d0253 Simplified path check for CSV importer to cause less issues 2018-10-15 13:50:34 -07:00
claudiulodro 26b188569b Add filter for disabling file path check 2018-10-11 13:31:27 -07:00
claudiulodro acf8757636 Add path checking and fix bug 2018-10-11 13:31:27 -07:00
claudiulodro 7b19673dea Extra file type checking 2018-10-11 13:31:27 -07:00
Joey Gilham 58cdd7dad2
Merge branch 'master' into master 2018-07-03 15:41:15 +01:00
Mike Jolley 38be26e7a5 sanitize_special_column_name_regex trim 2018-06-11 14:55:36 +01:00
Mike Jolley 5cfd2f0f7a
Merge pull request #20273 from woocommerce/fix/20268
Fix broken product import file uploads on windows
2018-05-29 15:27:40 +01:00
Mike Jolley 800701adb0 Pass varaible 2018-05-29 15:25:11 +01:00
Mike Jolley 9637ada4ee Keep escape, pass link 2018-05-29 11:16:30 +01:00
Gerhard Potgieter e3a37f81ee Changes based on feedback, no need for sanitasion since wp_handle_upload alread checks 2018-05-29 07:37:25 +02:00
Remi Corson b64182162e remove wp_kses() and esc_html() 2018-05-28 12:29:26 +02:00
Gerhard Potgieter 4e40d79f84 Use wc_clean and not wp_unslash when cleaning the file path, strips out slashed on windows machines 2018-05-28 11:50:04 +02:00
Remi Corson 61b9461375 Add wp_kses() authorized tag 2018-05-28 11:44:05 +02:00
Remi Corson 4743dba7d0 Make sample tax rate URL clickable 2018-05-28 11:23:32 +02:00
Joey d815f7bad5 updated import/export functions for low_stock_amount 2018-05-27 06:00:20 +01:00
Joey b08b55a651 added changes for low stock notifications per product 2018-05-27 05:40:58 +01:00
Chris Montgomery 5c37551128 Fix infinite loop with importing tax rates (#20253). 2018-05-26 22:42:37 +00:00
Gerhard Potgieter 5b1180d81a Server files always need to be relative to ABSPATH, and use wc_clean as esc_url_raw will mess up file paths. 2018-05-25 12:57:01 +02:00
Gerhard Potgieter b1739dd21d Add functionality to handle import files hosted on server 2018-05-24 07:34:40 +02:00
claudiulodro 2ee7c62499 Add default empty step class to html-csv-import-steps.php 2018-05-10 11:59:17 -07:00
Claudio Sanches 0ac857f049 Fixed PHP notice in WC_Product_CSV_Importer_Controller->handle_upload
Fixed notice:

```
PHP Notice:  Only variables should be passed by reference in includes/admin/importers/class-wc-product-csv-importer-controller.php on line 298
```
2018-04-04 15:50:08 -03:00
Rodrigo Primo a0db877e24 phpcs fixes in includes/admin/importers/views/html-product-csv-import-form.php 2018-03-09 17:26:49 -03:00
Rodrigo Primo 9b03fff8b8 phpcs fixes in includes/admin/importers/views/html-csv-import-steps.php 2018-03-09 17:26:40 -03:00
Rodrigo Primo 924a7a5cc3 phpcs fixes in includes/admin/importers/views/html-csv-import-progress.php 2018-03-09 17:26:26 -03:00