Skip to content

Product Image Placeholders are not saved correctly in stores configuration section #18781

@Perzonallica

Description

@Perzonallica

Preconditions (*)

  1. Magento version 2.2.6
  2. PHP 7.0.32
  3. nginx/1.10.3
  4. MySQL 5.6.37

Steps to reproduce (*)

  1. Open Stores->Configuration->Catalog->Catalog page
  2. Open Product Image Placeholders tab
  3. Select images for placeholders
  4. Save Config

Expected result (*)

  1. Upload the images to the server and save the correct path in the core_config_data table which I assume is the following:
catalog/placeholder/thumbnail_placeholder
catalog/placeholder/swatch_image_placeholder
catalog/placeholder/small_image_placeholder
catalog/placeholder/image_placeholder
  1. Uploaded images are visible in the Stores configuration section.

Actual result (*)

  1. Doesn't matter if I upload image only for Base, Small or for every option at once, Magento always uploads the file to the server, but saves the following path to the core_config_data table:
    catalog/placeholder/placeholder
  2. It seems for me that the prefix is not generated correctly.
  3. So because of this it is not possible to change the default placeholder image.

Additional info

  1. It works in Magento version 2.2.3 and 2.2.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fixed in 2.2.xThe issue has been fixed in 2.2 release lineIssue: Format is validGate 1 Passed. Automatic verification of issue format passed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions