magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.37k stars 9.28k forks source link

Import product CSV url_key for the default (without store_view_code) should not update the url key in the frontend #36905

Open erwinschaap opened 1 year ago

erwinschaap commented 1 year ago

Preconditions and environment

Steps to reproduce

  1. Create one product and update the url key so in each store view there is a different url key (see result for an example)
  2. After the creation, upload a product import CSV with that specific product sku, store_view_code empty and for the url_key a different URL-key than already used in the product (see result for an example)

Expected result

The default URL key is updating to the new url key and for the specific store_views the value for the url_key in the backoffice AS in the frontend visible is the same

default: jacked en: (default) jacked nl: jas fr: veste

import for default: sku,store_view_code,url_key 1,,jack

backoffice: default: jack en: (default) jack nl: jas fr: veste

frontend: default: jack en: (default) jack nl: jas fr: veste

The overrides are still doing their work.. This is expected

Actual result

The url_key in the backoffice for a specific store view is still the initial url_key provided by the store, but the url_key in the frontend visible is now the url_key uploaded by product CSV import.

default: jacked en: (default) jacked nl: jas fr: veste

import for default: sku,store_view_code,url_key 1,,jack

backoffice: default: jack en: (default) jack nl: jas fr: veste

frontend: default: jack en: (default) jack nl: jack fr: jack

So all urls in the frontend are now the same url for each store but in the backoffice there are overiddes. This is NOT correct!

Additional information

No response

Release note

No response

Triage and priority

m2-assistant[bot] commented 1 year ago

Hi @erwinschaap. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:

m2-assistant[bot] commented 1 year ago

Hi @engcom-Dash. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:


engcom-Dash commented 1 year ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Dash. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Dash, here is your Magento Instance: https://d9dca40b3d4faa95725e11adcc8682e0.instances.magento-community.engineering Admin access: https://d9dca40b3d4faa95725e11adcc8682e0.instances.magento-community.engineering/admin_eee2 Login: 80ffc8d7 Password: 9e9594249150

engcom-Dash commented 1 year ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Dash. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Dash, here is your Magento Instance: https://d9dca40b3d4faa95725e11adcc8682e0.instances.magento-community.engineering Admin access: https://d9dca40b3d4faa95725e11adcc8682e0.instances.magento-community.engineering/admin_be27 Login: fdd434e2 Password: 14c2d499e8d0

engcom-Dash commented 1 year ago

Hi @erwinschaap ,

Could you please the share CSV file which you are utilising while import to reproduce the issue.That would be helpful for us to understand the expected result more clearly.

Thanks.

ryanpalmerweb commented 1 year ago

We are experiencing this issue on 2.4.5-p1 too, the url keys for the store views in the admin area are ignored and the frontend is still using default scope url keys, "use default" is not ticked.

engcom-Dash commented 1 year ago

Hi @ryanpalmerweb ,

Could please share your CSV file which is utilising for this issue ,It will be very useful for to reproduce this issue.

Regards,

erwinschaap commented 1 year ago

first.csv update.csv

If you first import first.csv you have the basic settings for the product. If you then update it with the update.csv you will see that the url key in the frontend is not correct and in each store the same as the default, but in the backoffice you will see the existing url key overrides. @engcom-Dash

engcom-Dash commented 1 year ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Dash. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Dash, here is your Magento Instance: https://d9dca40b3d4faa95725e11adcc8682e0.instances.magento-community.engineering Admin access: https://d9dca40b3d4faa95725e11adcc8682e0.instances.magento-community.engineering/admin_6325 Login: 6f88942d Password: b2f615d2169d

engcom-Dash commented 1 year ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Dash. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Dash, here is your Magento Instance: https://d9dca40b3d4faa95725e11adcc8682e0.instances.magento-community.engineering Admin access: https://d9dca40b3d4faa95725e11adcc8682e0.instances.magento-community.engineering/admin_06a7 Login: f4f9e563 Password: b503b8daa422

engcom-Dash commented 1 year ago

Hi @erwinschaap ,

Thanks for Collaboration and Contribution,

Verified the issue in 2.4-develop instance,and the issue is not reproducible.

Preconditions: Magento Version 2.4-develop Instance PHP Version 8.1 Multiple Store Created.

Steps to Reproduce :

