Comments (9)
Ah, yes indeed, this is a recent addition, and I haven't added it to the Rest API.
Hold on, I'll get right at it.
from product-import.
Thanks Chris!
Images can be replaced by changing the "image strategy", as follows:
$config->imageStrategy = ImportConfig::IMAGE_STRATEGY_SET;
In stead of escaping the category, you can specify a different category path separator with the property "categoryNamePathSeparator", for example "Default Category#Car Parts#Brakes#Seals / Repair Parts"
$config->categoryNamePathSeparator = "#";
If you're using XML import, look for the options path-separator
and image
.
from product-import.
Hi Patrick,
Many thanks for the speedy reply. I'm using XML via Rest.
I can see the notes for path-separator
but not image
here https://github.com/bigbridge-nl/product-import/blob/master/doc/xml-webapi-import.md
Am I looking in the wrong place?
from product-import.
That's the right place, but I forgot to document this option. It should read:
image=set
I updated the page just now.
from product-import.
Great, thanks for the updated info. I'd managed to find it digging into the source code and also found another option I can't find in the documentation.
In this file vendor/bigbridge/product-import/Api/ImportConfig.php
public $categoryStrategy = self::CATEGORY_STRATEGY_ADD; const CATEGORY_STRATEGY_ADD = 'add'; // Only add and update category links const CATEGORY_STRATEGY_SET = 'set'; // Add and update category links; and also remove existing category links not named in the import
But I can't see this option in the following file;
vendor/bigbridge/product-import/Api/ProductImportWebApi.php
Is this as simple as me adding the option in or is the functionality not working?
from product-import.
Great, will keep an eye out for the next release.
from product-import.
I went through all options in the cli command and the Rest API. I put the options in the same order and added documentation.
Created a new release: 1.5.3
from product-import.
Thank you, all working as expected now.
from product-import.
That's good to hear. For now I'll close this issue, and if you find anything else, just open a new issue.
from product-import.
Related Issues (20)
- website_codes restapi HOT 4
- How to use the programming library to import products HOT 3
- Restapi update url issue HOT 15
- Category flat url structure HOT 9
- Image import creates hardlinks HOT 9
- Please provide example of how to use post method with webapi? HOT 11
- Saving product on storeview scope overwrites storeview attribute values with global values HOT 4
- How to set salable quantity ? HOT 5
- Export category attribute values HOT 2
- Trying to get property 'path' of non-object in Model/Resource/Storage/UrlRewriteStorage.php on line 376 HOT 1
- How to set out of stock threshold for backorders ? HOT 4
- Importing library fails after clearing all products HOT 1
- The setSelectAttribute method does not fill swatch input on Text Swatch HOT 3
- Module shouldn't rely on magento2-base package to exist HOT 3
- Fetching Magento configurations isn't working as expected HOT 3
- Generated Url key already exists HOT 1
- Clear Cache after change per product ID HOT 1
- PHP 8 Compatibility HOT 1
- Choose Affected Attribute Set prompt when saving configurable product
- Can't set is_in_stock = 0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from product-import.