Skip to content

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

@guillermogallego

Description

@guillermogallego

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

Metadata

Metadata

Assignees

Labels

Issue: ready for confirmationReported on 2.2.xIndicates original Magento version for the Issue report.Reproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releasenot-confirmedUse for Issue that was closed during confirmation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions