Commit Graph

99 Commits

Author SHA1 Message Date
Adel Tahri 859a041e80
Update abstract-wc-csv-batch-exporter.php
Update "Exit if accessed directly"
2019-10-31 15:58:54 +01:00
Rafsun Chowdhury 59c503b1c7
Update with suggested review changes 2019-10-05 19:47:16 +06:00
Rafsun Chowdhury b3d21cb8ae
Added delimiter property with filter
Added support for custom delimiter #24579
2019-10-03 08:43:04 +06:00
Claudiu Lodromanean 86f05bbd7a
Merge pull request #22320 from Prospress/fix/22197
use slug sanitization on product export category slugs
2019-01-16 09:31:43 -08:00
Ron Rennick 1d05cf3d91 phpcs sniff fixes for class-wc-product-csv-exporter.php 2019-01-09 10:21:24 -04:00
Ron Rennick 74c9f16377 use slug sanitization on product export category slugs 2019-01-09 10:17:55 -04:00
Mike Jolley b4427e0c25 Merge branch 'pr/22298' 2019-01-09 13:51:30 +00:00
Claudiu Lodromanean 2f82039869
Merge pull request #21938 from Prospress/fix/21935
Unescape imported escaped CSV formulas in product attributes
2019-01-02 11:59:39 -08: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 c1cb73c00f phpcs sniff fixes in class-wc-product-csv-exporter.php 2018-12-26 14:54:46 -04: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
Ron Rennick 9c3fbc304e only prepend CSV content triggers with a ' on export 2018-11-15 15:49:25 -04:00
Ron Rennick 5b486a1e2f allow export and display of attribute labels containing html special characters 2018-11-09 09:17:18 -04:00
Claudiu Lodromanean 11911aa2ea
Merge pull request #20870 from woocommerce/add/export-products-based-on-category
Add category filter to product export functionality.
2018-08-08 08:51:58 -07:00
Gerhard Potgieter 1f4e86bd83 Allow exporting of variations for a parent product when a category is selected since variations are not tied to a category. 2018-08-08 14:45:57 +02:00
Gerhard Potgieter b9a28b7ec2 Allow for multiple category selections when exporting. 2018-08-07 16:58:39 +02:00
Claudiu Lodromanean 87acfa731d
Merge pull request #20260 from leglesslizard/master
Set low stock notification threshold per product
2018-07-24 10:23:15 -07:00
Gerhard Potgieter 865f724187 Add category filter to product export functionality. 2018-07-23 11:59:01 +02:00
Khan M Rashedun-Naby 90b6f98582 PHPDoc | Return type changed to string from array. 2018-07-20 22:59:41 +06:00
Khan M Rashedun-Naby eb104ecd17 PHPDoc | Return type changed from array to string. 2018-07-20 22:53:16 +06:00
ldybecklee a7de4672dc
Update class-wc-product-csv-exporter.php 2018-07-17 12:10:55 +08:00
ldybecklee 0cf070ed5e
fix method 'get_column_value_stock' 2018-07-17 12:09:34 +08:00
ldybecklee 327fd26c70
Fix product csv exporter get stock value
seems the original get stock value is wrong, but I'm not sure if my change is correct...
what i'm considering is this line:  if ( $product->is_type( 'variation' && 'parent' === $manage_stock ) ) {
2018-07-11 17:28:50 +08:00
Joey cd8416122f removed low stock options for variations, and addressed changes 2018-06-19 12:40:27 +01: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
Mike Jolley e6ddc65c2a Wrap cell in ' rather than prepend 2018-05-11 12:16:02 +01:00
Gerhard Potgieter bfa2b017d1 Include pending products in the export 2018-05-02 07:47:55 +02:00
Gerhard Potgieter 3f87b3e009 Include scheduled products in the export. 2018-04-30 07:36:00 +02:00
Mike Jolley 5d4561240a Handle escape characters for fputcsv 2018-04-10 18:08:56 +01:00
Gerhard Potgieter 38892f3067 PHPCS passing for abstract-wc-csv-exporter.php 2018-03-06 07:55:15 +02:00
Gerhard Potgieter 1c191688f8 PHPCS passing for abstract-wc-batch-exporter.php 2018-03-06 07:52:03 +02:00
Claudiu Lodromanean f56fff18d9
Merge pull request #18322 from woocommerce/fix/importer-file-names
Importer file names
2018-01-02 08:10:20 -08:00
Mike Jolley 4e996ce268 Check for mb_detect_encoding support 2018-01-02 13:55:11 +00:00
Mike Jolley 46c51bb3a6 Allow filename to be set from javascript 2018-01-02 13:16:43 +00:00
Claudio Sanches 71a1fd319e Fixed coding standards 2017-12-21 15:53:12 -02:00
Claudio Sanches c18cc47286 Format prices while exporting products 2017-12-21 15:43:45 -02:00
Claudiu Lodromanean 4f94d9dbbc
Merge pull request #18247 from AdamQuadmon/wc-exporter-custom-filters
Add product export row action hook
2017-12-21 06:02:56 -08:00
Luciano Amodio 1b42973b75 Add export ajax query args and filename filter hooks
`woocommerce_export_get_ajax_query_args` let you pass args to ajax actions
`woocommerce_{$this->export_type}_export_get_filename` let you change the filename
2017-12-20 21:20:02 +01:00
Luciano Amodio bec2e939b4 change filter name 2017-12-19 18:25:16 +01:00
Luciano Amodio 8983b38598 change filter name and position `woocommerce_product_export_get_limit` 2017-12-19 17:18:55 +01:00
Luciano Amodio f383886fb5 fix not needed double quotes 2017-12-19 14:51:23 +01:00
Luciano Amodio 4d267c0dbb Rename exporter filter to `woocommerce_product_export_init`
moving it in the abstract constructor and let it be more generic now is possible to do:
```
add_filter( 'woocommerce_product_export_init', function ( $exporter ) {
  if( 'product' === $exporter->export_type ) {
    $exporter->set_limit(100);
  }
});
2017-12-19 13:50:37 +01:00
Luciano Amodio 27dd962be7
Add WC Product CSV Exporter limit filter
with tons of products is nice to have an way to change the limit for the exporter (now is set to 50)

'''php
function wc_exporter_set_limit($limit) {
  return 1000;
}
add_filter( 'woocommerce_product_export_product_default_limit', 'wc_exporter_set_limit');
'''
2017-12-16 13:49:21 +01:00
Nathan Dawson 28a54fe983 Fix calculation of total rows exported 2017-12-12 19:33:48 +00:00
Mike Jolley 03db5c4590
Merge pull request #18048 from woocommerce/fix/17722-2
Allow import and export draft products
2017-12-07 14:29:50 +00:00
Mike Jolley 91887b918f phpcs 2017-12-07 12:31:30 +00:00
Mike Jolley cadfcfc11f phpcs 2017-12-07 12:21:01 +00:00
Mike Jolley d3cd420c0a Format data of headers 2017-12-07 12:15:39 +00:00