The purpose of this button appears to be when used in the "Terms and Conditions".
However, I have found that we don't need this button unless we're $_POSTing to it...
I changed my code in my information.tpl to
However, I have found that we don't need this button unless we're $_POSTing to it...
I changed my code in my information.tpl to
Hope this helps someone.
" onclick="location=''" />
I realised that I made a mistake with this...
Here's the new code...
OPEN catalog/controller/information.php
FIND
REPLACE WITH
Then...
OPEN catalog/template/default/content/information.tpl
FIND
REPLACE WITH
I'd like to get some feedback from some people to ensure this does actually work the way it's supposed to.
Thanks.
Here's the new code...
OPEN catalog/controller/information.php
FIND
Code: Select all
$view->set('button_continue', $language->get('button_continue'));
$view->set('continue', $url->href('home'));
Code: Select all
if ($request->isPost()) {
$view->set('button_continue', $language->get('button_continue'));
$view->set('continue', $url->href('home'));
}
OPEN catalog/template/default/content/information.tpl
FIND
REPLACE WITH
I'd like to get some feedback from some people to ensure this does actually work the way it's supposed to.
Thanks.
This seems to work just fine for me also, but I'm not really sure I understand where we are actually POSTing anything to the information controller. During checkout there's simply a link to open t&c in a new window, so the continue button doesn't do anything. Privacy policy is the same, if your settings require it at user registration. Where exactly do we post anything to these pages?
Also, one a minor note, the pair of "$view->set(..." lines in the controller appear twice, so if anyone else is trying this only replace the first pair. The second pair is meant for the error page if it can't find the page (bad information_id). You could remove it there, too, but I think a continue button to the main page makes sense on an error. I ended up only changing the second instance when I first tried this (I was doing a quick edit in vim!) and it didn't work for obvious reasons.
Also, one a minor note, the pair of "$view->set(..." lines in the controller appear twice, so if anyone else is trying this only replace the first pair. The second pair is meant for the error page if it can't find the page (bad information_id). You could remove it there, too, but I think a continue button to the main page makes sense on an error. I ended up only changing the second instance when I first tried this (I was doing a quick edit in vim!) and it didn't work for obvious reasons.

Who is online
Users browsing this forum: No registered users and 1 guest