Post by fahd » Sat Feb 13, 2010 2:36 pm

Hi,
Is it possible to disable login box from checkout page. I just want my customer details billing and shipping don't want to give him option to register or login. I know It can be done. When Customer clicks on checkout he should ask for his details that's it. Please advice me how can I do that.

Regards,

Newbie

Posts

Joined
Sat Feb 13, 2010 2:28 pm

Post by Qphoria » Sat Feb 13, 2010 9:37 pm

Quick method is to redirect all normal checkout pages to the guest checkout pages.

1. EDIT 3 FILES:
catalog/controller/checkout/shipping.php
catalog/controller/checkout/payment.php
catalog/controller/checkout/confirm.php

2. IN ALL 3 FILES, FIND:

Code: Select all

$this->redirect($this->url->https('account/login'));
3. IN ALL 3 FILES, REPLACE WITH:

Code: Select all

$this->redirect(HTTPS_SERVER . 'index.php?route=checkout/guest_step_1'));
If you want to completely disable login and account create features, you can set up redirects from those account pages so that they can never be landed on:

1. EDIT 2 FILES:
catalog/controller/account/login.php
catalog/controller/account/create.php

2. FIND:

Code: Select all

public function index() {
3. AFTER, ADD:

Code: Select all

$this->redirect(HTTPS_SERVER . 'index.php?route=checkout/guest_step_1');
4. EDIT:
catalog/view/theme/YOURTHEME/template/common/header.tpl

You will also likely want to remove the login & account tabs from the header.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by gartheman » Tue Feb 16, 2010 5:17 pm

Qphoria wrote: You will also likely want to remove the login & account tabs from the header. If you want to completely disable login and account create features, there is a different way
how would one go about this? apologies if the answer is on here somewhere but i can't find it :(

New member

Posts

Joined
Tue Feb 16, 2010 5:12 pm

Post by khlaim » Wed Feb 17, 2010 10:00 pm

Hi,
You will also likely want to remove the login & account tabs from the header. If you want to completely disable login and account create features, there is a different way
I would like to remove login & account & shopping cart etc. functions, im trying to configure my opencart as "catalogue only".

thanks in advance

Newbie

Posts

Joined
Wed Feb 17, 2010 9:59 pm

Post by gartheman » Thu Feb 18, 2010 12:47 am

to fix my problem i ended up editing this file

\catalog\view\theme\default\template\common.header.tpl

go to line 35 and replace all the div4 code with this:

<div class="div4"><a href="<?php echo $home; ?>" id="tab_home"><?php echo $text_home; ?></a>
<a href="<?php echo $cart; ?>" id="tab_cart"><?php echo $text_cart; ?></a><a href="<?php echo $checkout; ?>" id="tab_checkout"><?php echo $text_checkout; ?></a></div>

although now the tabs are misaligned, but i'm sure that's easily fixed

New member

Posts

Joined
Tue Feb 16, 2010 5:12 pm

Post by khlaim » Fri Feb 19, 2010 7:16 am

thank you very much,

i've played in template files a bit, it looks exactly as i want now.

thanks again.
I apperciate it.

Newbie

Posts

Joined
Wed Feb 17, 2010 9:59 pm

Post by sel » Mon Jun 21, 2010 10:21 pm

Qphoria wrote:If you want to completely disable login and account create features, there is a different way
Hi. How do you disable the login and account features as mentioned above? I only want users to be able to checkout using a guest account. I'm running version 1.4.8

Thanks in advance.

sel
Newbie

Posts

Joined
Mon Jun 21, 2010 10:19 pm

Post by ehandelsfabriken » Mon Mar 14, 2011 9:47 pm

How can I send all clicks on the Checkout link to the guest checkout page but still give the customer the option to register an account. I think I need to add something to the "if" question in login.php.

1.4.9.3

I'm using OpenCart 1.5.1.3


New member

Posts

Joined
Wed Mar 09, 2011 6:20 pm

Post by mixor » Tue Jun 07, 2011 1:14 am

Hi,

I would like to allow checkout as guest only on opencart 1.5.
Since it's completely different way for checout as in 1.4.x I would be glad if anyone can provide instructions.
I presume threre's need to change the checkout.php and/or checkout.tpl file but since I'm beginner in java programming I can't do it myself.

Thanks

Newbie

Posts

Joined
Tue Jun 07, 2011 1:06 am

Post by tjonnyc » Thu Aug 11, 2011 4:10 am

How about making the registration option a little more "stealthy"?

What do we need from the customer to register an account? E-mail and password.
They already enter the E-mail address on guest checkout - so just stick a password field in there somewhere.
That way, you're not scaring them with the whole "Register Account" header, yet you're still providing them with a way to re-login and track their orders.

That's the easy part... now we just need one of the resident OpenCart wizards (oh hi Qphoria! :D :D :D) to figure out the programming...

Active Member

Posts

Joined
Tue Dec 21, 2010 5:05 am

Post by tjonnyc » Thu Aug 11, 2011 5:21 am

Qphoria wrote: 1. EDIT 3 FILES:
catalog/controller/checkout/shipping.php
catalog/controller/checkout/payment.php
catalog/controller/checkout/confirm.php

2. IN ALL 3 FILES, FIND:

Code: Select all

$this->redirect($this->url->https('account/login'));
3. IN ALL 3 FILES, REPLACE WITH:

Code: Select all

$this->redirect(HTTPS_SERVER . 'index.php?route=checkout/guest_step_1'));
UPDATE for version 1.4.9.5:

