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

Empty image alt-text & missing alt attribute on product detail page #9931

Closed
johnny-longneck opened this issue Jun 13, 2017 · 9 comments
Closed
Assignees
Labels
Fixed in 2.2.x The issue has been fixed in 2.2 release line 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

@johnny-longneck
Copy link

Preconditions

  1. PHP 7
  2. M2.1.6

Steps to reproduce

  1. Import product images and image labels via csv.

Expected result

  1. Backend: Image "alt-text" field is being filled by the imported image label
  2. Frontend: Product Detail Page Images have alt attribute

Actual result

  1. Backend alt text field is empty, even though label was imported and can be seen on product list page as alt attribute
  2. Frontend: Product Detail Page is missing alt attribute on image fields

This may sound like a "no big deal" but my boss came up this morning with "All our images are removed from google image search"

@timste
Copy link

timste commented Jun 13, 2017

in category listing M2 use the name from the product for the alt tag. in product detail view, when you dont set the alt text is the alt tag missing. in M1 was the default alt text the product name.

@johnny-longneck
Copy link
Author

Furthermore it seems the alt-text is saved in "additional_image_label" instead of base_image_label for example

@magento-engcom-team magento-engcom-team added G1 Passed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed and removed G1 Passed labels Sep 5, 2017
@magento-engcom-team magento-engcom-team added the Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed label Sep 29, 2017
@magento-engcom-team
Copy link
Contributor

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

@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 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 Sep 29, 2017
@brobie
Copy link
Contributor

brobie commented Oct 10, 2017

I'm working on it #SQUASHTOBERFEST

@brobie
Copy link
Contributor

brobie commented Oct 10, 2017

PHP: PHP 7.0.15-1+deb.sury.org~xenial+1 (cli) (built: Jan 20 2017 08:53:13) ( NTS )
Magento: 2.2.1-dev

When importing the attached CSV, everything is working as expected:

product_import.csv.zip

image

image

Moving on to research the defaulting of product name into alt text if label is missing.

brobie pushed a commit to brobie/magento2 that referenced this issue Oct 10, 2017
brobie pushed a commit to brobie/magento2 that referenced this issue Oct 10, 2017
brobie pushed a commit to brobie/magento2 that referenced this issue Oct 10, 2017
brobie pushed a commit to brobie/magento2 that referenced this issue Oct 11, 2017
@Ctucker9233
Copy link

+1 Having this issue as well. Wondering how soon we might see a fix on 2.1 branch.

@okorshenko
Copy link
Contributor

The issue has been fixed and delivered to 2.2-develop branch. Will be available with upcoming patch release

@okorshenko okorshenko added the Fixed in 2.2.x The issue has been fixed in 2.2 release line label Dec 1, 2017
@ben91376
Copy link

ben91376 commented Apr 17, 2018

I see that this issue is closed and is clearly an existing bug. I see that this is acknowledged as an issue in 2.3.x. Will it be addressed soon? Is there a workaround for getting alt text imported / exported properly?

Here is the solution that was provided to me by unirgy support:

That feature is available in magento core import/export.
Rapidflow works differently.
You need to run Rapidflow Pro Products Extra profile with CPI rows
https://unirgy.com/wiki/urapidflow/fixed_row_format#cpicatalog_product_image
Basic rapidflow does not cover import of additional images and their labels.

@slacka1
Copy link

slacka1 commented Jan 29, 2019

In CE 2.3.

  1. If in single store mode. Alt-Tags are not showing when added via php api.
    In multi store mode, Alt-Tags show if in "Default" view but not in "All Store Views".
  2. As well, any image label that is not just [space] or alphanumeric will not let me save the product. (such as a label containing a period)
    https://community.magento.com/t5/Magento-2-x-Programming/php-api-product-image-name-product-image-label-accepted-encoding/td-p/119871

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed in 2.2.x The issue has been fixed in 2.2 release line 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

8 participants