Skip to content

API REST product images, Label in one website and roles in other #14287

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

Closed
guillermogallego opened this issue Mar 23, 2018 · 10 comments
Closed
Assignees
Labels
Issue: ready for confirmation not-confirmed Use for Issue that was closed during confirmation Reported on 2.2.x Indicates original Magento version for the Issue report. 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

@guillermogallego
Copy link

guillermogallego commented Mar 23, 2018

Preconditions

Magento 2.2.3
Php 7.1
Centos 7 with CPANEL
I configure 3 Websites and theirs views

Steps to reproduce

  1. Create a product with API REST for websites id 1 and 3

`Array
(
[sku] => DS-100-101
[name] => Daale Swim Bañador Bizarre Training
[attribute_set_id] => 9
[status] => 1
[visibility] => 4
[type_id] => configurable
[media_gallery_entries] => Array
(
[0] => Array
(
[media_type] => image
[label] => Daale Swim Bañador Bizarre Training - 0
[disabled] =>
[position] => 1
[types] => Array
(
[0] => "image"
[1] => "small_image"
[2] => "thumbnail"
[3] => "swatch_image"
[4] => "_media_image"
)
[content] => Array
(
[type] => image/jpeg
[name] => daale-swim-banador-bizarre-training.jpg
[base64_encoded_data] => Base 64 data
)
)
[3] => Array
(
[media_type] => image
[label] => Daale Swim Bañador Bizarre Training - 3
[disabled] =>
[position] => 4
[types] => Array()
[content] => Array
(
[type] => image/jpeg
[name] => daale-swim-banador-bizarre-training.jpg
[base64_encoded_data] => Base 64 data
)
)
)
[extension_attributes] => Array
(
[stock_item] => Array
(
[is_in_stock] => 1
)
[website_ids] => Array
(
[0] => 1
[1] => 2
)
)

[custom_attributes] => Array
    (
        [0] => Array
            (
                [attribute_code] => description
                [value] => ""
            )
        [1] => Array
            (
                [attribute_code] => meta_description 
                [value] => ""
            )
        [2] => Array
            (
                [attribute_code] => meta_title
                [value] => Daale Swim Bañador Bizarre Training
            )
    )

)
`

  1. Inside the product detail in the admin I look the images

captura de pantalla de 2018-03-26 17-13-09

  1. On the same page, I change the view to another website

captura de pantalla de 2018-03-26 17-15-38

  1. Again I look the images

captura de pantalla de 2018-03-26 17-18-26

Expected result

The roles of primary images assigned to all stores views
The label of images assigned to all stores views
The thumbnail for the product list assigned to all stores views (without filters)

Actual result

Roles of primary image are assigned to only one store view or website
Label of images are assigned to only one store view or website (different to the above)
Only show thumbnail image in the list when filter for one store view (the view have assigned the roles)

captura de pantalla de 2018-03-23 13-02-00
captura de pantalla de 2018-03-23 13-01-25

@magento-engcom-team magento-engcom-team added the Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed label Mar 23, 2018
@guillermogallego guillermogallego changed the title API REST Upload product images, Label in one store vew and roles in other API REST Upload product images, Label in one store view and roles in other Mar 26, 2018
@guillermogallego guillermogallego changed the title API REST Upload product images, Label in one store view and roles in other API REST product images, Label in one website and roles in other Mar 26, 2018
@magento-engcom-team magento-engcom-team added the Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed label Mar 29, 2018
@magento-engcom-team
Copy link
Contributor

@guillermogallego, thank you for your report.
We've acknowledged the issue and added to our backlog.

@magento-engcom-team magento-engcom-team added 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.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 Mar 30, 2018
@d0ky
Copy link

d0ky commented May 5, 2018

I'm experiecing the same problem and I may add one more boring issue related and similar to the issue #6259 .

While I work on the backend, trying to fix issue in image order data I expect that working on all store views will modify image order on all store views, but switching the view to a specific one I find a different image order, I've gone through a search in catalog configuration for image order scope without any luck, any hint on this? Is it a know issue as well?

@sebastianamaro
Copy link

Hi!

Any update on when this issue is going to be fixed?
I have the same problem on 2.1.3

@guillermogallego
Copy link
Author