Kindly Refer the below Screenshots:

Below Screenshots before Update the URL

url1 url2 url3 url4 url5

Below Screenshots After update the CSV(New URL) file with

url6 url7 url8

We are getting expected result which is the default URL key is updating to the new url key and for the specific store_views the value for the url_key in the Backend As well as in the frontend visible is the same.So this issue is not reproducible and Kindly provide more information if the issue is still reproducible.

Let us know if we are missing anything

Regards

erwinschaap commented 1 year ago

@engcom-Dash The only difference is that we had an override in the second store view (US in your case, so not default value but another URL key). If you then update the global url key via import (so with an empty store_view_code) you will find an reproductible path

engcom-Dash commented 1 year ago

Hi @erwinschaap,

Thanks for quick response,

Issue confimred !

Verified the issue in 2.4-develop instance and its reproducible,Hence we are confirming the issue.

Preconditions: Magento Version 2.4-develop PHP version 8.1 Multi store created in admin panel

Kindly refer the below screenshots: After importing the new csv file without store view code 1.Default URL key is Update as per the New CSV file.

im2

2.The New URL key(Which is create by admin)is not Updated,its showing with Initial url key

im3

3.Front end image with Updated URL key.

im1

Steps to Reproduce:

After we update with New CSV file with New URL key,It is updated in default store view and front end customer view.But the the New url key is not updated in Specific store view(US) its showing with initial URL key.So we are getting actual result as per the description and the issue is reproducible in 2.4-develop instance,Hence we are confirming the issue.

Regards,

github-jira-sync-bot commented 1 year ago

:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-8251 is successfully created for this GitHub issue.

m2-assistant[bot] commented 1 year ago

:white_check_mark: Confirmed by @engcom-Dash. Thank you for verifying the issue.
Issue Available: @engcom-Dash, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

github-jira-sync-bot commented 1 year ago

:x: You don't have permission to export this issue.

engcom-Hotel commented 1 year ago

@engcom-Dash As per the discussion in the triage call, we need to check this issue with importing store views with the URL key.

m2-assistant[bot] commented 1 year ago

Hi @engcom-Dash. Thank you for working on this issue. Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction:


engcom-Dash commented 1 year ago

Hi @ryanpalmerweb ,

We rechecked the issue with our internal team and verified the issue in 2.4-develop instance and the issue is not reproducible.

We are getting expected result as per the description which is while updating the csv file with empty storeview code and new URL key...it is overridden all the store view(default store view and us store view) as well as front end also its updated with new URL key.

Kindly refer the below screenshots: Before updating the New URL key 1.For all store view url key

allsw001

2.For Default store view url key

def002

3.For Specific store view url key

spesw003

After updating the New URL key 1.For all store view url key

spwwithall

2.For Default store view url key

spwwithdefault

3.For Specific store view url key

spswwithglobal

Front end images with Updated URL key: 1.For Default store view url key

frnendfordefa

2.For Specific store view url key

frendforspsw

Steps to reproduce: 1.Install magento instance 2.Create Multiple store 3.Create a product with simple url key 4.After the creation, upload a product import CSV with that specific product sku, store_view_code empty with Different URl key. 5.Check all the store view URL key and Front end product URL key.

Let us know if we missing anything

Thanks!!!

engcom-Dash commented 1 year ago

Hi @erwinschaap ,

We have noticed that this issue has not been updated for a period of 14 Days.
Hence we assume that this issue is fixed now, so we are closing it. Please raise a fresh ticket or reopen this ticket if you need more assistance on this.

Thanks.

erwinschaap commented 1 year ago

Hi @engcom-Dash Is the issue fixed, and if so, where is the fix available? Is the issue already implemented and checked?

erwinschaap commented 1 year ago

@engcom-Dash I see in the previous note that you have tested it incorrect. The URL key in de stores are checked as use default, and then it is correct. But if you try without that (so not checked in both store views) you can see the problem

This is correct reproduction path: https://github.com/magento/magento2/issues/36905#issuecomment-1467858673

please take a close look at what I have said: https://github.com/magento/magento2/issues/36905#issuecomment-1466144841

dennisvanderweide commented 1 year ago

I have the same issue

erwinschaap commented 1 year ago

@engcom-Dash can you reopen this issue?

