S
S
Snowtime2018-10-09 16:17:33
opencart
Snowtime, 2018-10-09 16:17:33

How to make correct ajax loading of goods with a filter?

I'm trying to do ajax upload of products with a filter. The problem is this. I made a small script for the test and when I execute it, this thing happens. I send a request:

Request URL: localhost:3000/index.php?route=product/category&pa...
Request Method: GET
Status Code: 301 Moved Permanently (from disk cache)

And as a result, there is a redirect to localhost:3000/stoly?page =2 and at the same time all passed parameters are lost, except for page. Tell me, is it possible to overcome and how?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Isherath, 2018-10-09
@Isherath

So that the filter parameters do not disappear, you can try to store them on the client in a js object, like this:

var productFilter = {
route: 'product/category',
path: 59,
...
}

And about the answer, look in the server settings.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question