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

Changing products 'this item has weight' using 'Update Attributes' is not possible #6310

Closed
hostep opened this issue Aug 24, 2016 · 26 comments · Fixed by #26075
Closed

Changing products 'this item has weight' using 'Update Attributes' is not possible #6310

hostep opened this issue Aug 24, 2016 · 26 comments · Fixed by #26075
Labels
Award: advanced bug report Component: Catalog Event: dmcdindia1 Fixed in 2.4.x The issue has been fixed in 2.4-develop branch 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

@hostep
Copy link
Contributor

hostep commented Aug 24, 2016

Preconditions

  1. Magento CE 2.1.0
  2. Have some virtual products in your catalogue

Steps to reproduce

  1. Select a couple of virtual products in the product grid in the backend
  2. Choose 'Update Attributes' in the 'Actions' dropdown
  3. Search for the weight field, you'll find it
  4. Search for the 'This item has weight' or 'This item has no weight' dropdown, you won't find it

Expected result

  1. Expected to find the dropdown with the choices 'This item has weight' or 'This item has no weight'

Actual result

  1. No dropdown with choice 'This item has weight' or 'This item has no weight' found

I wanted to change a couple of 100 products which were Virtual Products because the weight setting was set to 'This item has no weight' to Simple Products using Update Attributes.
But this currently doesn't work, I have to open all those products manually one by one to change them to a Simple Product which is no fun :(

@sevos1984
Copy link
Contributor

This is a known issue MAGETWO-45066, thanks for reporting

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

When can we expect this option? It is very important to change config simple products to hast weight as guest checkout fails if they don't have.

@flipflap
Copy link

flipflap commented Dec 5, 2016

Any news about this issue?

@Jimgitsit
Copy link

Any workaround such as a DB query?

@flipflap
Copy link

flipflap commented Jan 9, 2017

I don't know exactly how to do it with a DB query. I think it should be a part of "update attributes". Other user may also need it.

@jeanpham
Copy link

Any update on this issue? It's just crazy this bug is still in there

@tek-moe
Copy link

tek-moe commented Feb 6, 2017

This is a critical issue since it can easily compound with configurable products. My client has to go through 50+ records at a time just to change from a virtual product to simple product by changing the weight attribute flag to "this item has weight". You can even give that virtual product a weight via mass attribute change and the flag will still display as this item has no weight with an integer assigned to wieght which clearly indicates that there is weight.

@flipflap
Copy link

flipflap commented Feb 8, 2017

Seems not yet fixed in Magento 2.1.4 :-(
http://devdocs.magento.com/guides/v2.1/release-notes/ReleaseNotes2.1.4CE.html

@illyalvov
Copy link

What about 2.1.5?

@flipflap
Copy link

flipflap commented Mar 7, 2017

Unfortunately, I think not:

This release updates the copyright date in every file. It does not contain any functional changes or security improvements.

@Shimon2
Copy link

Shimon2 commented Mar 14, 2017

I had a similar problem. I wanted to import them as Virtual products. The standard import won't do this. My work around for now was to go into the database and simply set the type_id to "virtual"
I created a CSV that had sku and product_type.
I imported it into the database. It became TABLE360.
I then ran the following SQL

update catalog_product_entity c
set c.type_id = "virtual"
where c.sku in
(select im.sku
from TABLE360 im
where
im.product_type = "virtual" );

So far so good.

@Fab-z4qx
Copy link

Fab-z4qx commented Apr 4, 2017

Still any patch for this issue... What is the schedule for Magento release ?

@amcastror
Copy link

Hi, any ideas how to update "this item has weight" directly into the database? Any help would be appreciated.

@flipflap
Copy link

flipflap commented May 5, 2017

I used this SQL statement in phpMyadmin and that changed all virtual products to simple products:

update mg_catalog_product_entity set type_id = ‚simple' where type_id = 'virtual';

@magento-engcom-team magento-engcom-team added 2.1.x Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development bug report Component: Catalog Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed labels Sep 11, 2017
@magento-engcom-team
Copy link
Contributor

@hostep, thank you for your report.
We've created internal ticket(s) MAGETWO-45066, MAGETWO-80256 to track progress on the issue.

@magento-engcom-team magento-engcom-team added 2.2.x Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed labels Oct 11, 2017
@Bartlomiejsz Bartlomiejsz added the Progress: PR Created Indicates that Pull Request has been created to fix issue label Dec 17, 2019
Bartlomiejsz added a commit to Bartlomiejsz/magento2 that referenced this issue Feb 27, 2020
Bartlomiejsz added a commit to Bartlomiejsz/magento2 that referenced this issue Mar 20, 2020
@magento-engcom-team magento-engcom-team added this to PR In Progress in Community Backlog Mar 24, 2020
Bartlomiejsz added a commit to Bartlomiejsz/magento2 that referenced this issue Mar 26, 2020
@magento-engcom-team
Copy link
Contributor

Hi @hostep. Thank you for your report.
The issue has been fixed in #26075 by @Bartlomiejsz in 2.4-develop branch
Related commit(s):

The fix will be available with the upcoming 2.4.0 release.

@magento-engcom-team magento-engcom-team added the Fixed in 2.4.x The issue has been fixed in 2.4-develop branch label Mar 28, 2020
@ghost ghost moved this from PR In Progress to Done (last 30 days) in Community Backlog Mar 28, 2020
@ghost ghost added Progress: done and removed Progress: PR Created Indicates that Pull Request has been created to fix issue Progress: PR in progress labels Mar 28, 2020
magento-engcom-team added a commit that referenced this issue Mar 28, 2020
…ng 'Update Attributes' is not possible #26075

 - Merge Pull Request #26075 from Bartlomiejsz/magento2:feature/fix_6310_this_item_has_weight_update_attributes
 - Merged commits:
   1. 2506c08
   2. f6f414b
magento-engcom-team pushed a commit that referenced this issue Mar 28, 2020
magento-engcom-team added a commit that referenced this issue Mar 28, 2020
…ng 'Update Attributes' is not possible #26075

 - Merge Pull Request #26075 from Bartlomiejsz/magento2:feature/fix_6310_this_item_has_weight_update_attributes
 - Merged commits:
   1. 2506c08
   2. f6f414b
   3. 36738ec
@magento-engcom-team magento-engcom-team removed this from Done (last 30 days) in Community Backlog Apr 25, 2020
@ajay1987kumar
Copy link

UPDATE catalog_product_entity SET type_id = 'simple' WHERE catalog_product_entity.type_id = 'virtual';

this worked for me!!!!!!!
it will make you product with "item has weight"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Award: advanced bug report Component: Catalog Event: dmcdindia1 Fixed in 2.4.x The issue has been fixed in 2.4-develop branch 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