magento2-allegro icon indicating copy to clipboard operation
magento2-allegro copied to clipboard

Multiple pictures from Magento to Allegro

Open michalzimniak opened this issue 5 years ago • 5 comments

Is there any option to add more than one picture from magento directly to the auction?

michalzimniak avatar May 29 '20 13:05 michalzimniak

Hi,

Can I help you with that somehow?

michalzimniak avatar Jun 02 '20 07:06 michalzimniak

Hi,

Whats the problem to add multiple images to the allegro auction?

michalzimniak avatar Jun 15 '20 06:06 michalzimniak

Hi @michalzimniak,

Our client wanted to have only one product picture. If you want to have multiple images take a look on the loop https://github.com/macopedia/magento2-allegro/blob/master/Ui/AllegroOffer/Form/CreateDataProvider.php#L92 and remove lines 89-94.

cieslix avatar Jun 15 '20 08:06 cieslix

@michalzimniak if you would like you can submit Pull Request with option to add more images, but this has to be optional and has to be added with configuration input in magento backend.

cieslix avatar Jun 15 '20 12:06 cieslix

Hi, Tried to comment the loop from lines:

//        foreach ($images['items'] as $key => $image) {
//            if ($image['file'] !== $allegroImage) {
//                unset($images['items'][$key]);
//            }
//         }

but seems like this do not change anything, I mean if I want to mark more than one "Allegro Image" in Images and Videos Tab, only one possible to mark.

michalzimniak avatar Jun 29 '20 08:06 michalzimniak