guillermogallego commented Jun 28, 2018 via email

@sebastianamaro
Copy link

So the fix is not going to be backported to 2.1.3? Only 2.2 and forward?

@engcom-Echo engcom-Echo self-assigned this Dec 31, 2019
@m2-assistant
Copy link

m2-assistant bot commented Dec 31, 2019

Hi @engcom-Echo. 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:

  • 1. Add/Edit Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • 2. Verify that the issue is reproducible on 2.4-develop branch

    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

  • 3. If the issue is not relevant or is not reproducible any more, feel free to close it.


@engcom-Echo engcom-Echo removed the Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed label Dec 31, 2019
@riconeitzel
Copy link
Contributor

So, this is still an issue in 2.3.5?

@ghost ghost unassigned engcom-Echo Oct 8, 2020
@ghost ghost added Issue: ready for confirmation and removed Progress: ready for grooming Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed 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 labels Oct 21, 2020
@stale
Copy link

stale bot commented Jan 5, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 14 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale issue label Jan 5, 2021
@engcom-Alfa engcom-Alfa self-assigned this Jan 7, 2021
@m2-assistant
Copy link

m2-assistant bot commented Jan 7, 2021

Hi @engcom-Alfa. 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: 👇

  • 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).

    DetailsIf the issue has a valid description, the label Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.

  • 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.

  • 3. Add Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • 4. Verify that the issue is reproducible on 2.4-develop branch

    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

  • 5. Add label Issue: Confirmed once verification is complete.

  • 6. Make sure that automatic system confirms that report has been added to the backlog.

@stale stale bot removed the stale issue label Jan 7, 2021
@engcom-Alfa
Copy link
Contributor

Hi @guillermogallego . Thank you for your report!

Unfortunately, we are not able to reproduce the issue on fresh 2.4-develop.
It seems that the problem has already been solved.

Manual testing scenario:

Create a product with API REST for websites id 1 and 2

{
  "product": {
    "sku": "DS-100-101",
    "name": "Daale Swim Bañador Bizarre Training",
    "attribute_set_id": 4,
    "price": 1,
    "status": 1,
    "visibility": 4,
    "type_id": "configurable",
    "extension_attributes": {
      "website_ids": [
        1,
        2
      ],
      "stock_item": {
        "qty": 20,
        "is_in_stock": true
      }
      },
"media_gallery_entries": [
      {
        "media_type": "image",
        "label": "Daale Swim Bañador Bizarre Training - 0",
        "position": 1,
        "disabled": false,
        "types": [
          "image",
          "small_image",
"thumbnail",
"swatch_image"
        ],
        "content": {
          "base64_encoded_data": "string",
          "type": "image/jpeg",
          "name": "daale-swim-banador-bizarre-training.jpg"
        }
      },
{
        "media_type": "image",
        "label": "Daale Swim Bañador Bizarre Traininfgfgg - 0",
        "position": 4,
        "disabled": false,
        "content": {
          "base64_encoded_data": "string",
          "type": "image/jpeg",
          "name": "daale-swim-bgggganador-bizarre-training.jpg"
        }
      }
    ],
    "custom_attributes": [
      {
        "attribute_code": "description",
        "value": "test1"
      },
      {
        "attribute_code": "meta_description",
        "value": "test2"
      },
      {
        "attribute_code": "meta_title",
        "value": "Daale Swim Bañador Bizarre Training"
      }
]
  },
  "saveOptions": true
}

Actual Result:

  1. The roles of primary images assigned to all stores views - ✔️

  2. The label of images assigned to all stores views - ✔️
    Peek 2021-01-08 12-36

  3. The thumbnail for the product list assigned to all stores views (without filters)

Screenshot from 2021-01-08 12-29-07

So, we have to close it.
Please feel free to comment, reopen or create new ticket according to the Issue reporting guidelines
if you are still facing this issue on the latest 2.4-develop branch. Thank you for collaboration.

@engcom-Alfa engcom-Alfa added Reported on 2.2.x Indicates original Magento version for the Issue report. not-confirmed Use for Issue that was closed during confirmation labels Jan 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: ready for confirmation not-confirmed Use for Issue that was closed during confirmation Reported on 2.2.x Indicates original Magento version for the Issue report. 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