Coder Social home page Coder Social logo

Comments (7)

hostep avatar hostep commented on September 20, 2024 4

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.

hostep avatar hostep commented on September 20, 2024 1

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.

hostep avatar hostep commented on September 20, 2024

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.

sprankhub avatar sprankhub commented on September 20, 2024

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.

sprankhub avatar sprankhub commented on September 20, 2024

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.

sprankhub avatar sprankhub commented on September 20, 2024

Thanks, @hostep! Awesome!

from magento2-module-url-data-integrity-checker.

mortenbirkelund avatar mortenbirkelund commented on September 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.