Comments (9)
Chris, I created release 1.6.0 for this feature.
To activate it, add the url parameter category-url-type=flat
Try it out and let me know if it works as you expect.
from product-import.
@chrisastley can I close this?
Yes, sorry. All working as expected. Thank you.
from product-import.
I will look into this in a few days.
Thanks for the documentation improvement, Chris!
from product-import.
Hi,
As a temporary workaround I have had to comment out lines in vendor/bigbridge/product-import/Model/Resource/Resolver/CategoryImporter.php
$urlKey = $this->nameToUrlKeyConverter->createUniqueUrlKeyFromName($categoryName, $existingUrlKeys);
//if (count($idPath) === 2) {
$urlPath = $urlKey;
//} else {
// $parentUrlPath = $this->getParentUrlPath($parentId);
// $urlPath = $parentUrlPath . '/' . $urlKey;
//}
$targetPath = "catalog/category/view/id/" . $categoryId;
from product-import.
Hi Chris,
Thanks for the code example, I can use it.
If the categories have flat paths, does that mean that the products should have flat url keys as well?
The importer does not change categories. It only creates them. It identifies them by their admin-name. The code only updates the children_count of existing categories.
from product-import.
I've only ever used flat product paths without the category but can't imagine a scenario where you would have the category path in the product but a flat category structure as you would normally use the full category path and not a single category.
from product-import.
Ok, that was just a thought.
I am working on this feature; hope to complete it somewhere next week. I will not make a habit of supporting third-party extensions, but this one seemed acceptable. :)
from product-import.
Thank you. I have just tried to update via composer but the new version doesn't appear to be available yet. Will try again shortly.
from product-import.
@chrisastley can I close this?
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
- 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.