Commit Graph

72 Commits

Author SHA1 Message Date
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
Claudio Sanches 0946fd04cf Allow import and export draft products
Closes #17722
2017-12-06 18:32:35 -02:00
claudiulodro ee445b6ee5 Importer/Exporter backorder compatibility 2017-11-22 11:48:19 -08:00
Mike Jolley 9f059e17a9 Add helper function instead of calling method, and restore old method for bw compat 2017-11-08 15:07:00 +00:00
Gerhard Potgieter 7b9fb6c0cb Change nocache_headers hook firing (#17540)
* wp hook is too late to fire the nocache_headers filter, some caching plugins read it before that it seems.

* Create do_not_cache_page helper function and call that instead of nocache_headers

* Must add checks to prevent caching on certain pages as well

* Nothing to return
2017-11-08 14:27:30 +00:00
Mike Jolley c1d86b9994 Split up skip logic 2017-10-30 12:15:32 +00:00
Diego Zanella 3576025036 Added filter to process meta to be exported 2017-10-30 10:19:57 +00:00
claudiulodro 981b2bc445 Escape attribute name commas in CSV exporter 2017-10-26 09:40:35 -07:00
Claudio Sanches 0b3811bd11 Change Position key from 'position' to 'menu_order' 2017-08-22 16:46:09 -03:00
Claudio Sanches af23ad42d7 Included "position" (menu_order) to exported products 2017-08-22 16:33:19 -03:00
Nick Hoobin 25038f6d0f Add a filter to arguments passed to wc_get_products during prepare_data_to_export() 2017-07-18 10:38:36 -05:00
Jaydeep Rami 3522857d23 Fix typo in WooCommerce plugin (#16135)
* Fixed typo

* Fixed more typo

* Fixed more typo

* Fix tyop

* Fix more typo

* Fix more typo

* Fix typo

* Fix typo

* Fix typo

* Fix typo datatime object

* Fix short name of compat

* Fix typo: update short name

* Fix typo "deactive" to "deactivate" and short BW - Compat

* Fix typo "Backwards compat"

* Fix typo 'parameters'

* Fix more typo 'pararmeters'

* Fix typo 'compund'

* FIx typo order

* Fix typo

* Fix typo 'incorrecly'

* Fix typo 'genarate'

* Fix typo 'reletive'

* Fix typo 'Handly'

* Fix typo 'rotatated'

* Fix typo

* Fix typo 'additonal'

* Fix typos
2017-07-17 11:10:52 +01:00
Caleb Burks 817efb551c Pass $column_id into export filter 2017-07-03 23:32:44 -05:00
Claudio Sanches 4b716ce269 Merge pull request #15943 from woocommerce/update/15926
Added method to escape commas in CSV values
2017-07-03 11:33:43 -03:00
Mike Jolley eb5c6d688b Added method to escape commas in CSV values 2017-07-03 14:47:48 +01:00
Mike Jolley 280a9a625c Merge pull request #15931 from woocommerce/update/skip-meta-filter
Update/skip meta filter
2017-07-03 10:41:40 +01:00
Mike Jolley ccba0a665e Rename function and include less args 2017-07-03 10:38:29 +01:00
Caleb Burks b127a67ed8 Add filter to skip metas from being exported 2017-07-02 03:14:24 -05:00
Caleb Burks b7ad5e18fc Export metadata along with custom columns 2017-07-02 02:21:58 -05:00
Mike Jolley 5c2a69c668 Add BOM for excel 2017-06-23 17:19:50 +01:00
Mike Jolley 712c281fb7 Add tax class and status to export
Fixes #15663
2017-06-19 14:01:52 +01:00
Mike Jolley 1696a036a8 Use fputcsv to fix escaping 2017-06-10 15:43:38 +01:00
Mike Jolley a013a41872 Fix escape 2017-06-09 13:40:11 +01:00
Mike Jolley 0d99ce626c Increase limit to 50 2017-06-09 12:21:46 +01:00
claudiulodro 992c1cce63 Add filter to exporter default column names 2017-06-02 11:46:27 -07:00
claudiulodro 63069976cf Order ASC in exporter 2017-06-01 11:52:14 -07: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 4a98844bb8 Shows if attribute is visible in exported data 2017-05-30 18:58:45 -03:00