D
D
Dmitry Kalinin2018-09-14 11:12:21
JavaScript
Dmitry Kalinin, 2018-09-14 11:12:21

Passing parameters to include script in Opencart?

In the controller, I connect the script via $this->document->addScript(url) The script initializes the js file upload widget. In the widget parameters I want to pass max. allowable number of files (taken from the admin panel settings). How can this be done using php? If they were connected in the body of the template, then there are no questions, but in this case, how?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zoozag, 2018-09-14
@zoozag

Store a variable in the template body that the script will check

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question