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
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
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
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
Mike Jolley
b72268172a
Fix image matching queries
2017-10-12 16:32:40 +01:00
Mike Jolley
a8ab4860ca
Reverse image logic in get_attachment_id_from_url
...
Closes #16905
2017-09-25 12:58:25 +01:00
claudiulodro
24e9f80f1a
wc_get_attribute_taxonomies returns objects
2017-08-18 09:17:04 -07:00
Mike Jolley
90f0a835b1
Fix filename image handling
2017-08-08 15:00:03 +01:00
Claudio Sanches
1a9b499be8
Apply attribute helper functions to importers and REST API
2017-08-07 22:34:25 -03:00
Jaydeep Rami
46d3638089
Fix missing return statement ( #16148 )
...
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
2017-07-20 18:01:14 +01: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
Mike Jolley
eb5c6d688b
Added method to escape commas in CSV values
2017-07-03 14:47:48 +01:00
Mike Jolley
26b98bc3df
Fix notice and return correct attribute ID
2017-06-27 14:39:30 +01:00
Claudiu Lodromanean
9399a8dca2
Merge pull request #15702 from woocommerce/fix/15697
...
Correctly map attribute labels to names
2017-06-20 14:46:45 -07:00
Mike Jolley
6a6aca4132
Correctly map attribute labels to names
...
Fixes #15697
2017-06-20 14:15:35 +01:00
Frédéric Demarle
4960af34aa
Add an action before importing a row
2017-06-20 14:25:23 +02:00
Claudiu Lodromanean
b9842b6f21
Merge pull request #15615 from woocommerce/update/15576
...
Prevent memory and time limits in importer
2017-06-14 10:20:29 -07:00
Mike Jolley
4dea3ece8a
Fix memory limit detection on some systems
2017-06-14 18:16:39 +01:00
Mike Jolley
0de65b3a8d
Start time
2017-06-14 17:04:47 +01:00
Mike Jolley
fdc6c46e80
Clear slug for placeholder products
2017-06-14 16:37:21 +01:00
Mike Jolley
77cee56ae8
Prevent memory and time limits
2017-06-14 14:02:47 +01:00
Frédéric Demarle
08e30450b5
Add action after a product has been imported
2017-06-09 08:30:22 +02: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
Claudio Sanches
d6fb028481
Allow import and create new global attributes
2017-05-30 18:46:32 -03:00
Claudio Sanches
6d54ae3504
Fetch product ID for temporary products only while processing the item
2017-05-26 19:57:31 -03:00
Claudio Sanches
2eeb444eeb
Properly set stock quantity
2017-05-26 18:53:22 -03:00
Claudio Sanches
780ce1a4e6
Fixed deprecated `set_stock` notice
2017-05-26 18:42:07 -03:00
claudiulodro
c96f8b5bc1
Better unset
2017-05-26 12:16:38 -07:00
claudiulodro
00d37412eb
Accidentally reverted a fix
2017-05-26 11:37:12 -07:00
claudiulodro
d362d47995
Get external products working
2017-05-26 11:26:55 -07:00
Mike Jolley
dcdd44ae67
Use correct keys for images
2017-05-26 18:09:49 +01:00
Mike Jolley
dbd0f3dce0
error message
2017-05-26 16:56:37 +01:00
Mike Jolley
3a7f4884d8
Moved logic around and organised
2017-05-26 15:57:17 +01:00
claudiulodro
fc05af3514
Phpcs fixes
2017-05-25 12:53:32 -07:00
Mike Jolley
c31ab30391
Create temp objects to update later
2017-05-25 14:54:49 +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
66d7aabe6c
Added full support for variations in importer
2017-05-24 07:26:57 -03:00
Claudio Sanches
83f08ec18d
Set attribute as visible by default
2017-05-24 05:43:15 -03:00
Claudio Sanches
60dd750a7b
Handle product attributes
2017-05-24 04:32:28 -03:00
Claudio Sanches
2c5c0133f3
meta_data is always an array
2017-05-24 03:35:53 -03:00
Claudio Sanches
b10f3a3be9
Fixed coding standards
2017-05-24 03:26:17 -03:00
Claudio Sanches
babc38822a
Handle featured image and gallery
2017-05-24 03:14:54 -03:00
Claudio Sanches
a07dc188d0
Parse and save downloads
2017-05-23 22:31:06 -03:00