K
K
Kek1452019-05-18 04:27:37
opencart
Kek145, 2019-05-18 04:27:37

Where can I get opencart variables for my file that I just created?

Hello, I need help, namely, I need to use the variables that are used in product.tpl in my created opinion.tpl review file (that's what I called it) and the question is how to use these variables if I use jquery to connect opinion.php file to the main file, but I can't use variables?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
Leonid, 2019-05-18
@caballero

jquery is a client library, it can’t connect server php somewhere
as for variables - well, pass them through the session, for example

Z
zoozag, 2019-05-20
@zoozag

Read about the MVC structure of Opencart.
Variables are set in the controller.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question