Hello everybody,
Presta 1.7.7.5
i am newbie in creating modules, but still have decided to solve one small problem by creating a very simple module, which adds 2 fields in the carrrier / checkout step. These fields are saved in the ps_orders table and will be used and displayed on the new order mail template. But the problem is that i can not display the two input text fields in the carrier step of FO. So i can not fill the fields with information. Here the code of my main class:
Full text is attached below as text file as cloudflare blocks the post with code even in code tags
I am using the hookdisplayAfterCarrier - to display the text fields there. But in the FrontOffice at the position where these text fields should be displayed i receive only: Array
And in console the html generated is:
in text file also below
So the example where i have taken the code this definition is put in constructor in the override of class. But i do not want to make this override. Should i put this definition in constructor of my main class also?
Would you help me please to display these fields in FO. I hope the other part of the code is correct. What concerns the database - the fields are added there. They are in orders table, when i install module.