I
I
Igor Lavrov2018-10-11 10:44:55
opencart
Igor Lavrov, 2018-10-11 10:44:55

How to remove the first image from the product card?

When we open a certain category, we display the "Main image of the product", then go to the product card and there this image remains the main / first. Accordingly, it becomes the main preview.
I need to remove the first image in the product card, how can I do this?
It is necessary to make sure that only "Additional images" remain in the product card

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zoozag, 2018-10-11
@Maky_e0

2 options:
1. Do everything in the template. Just output $images[0]['thumb'] and $images[0]['popup'] instead of $thumb and $popup
2. In the product controller, replace the pictures for $data['thumb'] and $data['popup '] to the first of the additional pictures.
In both options, do not forget to remove the first image of the additional image when displaying additional images

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question