Comments (7)
Hey @sprankhub
This is now available in version 1.4.0 of this module, you can configure this using:
Stores > Configuration > Catalog > Url Data Integrity Checker
The option is disabled by default, so you'll need to enable it.
An added benefit of this, is that it makes the product url checkers a lot faster and uses fewer memory, if you have a lot of invisible products on your shop.
Thanks for the suggestion!
from magento2-module-url-data-integrity-checker.
Ah, a configurable with simples, that didn't come to mind yet, thanks for the clarification!
I'm still not 100% convinced since if you would generate the products in Magento 2 backoffice they would all have a unique url_key, so I'm considering this more of a bug in the migration process or in the import process if that causes duplicated url_key's.
But I'll see what we can do with an extra option.
Thanks for the suggestion!
from magento2-module-url-data-integrity-checker.
Hi @sprankhub
Thanks for the feedback.
I'm not really in favor of this because once you put a product to visible and it has an incorrect url_key it will generate an incorrect url rewrite.
Suppose a shopowner is preparing some product information in the backoffice while keeping the product invisible and at at certain moment wants to put it visible. In that case it would still be good - in my opinion - if the tool reports issues with that products' incorrect url_key.
from magento2-module-url-data-integrity-checker.
That is indeed a fair point. However, if you have a lot of configurable products, where the simple products are usually not visible individually, this can lead to a lot of false positives. Yes, theoretically, the URL key should be unique. However, after migrating from M1 or importing data from other systems, they may also be the same.
Do you think it would make sense to have an option for that?
from magento2-module-url-data-integrity-checker.
I'm considering this more of a bug in the migration process or in the import process if that causes duplicated url_key's
In theory, you are right. In practice, M1 had the same URL key for all simple products assigned to a configurable product. Hence, if you simply migrate the M1 data (e.g. via the data migration tool), which is not unusual, you'll exactly get that issue.
Thanks!
from magento2-module-url-data-integrity-checker.
Thanks, @hostep! Awesome!
from magento2-module-url-data-integrity-checker.
Ah, a configurable with simples, that didn't come to mind yet, thanks for the clarification! I'm still not 100% convinced since if you would generate the products in Magento 2 backoffice they would all have a unique url_key, so I'm considering this more of a bug in the migration process or in the import process if that causes duplicated url_key's.
But I'll see what we can do with an extra option.
Thanks for the suggestion!
Actually, you can create the products in the backoffice with same url key.
When creating the variants for the configurable products, then they will all get a different name (and thereby also a different url, key). However, if you decide to rename all the variants to the same name before saving, then they will all also get the same url key.
IMO it is a strange decision to give all your variants the same name, but none the less, we actually had a customer who decided to do just that.
So it means that it is not only happening when migrating from M1, but can also happen when working in M2.
Thanks for the new setting @hostep and thanks @sprankhub for debugging and raising the issue.
from magento2-module-url-data-integrity-checker.
Related Issues (20)
- Pagers in admin grids on Magento 2.4.0 no longer work properly
- Issue Data Integrity - Product Url Key HOT 4
- Killed Integrity Urlkey process in console HOT 7
- Detect url_key's which aren't normalized HOT 8
- Call to undefined method on all backend views / incompatible with firecheckout HOT 5
- magento/framework exception on grids HOT 3
- CLI commands do not work on Magento 2.4.1 HOT 3
- An unexpected exception occured: 'We are already refreshing the product url key's, just have a little patience HOT 1
- Product has a non-null url_path attribute HOT 10
- Feature request: Check url rewrites of disabled products pointing to non existing categories
- Can't find category with id / We are already refreshing the category url key's, just have a little patience 🙂 HOT 10
- Memory exhausted HOT 2
- Area code is already set HOT 3
- catalog:product:integrity:urlkey shows false positives HOT 5
- file not found HOT 5
- Are url_path really needed currently? HOT 2
- Support for PHP 8.2 HOT 2
- Regarding, product url path.. HOT 1
- Detect missing url_path's of categories on a certain storeview
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 magento2-module-url-data-integrity-checker.