ryanpalmerweb commented 1 year ago

@engcom-Hotel can you reopen this issue?

engcom-Hotel commented 1 year ago

Sure @ryanpalmerweb @erwinschaap Let me reopen it for further process

ryanpalmerweb commented 1 year ago

@magento Has erwinschaaps feedback on the reproduction path been checked?

@engcom-Dash I see in the previous note that you have tested it incorrect. The URL key in de stores are checked as use default, and then it is correct. But if you try without that (so not checked in both store views) you can see the problem

This is correct reproduction path: https://github.com/magento/magento2/issues/36905#issuecomment-1467858673

please take a close look at what I have said: https://github.com/magento/magento2/issues/36905#issuecomment-1466144841

engcom-Dash commented 1 year ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Dash. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Dash, here is your Magento Instance: https://d9dca40b3d4faa95725e11adcc8682e0.instances-prod.magento-community.engineering Admin access: https://d9dca40b3d4faa95725e11adcc8682e0.instances-prod.magento-community.engineering/admin_56fc Login: 6b865b49 Password: b57dcc013d84

engcom-Dash commented 1 year ago

Hi @erwinschaap ,

verified the issue in 2.4-develop instance,Issue is not reproducible.Kindly refer the below video reference.

https://user-images.githubusercontent.com/60198592/234454717-0b2a6683-fa5c-49d3-aa1f-91c0fbc32d5a.mp4   The default URL key is updating to the new url key and for the specific store_views the value for the url_key in the backoffice AS in the frontend visible is the same Kindly let me know if the issue still reproducible or if we missing anything!

Thanks

erwinschaap commented 1 year ago

Hi @engcom-Dash, Before importing you first need to override in e.g. the US store the url key to another url key and after that you do exactly the same as in the video. You will see the difference at that moment,

engcom-Dash commented 1 year ago

Hi @erwinschaap ,

Verified the issue in 2.4-develop and the issue is reproducible,Hence we are confirming the issue. The url_key in the back-end for a specific store view is still the initial url_key provided by the store, but the url_key in the frontend visible is now the url_key uploaded by product CSV import.

Kindly refer the below screenshots:

Behaviour of Default store view and Specific store view After Updating the new URL key with store view code empty: 1.This is for Specific Store

Screenshot 2023-05-19 at 7 31 31 AM

2.This is for Default Store view

Screenshot 2023-05-19 at 7 31 44 AM

3.In front end Url key is updated with New URL key. <img width="1511" alt="Screenshot 2023-05-19 at 7 31 21 AM" src="https://github.com/magento/magento2/assets/60198592/e4a029be-1d94-4fa6-9216-e0305a350b4e">

Screenshot 2023-05-19 at 7 32 45 AM

Thanks.

github-jira-sync-bot commented 1 year ago

:x: Cannot export the issue. This GitHub issue is already linked to Jira issue(s): https://jira.corp.adobe.com/browse/AC-8251

github-jira-sync-bot commented 1 year ago

:x: You don't have permission to export this issue.

engcom-Bravo commented 1 year ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Bravo, here is your Magento Instance: https://d9dca40b3d4faa95725e11adcc8682e0.instances-prod.magento-community.engineering Admin access: https://d9dca40b3d4faa95725e11adcc8682e0.instances-prod.magento-community.engineering/admin_2ce4 Login: cb36e831 Password: 914a98c60894

engcom-Bravo commented 1 year ago

Hi @erwinschaap,

Thank you for reporting and collaboration.

Verified the issue on Magento 2.4-develop instance and the issue is reproducible.Kindly refer the screenshots.

Steps to reproduce 1.Create multiple store views. 2.create a product. 3.change the url key for one of the store view by unchecking the default value. 4.Import the CSV file.

We have changed URL-KEY for english store view to Config after importing it should not change to global because we have unchecked use default value.After importing it is showing correctly in admin but with that URL-KEY we are not able to access the product.

Simple-Products-Inventory-Catalog-Magento-Admin (4)

Screenshot 2023-05-23 at 5 47 10 PM

For default store view it is working fine because we have not unchecked the use default value.When we import CSV file with store view code it will update values for all store views.for english store view it will not update because we have unchecked use default value.

Screenshot 2023-05-23 at 5 31 19 PM

Hence confirming the issue.

Thanks.