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

Magento 2.1 CE, Cannot change attribute set for bundled product #5999

Closed
orbitrod opened this issue Aug 5, 2016 · 23 comments
Closed

Magento 2.1 CE, Cannot change attribute set for bundled product #5999

orbitrod opened this issue Aug 5, 2016 · 23 comments
Labels
Area: Frontend bug report Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release

Comments

@orbitrod
Copy link

orbitrod commented Aug 5, 2016

Preconditions

  1. Magento ver. 2.1.0 CE
  2. PHP 7.0.9

Steps to reproduce

  1. Find/Create bundled product in admin with attribute set of "Default"
  2. Edit bundled product and change attribute set from "Default" to another set.

Expected result

  1. Page should refresh with new attributes from newly assigned set.

Actual result

  1. Page attempts to refresh, but hangs with the Please wait overlay.
    capture
  2. Chrome console reports "Uncaught TypeError: Cannot read property 'length' of undefined"
    capture
@orbitrod orbitrod changed the title Cannot change attribute set for bundled product Magento 2.1 CE, Cannot change attribute set for bundled product Aug 5, 2016
@sean-breeden
Copy link
Contributor

I have the same problem. Same specs and error.

@s00071609
Copy link

Same issue. So many bugs

@orbitrod
Copy link
Author

orbitrod commented Aug 9, 2016

Does anybody know if there is a way to change the attribute set of a product, other than doing it on the edit product page?

I tried creating new bundle products with the correct attribute set, but I get the same error when trying to create a new product.

@mikelevy300
Copy link

I'm having the same issue with simple products. The error occurs both when editing an existing product and when creating a new product. I'm on Magento CE 2.1.0 with PHP 5.6.20

@orbitrod
Copy link
Author

@sean-jamersan @s00071609 @mikelevy300 Have any of you guys, been able to figure out solution or workaround for this error? Or are you still having the same problem?

I tried creating new bundle products with the correct attribute set at the outset. But I get the same hanging error when created a new bundled product, that I get when trying to edit the attribute set of an existing product.

As a last resort, I tried manually changing the attribute set in the database. Which at first, seems to have solved the problem. After manually changing the attribute set, I see that the product reflects the new set. But when I try to make changes to the product and save it, I get a lot of errors. So I don't think manually changing the attribute set, in the db, is the way to go.

@TClilMouse
Copy link

I have the same issue but here is my console error message.

TypeError: $data.recordData(...) is undefined
knockout.js%20line%202624%20%3E%20Function:1:69

@mikelevy300
Copy link

I think I found a workaround. For me it seems like the root issue was the price attribute not being in the 'Product Details' group of my destination attribute set.

Before I started tinkering, my destination attribute set had a 'Prices' group where the price attribute was located. When I moved the price attribute out of the 'Prices' group back into the 'Product Details' group and deleted the 'Prices' group, I was able to change the attribute set for my product to the destination attribute set without any problem.

Not sure if that's just a very specific example relevant to just me, but wanted to share that finding nonetheless.

@TClilMouse
Copy link

Thank you for the direction. No more issue after adding the "Bundle Items" group in my destination attribute set.

@AVoskoboinikov
Copy link
Contributor

Hi guys,

Do you still experiencing this issue? I've tried it on new CE version 2.1.1 with sample data and it works fine for me from the scratch. Can anyone of you recheck it and provide detailed steps how I can reproduce it?

Thanks!

@TClilMouse
Copy link

Same issue in 2.1.1.
Just delete the "bundle Items" group in your attribute and you can reproduce it.

@AVoskoboinikov
Copy link
Contributor

Hi there,

Thanks for help. I've managed to reproduce it so I created internal ticket (#MAGETWO-58212) for it. This issue will be closed after fix.

Thanks for contributing!

@AVoskoboinikov AVoskoboinikov added the Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development label Sep 9, 2016
@AVoskoboinikov AVoskoboinikov removed their assignment Sep 12, 2016
@flipflap
Copy link

Hi there, for me it works without "bundle items". But it fails if I move "price type" out of "product details.

@Achitakayoh
Copy link

Same as flipflap. You should avoid moving "price type AND price" out of "product details".

@cchamikara
Copy link

I had the same issue with 2.1.7 EE , in my case we have upgraded our store from 2.0.15 EE to 2.1.7 EE and with 2.1.x versions I noticed that there is a new attribute Group called "Bundle Items" which wrapped "shipment_type" attribute.

So to resolve the issue I have manually "Bundle Items" group wrapped with "shipment_type" attribute to each custom Attribute sets and it resolved the issue

screen shot 2017-07-22 at 9 55 19 pm