Instead of
$this->redirect($this->url->https('account/login'));

search for
$this->redirect(HTTPS_SERVER . 'index.php?route=account/login');.

Active Member

Posts

Joined
Tue Dec 21, 2010 5:05 am

Post by gtamborero » Tue Aug 23, 2011 2:20 am

Disable login and registration on Checkout Opencart 1.5

Hi! Have a look at this post:
http://forum.opencart.com/viewtopic.php?f=20&t=36157

Newbie

Posts

Joined
Fri Aug 19, 2011 5:24 pm

Post by kgkaraoke » Sun Apr 15, 2012 1:02 am

If you want to completely disable login and account create features in OC 1.4.X.X, you can set up redirects from those account pages so that they can never be landed on:

1. EDIT 2 FILES:
catalog/controller/account/login.php
catalog/controller/account/create.php

2. FIND:

Code: Select all

public function index() {
3. AFTER, ADD:

Code: Select all

$this->redirect(HTTPS_SERVER . 'index.php?route=checkout/guest_step_1');
4. EDIT:
catalog/view/theme/YOURTHEME/template/common/header.tpl

You will also likely want to remove the login & account tabs from the header.

In order to change the wording "Guest Checkout", go to catalog\language\english\checkout and you will find two files:

guest_step_1.php and guest_step_2.php
Change all references to "GUEST CHECKOUT" in these files to "CHECKOUT"

This way the customers won't think there's something wrong with your cart.

New member

Posts

Joined
Fri Oct 29, 2010 9:06 am

Post by rusty69t » Thu Jun 27, 2013 9:55 pm

How can I disable login and registration on checkout in opencart 1.5.5.1

I cant find any of these files in my catalog/controller/checkout/ Folder

catalog/controller/checkout/shipping.php
catalog/controller/checkout/payment.php
catalog/controller/checkout/confirm.php

Newbie

Posts

Joined
Tue Jul 20, 2010 6:26 pm

Post by dbckham7 » Sun Oct 13, 2013 12:25 am

Following up... got 1.5.2.1 and there are no shipping or payment .php

New member

Posts

Joined
Tue May 08, 2012 2:31 pm

Post by dbckham7 » Sun Oct 13, 2013 12:39 am

@Qphoria is it the same steps just with different file (.php) names?

New member

Posts

Joined
Tue May 08, 2012 2:31 pm

Post by dbckham7 » Mon Oct 14, 2013 9:54 pm

Anyone know how to make this work for 1.5.2.1?

New member

Posts

Joined
Tue May 08, 2012 2:31 pm

Post by dbckham7 » Tue Oct 15, 2013 10:13 pm

?

New member

Posts

Joined
Tue May 08, 2012 2:31 pm

Post by slavib » Mon Apr 14, 2014 2:12 am

? 1.5.6.2

New member

Posts

Joined
Wed Sep 11, 2013 4:13 am

Post by sayedsrkkhan » Thu May 24, 2018 3:02 am

how to do in OC 2.3.0.2

New member

Posts

Joined
Wed Apr 18, 2018 5:49 pm
Who is online

Users browsing this forum: No registered users and 88 guests