N
N
Nikolai Dobrynin2020-03-03 15:42:52
JavaScript
Nikolai Dobrynin, 2020-03-03 15:42:52

How to open the next link in a category using js?

Good afternoon. There is a catalog in the product catalog. How to open the necessary products inside the category while being in the product using the "previous", "next" buttons?

so far I've managed to put them on a specific link

{location.href="http://dev2.yourstartup.by/odezhda-hrmz/bryuki";}
, but that's not what you need. But how to tell him something like go ahead until the page in the catalog runs out of mind

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
Froggyweb, 2020-03-03
@fbir

https://web-revenue.ru/modx-revo/vyivod-sosednih-d...
Here is the snippet. Next is the matter of technology at the front

A
Alexey, 2020-03-03
@AleksRap

Render the card whenever there are objects with data in the array. As the array is over - remove paging

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question