I recently created a module to add a new attribute to product images
It works perfectly with the field added by the module, however the native field "cover" has stopped working (the value is not saved while the module is active).
In addition to the module files and overrides (Image.php and AdminProductsController.php), i changed some files from the "src" folder.
src/PrestaShopBundle/Controller/Admin/ProductImageController.php
->add('infografico', 'Symfony\Component\Form\Extension\Core\Type\CheckboxType', array(
'label' => $translator->trans('Infográfico', array(), 'Admin.Catalog.Feature'),
'required' => false,
)) src/Adapter/Product/AdminProductWrapper.php (ajaxProcessUpdateImage)
$img->infografico = $data['infografico']; src/Adapter/Product/ProductDataProvider.php (getImage)
'infografico' => $imageData->infografico ? true : false, src/PrestaShopBundle/Resources/views/Admin/ProductImage/form.html.twig
[spam-filter] form_widget(form.infografico) [spam-filter]
Am I forgetting something or doing something wrong?
Thank you in advance for any help you can give me.
My Prestashop version - 1.7.2.1