Post by BFTUK » Sun Jul 29, 2007 11:18 pm

I want to remove the 'continue' buttons from the category and information pages, but i could'nt find the code in any of the template files.

Can anyone point me in the right direction?

SEO Blog | UK Website Directory


New member

Posts

Joined
Sun Jul 29, 2007 4:20 pm

Post by daydreamer » Tue Jul 31, 2007 4:28 am

Hi from what i can see there is one in Success.tpl and the other in information.tpl.

Hope thats what you was looking for.

daydreamer


Post by hm2k » Wed May 14, 2008 10:34 pm

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



 
   
      " onclick="location=''" />
   
 
Hope this helps someone.

UK Web Hosting


User avatar
Global Moderator

Posts

Joined
Tue Mar 11, 2008 9:06 am
Location - UK

Post by hm2k » Thu Jun 26, 2008 8:52 pm

I realised that I made a mistake with this...

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'));
REPLACE WITH

Code: Select all

		if ($request->isPost()) {
			$view->set('button_continue', $language->get('button_continue'));
			$view->set('continue', $url->href('home'));
		}
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.

UK Web Hosting


User avatar
Global Moderator

Posts

Joined
Tue Mar 11, 2008 9:06 am
Location - UK

Post by alice » Wed Jul 02, 2008 9:47 am

hm2k,

Your code worked perfect! Thank you!!

Newbie

Posts

Joined
Thu Jun 19, 2008 5:29 pm

Post by sakathecheetah » Wed Jul 02, 2008 11:09 am

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. :-[

New member

Posts

Joined
Wed Jul 02, 2008 8:50 am
Who is online

Users browsing this forum: No registered users and 1 guest