Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assigning attribute as variant attributes triggers overriding variant name #15318

Open
KarolJagodzinski opened this issue Jan 26, 2024 · 5 comments
Assignees
Labels
bug merchant Merchant Experience team topics triage

Comments

@KarolJagodzinski
Copy link

What are you trying to achieve?

Assigning attributes shouldn't have any impact on variant name

Steps to reproduce the problem

  1. Create a product with variants.
  2. There are two cases: Create a variant with SKU, and a variant without SKU
  3. Assign an attribute to product type as a variant attribute
  4. You will notice that variant name without SKU is changed to Saleor ID, and a variant name with SKU is changed to SKU

What did you expect to happen?

There shouldn't be any impact on variant name

Logs

No response

Environment

Saleor version: dashboard v3.18.2, core v3.18.12

@maarcingebala maarcingebala added the merchant Merchant Experience team topics label Feb 12, 2024
@teddyondieki
Copy link
Contributor

I was able to reproduce this bug and would like to help fix it @maarcingebala

@slawekmarszalek slawekmarszalek changed the title Bug: Assigning attribute as variant attributes triggers overriding variant name Assigning attribute as variant attributes triggers overriding variant name Feb 13, 2024
@IKarbowiak
Copy link
Member

Go on @teddyondieki 🚀. I assigned you to this issue

@teddyondieki
Copy link
Contributor

teddyondieki commented Mar 2, 2024

@IKarbowiak I propose adding a checkbox on the ProductType page that would let users Overwrite Product Variant Names. What do you think about the approach? Can I go ahead? It would require frontend work too.

@IKarbowiak
Copy link
Member

Hi @teddyondieki.
I think we should go with the most straightforward solution, and just not change the variant SKU if it's already set.

@teddyondieki
Copy link
Contributor

@IKarbowiak I have a PR that addresses this issue. I would appreciate your review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug merchant Merchant Experience team topics triage
Projects
None yet
Development

No branches or pull requests

5 participants