E
E
everl1sting_summer2019-01-14 23:31:28
opencart
everl1sting_summer, 2019-01-14 23:31:28

There is an online auto parts store on opencart, how to make dependent lists, i.e. Make of car->Model of car->Year?

Actually, as I said, there is an online store and you need to make dependent lists Car make-> Car model-> Year on the product page. On the Internet, I found a module of dependent lists, but this is a filter, and I need ordinary dependent lists. I hope I have clearly explained the essence of the problem))) If anyone can help I will be very grateful)))

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zoozag, 2019-01-15
@everl1sting_summer

Make the structure in the form of nested categories.
On the choice of the Brand auto select, send ajax and get a select with child categories.
The method in the category model (catalog/model/catalog/category.php) is already there:

public function getCategories($parent_id = 0) {...}

It remains to add a small controller.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question