Answer the question
In order to leave comments, you need to log in
Creating custom models in OpenCart?
I use different opencart models in the cron script inside the admin application (such as catalog/product, catalog/category).
There was a need to create their own models for working with geodata. I create a model inside a new group (folder) ./admin/model/geo/cities.php
class ModelGeoCities extends Model {
public function getCities() {
return [];
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question