Post by boon4376 » Sat Jul 31, 2010 3:09 am

I am using opencart as a Direct Response checkout for a product. Not really the store feature.

I need the cart to be as simple as possible. The less clicks, the better. 1 click is optimal however probably not possible without a lot of ajax in this case...

However automatically choosing the "guest checkout" option would eliminate yet another click.

How can I go about making it so that there is only the guest checkout option and it is automatically chosen when the user clicks "checkout"?

Newbie

Posts

Joined
Sat Jul 31, 2010 3:06 am

Post by boon4376 » Sat Jul 31, 2010 3:15 am

I have an idea... I used this tweak to remove a click by automatically choosing shipping and payment method
http://www.opencart.com/index.php?route ... path=47_48

I think I can apply the same principle to when the user gets to the page
/index.php?route=account/login
^^ which is where they can either login or select guest.

I think If there is somewhere on that page for for me to add this line of code it will work
$this->redirect(HTTPS_SERVER . 'index.php?route=checkout/guest_step_1');
^^ which might auto-redirect from the account login page to the first step of guest checkout.

But the question is, where can I stick that code?

Newbie

Posts

Joined
Sat Jul 31, 2010 3:06 am

Post by boon4376 » Sat Jul 31, 2010 5:39 am

Figured it out. In Catelog -> Controller - > Checkout - > shipping.php

Find this:

Code: Select all

		if (!$this->customer->isLogged()) {
			$this->session->data['redirect'] = HTTPS_SERVER . 'index.php?route=checkout/shipping';

	  		$this->redirect(HTTPS_SERVER . 'index.php?route=account/login');
    	} 
And change it to this

Code: Select all

		if (!$this->customer->isLogged()) {
			$this->session->data['redirect'] = HTTPS_SERVER . 'index.php?route=checkout/shipping';

	  		$this->redirect(HTTPS_SERVER . 'index.php?route=checkout/guest_step_1');
    	} 
Which, instead of taking the user to the login screen, takes them directly to the first page of the guest checkout.

This combined with the tweak mentioned earlier has significantly shortened the journey from adding the item to the cart and paying.

Newbie

Posts

Joined
Sat Jul 31, 2010 3:06 am

Post by JAY6390 » Sat Jul 31, 2010 7:40 am

You should also get the account/login controller to redirect to that page too

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by Qphoria » Wed Aug 04, 2010 2:05 am

Here is the tutorial for that already
http://forum.opencart.com/viewtopic.php?f=20&t=10814

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by boon4376 » Tue Aug 17, 2010 3:32 am

JAY6390 wrote:You should also get the account/login controller to redirect to that page too
I deleted those links from the navigation menu

Newbie

Posts

Joined
Sat Jul 31, 2010 3:06 am
Who is online

Users browsing this forum: No registered users and 58 guests