V
V
Vlad2017-09-30 00:57:53
SQL
Vlad, 2017-09-30 00:57:53

How to scroll through all the news in Opencart?

Can anyone tell me how to write a script in Opencart that will open the page of the next product in turn every time it is opened?
That is, it is necessary to store the last visited ID in a local file.
We pull it out, select the next product ID in the database and form a link to it.
How to generate a link? :(

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin Tsvetkov, 2019-06-20
@HiLevel

Выбрать Максимум(дата) из Таблицы с группировкой по Имя

If you need a record ID, make a subquery of this query and associate it with the main table by name and date.

Z
zoozag, 2017-11-14
@zoozag

$this->url->link('product/product', 'product_id=' . $product_id)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question