Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 08-18-2009 13:45:17

mdurbin
Member
Registered: 07-29-2009
Posts: 8

Bypass the account switching option.

Hello! Is there anyway to bypass the presented option to Change Accounts or Checkout Now and just go right to the Checkout Now process?

Offline

 

#2 08-18-2009 14:23:39

mdurbin
Member
Registered: 07-29-2009
Posts: 8

Re: Bypass the account switching option.

Deadline has me jumping the gun on asking for help...

Well I figured it out, and here is what I did for anyone else looking to do the same!

In your Display Includes find Shopping Cart/Wish List Display.

From there Add :

Code:

 
$userid = $this->globals('core_user.id');

Then find : 

Code:

$link_checkout = $this->link_namespace('ecom','checkoutfn',array());

And then replace it with :

Code:

if($userid){
    $link_checkout = $this->link_namespace('ecom','checkout',array());
 }else{
    $link_checkout = $this->link_namespace('ecom','checkoutfn',array());
}

This way it prompts a guest to create a new account or just use the guest checkout, but it doesn't disturb the person thats already logged in. For them it will go straight to the checkout form.

Offline

 

Board footer