@magento-engcom-team magento-engcom-team added Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development bug report Area: Frontend Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed labels Sep 11, 2017
@magento-engcom-team magento-engcom-team added develop Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release labels Oct 6, 2017
@davidverholen
Copy link
Member

same problem here with 2.1.9
Although the target attribute set has the Bundle Items group including the shipment_type and also the price attributes are still under the Product Details group

@davidverholen
Copy link
Member

actually this seems to happen with any attribute from the default attribute set, which is missing in the custom target attribute set

@colinwolff
Copy link

colinwolff commented Oct 17, 2017

I'm also having the same issue but with a simple product. When trying to switch from Default to another custom attribute set the page just hangs.

Magento 2.1.9 CE

Console error shown below:
image
Has anyone found a workaround till a bugfix is released? I've tried everything mentioned above.
Thanks!

@davidverholen
Copy link
Member

@colinwolff are you sure that your custom attributeset has (at least) every attribute from the default attribute set? That "solved" it for us immediately

@OmegaPT
Copy link

OmegaPT commented Dec 21, 2017

Hi guys need some help magento 2 version 2.1.9 cannot change to my new attribute, only loading loading. :(

http://prntscr.com/hqr532

@orbitrod
Copy link
Author

@TClilMouse's and @cchamikara's solution worked for me. My destination attribute set did not have a "Bundle Items" group even though it had the "shipment_type" attribute. The "shipment_type" was located under a different group. I added the "Bundle Items" group to my destination attribute set and put the "shipment_type" attribute under and it worked.

magento-engcom-team pushed a commit that referenced this issue Jan 28, 2019
magento-engcom-team pushed a commit that referenced this issue Jan 28, 2019
magento-engcom-team pushed a commit that referenced this issue Jan 28, 2019
magento-engcom-team pushed a commit that referenced this issue Jan 28, 2019
magento-engcom-team pushed a commit that referenced this issue Jan 28, 2019
Fixed:
MAGETWO-58212 [GITHUB] Magento 2.1 CE, Cannot change attribute set for bundled product #5999
MAGETWO-96842 [2.3.x] [Magento Cloud] [QUANS] Tiered block displayed on configurable products without any tiered pricing
MAGETWO-96412 [2.3.x] Not possible to drag specified Related/Upsell/Cross-sell products to new positions in Windows 10 machine
MAGETWO-96847 [2.3.x] Special price does not work when "default config" scope timezone does not match "website" scope timezone
MAGETWO-96424 [2.3.x] [Magento Cloud] Requesition list qty of configurable product variation not updated individually
MAGETWO-91589 Slow query delete on sub SELECT query
MAGETWO-82221 [CE 2.1.0 rc3] - Cancel an order [configurable product] #5313
MAGETWO-92226 Product export creates 2 rows for Simple product with custom options
MAGETWO-60910 Session initialized during reindex from CLI and result fatal error
MAGETWO-97260 creating new shipment: gettting all trackers. after this commit 2307e16
MAGETWO-96342 MySQL connection issue
MAGETWO-97434 MFTF test cases have parsing error
MAGETWO-91513 Password reset email cannot be sent if the customer does not have customer attribute set that is changed to required after original account creation
MAGETWO-95802 [EE] Admin date wrong formatting for French locale
@kzozulya
Copy link

Hi all,
I have the same issue as Topic Started wrote (exactly the same)
We have a Migration_Default Attribute set.
Solution for me (may be project specified solution but maybe useful for someone else):
In Admin Panel relocate attribute quantity_and_stock status to Migration Prices attribute group (group with code advanced-pricing):
https://monosnap.com/file/0H3dl34HyBXlI2tDqtvBtg6NlLIRuI
https://monosnap.com/file/M9Iv1g7neSKqMdRZAbl3SGNpLSEA9S

magento-engcom-team pushed a commit that referenced this issue Aug 11, 2020
[TSG] Fixes for 2.4 (pr74) (2.4-develop)
@Jeeva-Rathinam
Copy link

I think I found a workaround. For me it seems like the root issue was the price attribute not being in the 'Product Details' group of my destination attribute set.

Before I started tinkering, my destination attribute set had a 'Prices' group where the price attribute was located. When I moved the price attribute out of the 'Prices' group back into the 'Product Details' group and deleted the 'Prices' group, I was able to change the attribute set for my product to the destination attribute set without any problem.

Not sure if that's just a very specific example relevant to just me, but wanted to share that finding nonetheless.

I did the same what you suggest still getting the same error, any other possibilities of error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Frontend bug report Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release
Projects
None yet
Development

No branches or pull requests