Dear all
I'm completely lost. Have been searching forums, google, well more or less all the web for two hours now, but didn't find a solution.
What I want to do:
I want to create an Information Page, which is easy in fact. But: my HTML code includes a form and javascript. And that does not work. When I put the code in the editor (in code view mode!) and I click save, I get just a strange value ("0.35") shown on a blank page apart from that and the "save" never get back to the OpenCart backend.
After reloading the content I tried to save is completely lost.
Just for information: the form I like to put in that information page is a price calculator for scuba diving gases.
I've attached the zipped *.html file, since it is quite a long code to put it in code tags. If you open that html in a browser it works perfectly (apart from having a bad look without css ;-))
I hope somebody can guide me how to accomplish my goal to have this html file as an information page in OpenCart. I really need this stuff. So any help is highly appreciated.
I'm on OpenCart 2.3.0.2 using Journal Theme 2.
Thanks for any hints
Martin
I'm completely lost. Have been searching forums, google, well more or less all the web for two hours now, but didn't find a solution.
What I want to do:
I want to create an Information Page, which is easy in fact. But: my HTML code includes a form and javascript. And that does not work. When I put the code in the editor (in code view mode!) and I click save, I get just a strange value ("0.35") shown on a blank page apart from that and the "save" never get back to the OpenCart backend.
After reloading the content I tried to save is completely lost.
Just for information: the form I like to put in that information page is a price calculator for scuba diving gases.
I've attached the zipped *.html file, since it is quite a long code to put it in code tags. If you open that html in a browser it works perfectly (apart from having a bad look without css ;-))
I hope somebody can guide me how to accomplish my goal to have this html file as an information page in OpenCart. I really need this stuff. So any help is highly appreciated.
I'm on OpenCart 2.3.0.2 using Journal Theme 2.
Thanks for any hints
Martin
Hi Martin,
You probably don't want to try and paste all that in to the WYSIWYG editor.
You'd be better off creating a new template .tpl file, adding the code in there, then selecting your template for the page.
Cheers,
Paul
You probably don't want to try and paste all that in to the WYSIWYG editor.
You'd be better off creating a new template .tpl file, adding the code in there, then selecting your template for the page.
Cheers,
Paul
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Guru Member
well, wondering, I just downloaded a socalled 'clean category Page' extension, and inserted your html file
content, as it came, into it's catclean.tpl file. Then, I created a new category, called TEST, by use
of the Admin, using the Layout Override Clean Cat, and this is the 'very quick step' result of all this, it
does not even show an error somewhere, it even works in full, to my big surprise.
Extension used (in my OC v.1.5.6.5!)
https://www.opencart.com/index.php?rout ... n_id=18429
The Category is called TEST, visible in my Cat Sections.
Just to give you a hint.
Ernie
http://www.evelo.li/shop/index.php?rout ... ry&path=62
content, as it came, into it's catclean.tpl file. Then, I created a new category, called TEST, by use
of the Admin, using the Layout Override Clean Cat, and this is the 'very quick step' result of all this, it
does not even show an error somewhere, it even works in full, to my big surprise.
Extension used (in my OC v.1.5.6.5!)
https://www.opencart.com/index.php?rout ... n_id=18429
The Category is called TEST, visible in my Cat Sections.
Just to give you a hint.
Ernie
http://www.evelo.li/shop/index.php?rout ... ry&path=62
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Install attached file using Extensions - Installer
Refresh Modifications
Edit the Information page you want to display the calculation form .
Enter {GasRechner} there where you want to place the form.
Before and/or after {GasRechner} type your text ...
What does this modification do ?
- It searches for {GasRechner} in information - description
- It replaces the text {GasRechner} with $this->load->view('information/gasrechner');
- Content before and after {GasRechner} are placed before and after $this->load->view('information/gasrechner')
Refresh Modifications
Edit the Information page you want to display the calculation form .
Enter {GasRechner} there where you want to place the form.
Before and/or after {GasRechner} type your text ...
What does this modification do ?
- It searches for {GasRechner} in information - description
- It replaces the text {GasRechner} with $this->load->view('information/gasrechner');
- Content before and after {GasRechner} are placed before and after $this->load->view('information/gasrechner')
Dear all,
I have a similar problem. I've been browsing the google for two days, but I can't find any information.
In my old site I had a calculator (for connecting resistors and capacitors, and some basic electrical laws) and everyone used it.
My HTML code includes a form.
I am now using OpenCart 2.0.1.1, and cannot use it.
Any help will be helpful to me.
Thank you for your time.
Georgi
I have a similar problem. I've been browsing the google for two days, but I can't find any information.
In my old site I had a calculator (for connecting resistors and capacitors, and some basic electrical laws) and everyone used it.
My HTML code includes a form.
I am now using OpenCart 2.0.1.1, and cannot use it.
Any help will be helpful to me.
Thank you for your time.
Georgi
Attachments
Download and install with Extension - Installer
Then Refresh modification
On any information page you can enter:
This code will be replaced by the calculator.
See demo
Please report back ...
When helpfull : show apriciation
Then Refresh modification
On any information page you can enter:
Code: Select all
{ECalculator}
This code will be replaced by the calculator.
See demo
Please report back ...
When helpfull : show apriciation
Thanks for the quick response and assistance.
I downloaded it, installed it. No problem about that.
But it stopped loading information pages (Information - About Us, Catalog, Partners and Distributors).
Maybe I confused something. I don't understand much. Sorry about that.
Can I place it in Categories?
I downloaded it, installed it. No problem about that.
But it stopped loading information pages (Information - About Us, Catalog, Partners and Distributors).
Maybe I confused something. I don't understand much. Sorry about that.
Can I place it in Categories?
Sorry. Modifications always added calculator.
Fixed : check presents of {ECalculator}
- Delete Exensions - Modifications - PprMkr Including Electronics calculator
- Download and reinstall attached archive.
- Refresh Modifications
Fixed : check presents of {ECalculator}
- Delete Exensions - Modifications - PprMkr Including Electronics calculator
- Download and reinstall attached archive.
- Refresh Modifications
Attached : Now possible to add to information page and category
See category demo ( language English only )
See information demo
Extensions - Modification: Delete 'PprMkr Including Electronics calculator'
Extensions - Extensie Installer: Install 'electronics_calculater.ocmod.zip'
Extensions - Modification: Refresh
See category demo ( language English only )
See information demo
Extensions - Modification: Delete 'PprMkr Including Electronics calculator'
Extensions - Extensie Installer: Install 'electronics_calculater.ocmod.zip'
Extensions - Modification: Refresh
Multilanguage. Just type {ECalculator} in each description field.
Note: Text on calculator will not be translated !
However: this can be done, but requires language files for each language and extra controller code.
Note: Text on calculator will not be translated !
However: this can be done, but requires language files for each language and extra controller code.
Uninstall previous.
Install latest.
You have to translate language files and copy to catalog/language/Your_Language/information folder yourself.
Install latest.
You have to translate language files and copy to catalog/language/Your_Language/information folder yourself.
Who is online
Users browsing this forum: No registered users and 133 guests