elgentos / magento2-regenerate-catalog-urls

This extension adds console commands to be able to regenerate; a product rewrite URL based on its url path; a category rewrite URL based on its url path; a category URL path based on its URL key and its parent categories.
MIT License
266 stars 75 forks source link

Multi Store site magento 2.3.3 not generate the url correctly #41

Closed vandark25 closed 3 years ago

vandark25 commented 4 years ago

Hello 2020-09-29

When we generate a url for example in the language portgues, instead of generating the url based on the name of the category in Portuguese, generates it with the default language ( english ) and does not change the url field within your language.

BAD URL: /cuchilleria/navajas/navajas -de-barbero.html

Requested URL /cutileria/navaljas/navalhas-do-barbero.html

peterjaap commented 4 years ago

What's the command you are running?

vandark25 commented 4 years ago

php bin/magento regenerate:category:url --store=6 358 or php bin/magento regenerate:category:path --store=6 358

in both cases the url of scope 6 not change the checkbox "use default value" and dont put the name of category on the selected language

peterjaap commented 4 years ago

Sorry my Portuguese is non-existent. Could you supply me with the values in the default store and in store code 6 for both the product and the category?

vandark25 commented 4 years ago

Values on Admin value and spanish value (defatult) Store id 0 and spanish its 1 (but use default values) /cuchilleria/navajas/navajas -de-barbero.html Value for Store id 0 /cutileria/navaljas/navalhas-do-barbero.html Values for store id 6

spanish image

peterjaap commented 4 years ago

I have the feeling this is similar to #27 and #28 which should have been fixed with #33. Are you sure you're running the latest version?

vandark25 commented 4 years ago

Yes 0.2.5 "name": "elgentos/regenerate-catalog-urls", "version": "0.2.5", "source": { "type": "git", "url": "https://github.com/elgentos/regenerate-catalog-urls.git", "reference": "0274f47663309671134b87ced0683f3b75896d66"

peterjaap commented 4 years ago

Well actually 0.2.6 is the latest version (since yesterday) but that shouldn't matter in this case.

What if you delete the offending url rewrites before you regenerate them?

vandark25 commented 4 years ago

It's the same

All the urls I'm trying to create don't exist yet

vandark25 commented 4 years ago

Any help for this ?

peterjaap commented 4 years ago

Sorry I don't have a lot of time right now. Maybe you can try one of this (deprecated) alternative to this extension and see if thesame thing happens there.

peterjaap commented 4 years ago

Or this one; https://github.com/olegkoval/magento2-regenerate_url_rewrites

peterjaap commented 4 years ago

Let me know if that fixes it for you so I know whether the problem is in the extension or in your particular installation.

vandark25 commented 4 years ago

Oleg's extension, we have used it several times, the problem is that now with the big shop, the generation of the categories takes a long time and the process ends up shutting down before it is finished

On the other hand, your extension ends after a few seconds, but it does not do it well

vandark25 commented 4 years ago

The others extensións don't works. Oleg create the Firts level but not the intermediate levels and stuck the database. The other code show a mysql error

peterjaap commented 4 years ago

Since I can't reproduce the error on my end and the other two extensions also don't work, the most likely cause is in your installation, and not in the extension, and I won't be able to help you with that.

vandark25 commented 4 years ago

And could you check my installation?

peterjaap commented 4 years ago

No sorry.

On Mon, 5 Oct 2020 at 13:55, Mariano notifications@github.com wrote:

And could you check my installation?

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/elgentos/regenerate-catalog-urls/issues/41#issuecomment-703583120, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADJKAFRI4FS6MLYFXOHJPDSJGXZ7ANCNFSM4R56RWSA .

paugnu commented 3 years ago

Hi,

After a lot of investigation, I've found that:

When they execute: $path = $product->getData('url_path');

This might return the path for the default store view. I'll check if I can solve this somehow...

peterjaap commented 3 years ago

@paugnu yes, see the Readme; https://github.com/elgentos/regenerate-catalog-urls#whats-the-difference-between-url_key-and-url_path

peterjaap commented 3 years ago

Closing this issue since it seems to be related to url_path values still being present in a non-2.1 Magento install.