O
O
ogneog2021-10-19 06:48:06
opencart
ogneog, 2021-10-19 06:48:06

Sample OpenCart page, is it possible?

Hello. Recently got acquainted with this engine.

Is it possible to create a sample page where you can integrate your PHP / JS code?

I found only the possibility of publishing articles - ordinary pages with an editor. This option would be suitable, but I have no idea how the implementation was carried out and it is possible that a separate page under the “article” is not created so that you can go in and integrate the necessary code.

Thanks :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel, 2021-10-19
@gneog

The general answer is yes.
Solutions are determined by the version of opencart, for the second branch:
1) Create your own controller (you can take information / information as a sample), and view (view)
2) Hardcode - You can create an article, find out its id, and in the information / information articles view, write php code with the condition IF id == {}
For the third branch:
1) The item is similar to 1 item for the second, only all the code will need to be written in the controller
2) There is a module that allows the third branch to work with .tpl files - find it, install it , and try to write the code directly in .tpl - by analogy with point 2 above...
As a rule, the first point is used....

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question