B
B
Breeze12017-09-18 11:48:02
opencart
Breeze1, 2017-09-18 11:48:02

Opencart photo order?

Guys, there is such a question. There are goods cards, each card has 2 photos. One is the main one, the second one is shown on hover. For some reason, now the main one is displayed just the second photo. Although in the admin panel I set the output order. What could be the problem ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zoozag, 2017-09-19
@Breeze1

What version of opencart?
In 1.5 and 2, the main image of the product is set in the data tab, and not in the image tab, and the database is also stored in a separate table.
If you have them set in one tab, you have some kind of module installed for this.
1. Check whether they are written to the database correctly. - Is the main image written to the image column of the
oc_product table - Is the sort order written to the sort_order column of the
oc_product_image table product/product controller
PS The simplest thing you can do without getting into the code is to set the reverse sort order in the admin panel

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question