Post by Karen » Thu Jun 10, 2010 2:59 pm

Can anyone tell me how to skip the account login page and go directly to guest checkout page 1? My customers won't be registering. (version 1.4.7).

Thanks!

User avatar
Active Member

Posts

Joined
Thu Jun 10, 2010 2:51 pm
Location - WA State, USA

Post by cashfile » Fri Jun 11, 2010 4:02 am

ну вообщем то да, можно грубой силой в шаблоне поменять где найдешь, а можно в контроллере например:
..\catalog\controller\checkout\cart.php

Код: выделить все

Code: Select all

$this->data['checkout'] = HTTPS_SERVER . 'index.php?route=checkout/shipping';

меняем на

Код: выделить все

Code: Select all

$this->data['checkout'] = HTTPS_SERVER . 'index.php?route=checkout/guest_step_1';
ну и аналогично с
common/header.php
information/sitemap.php

больше вроде нигде не встречается.

Newbie

Posts

Joined
Fri Jan 22, 2010 6:39 am

Post by Karen » Fri Jun 11, 2010 4:36 am

Hmmm...(if I trust the Russian-English translation Babelfish gave me), that SEEMS like it should work. Thank you.

It returned a page not found error for me on first try, but I'll take some more time to examine the cart.php script and see where I may have made the error.

Using OC version 1.4.8b
http://catandcaboodle.com/


User avatar
Active Member

Posts

Joined
Thu Jun 10, 2010 2:51 pm
Location - WA State, USA

Post by Karen » Fri Jun 11, 2010 3:57 pm

Do any of the developers have an answer to this one? It does seem like it should be a simple thing but so far I can't figure it out.

From the URLs, the steps go from "checkout/cart" to "account/login", which, when "Guest Checkout" is selected, goes to "checkout/guest_step_1". I've looked at both cart.php and guest_step_1.php but can't figure out how to skip over the "account/login".

Using OC version 1.4.8b
http://catandcaboodle.com/


User avatar
Active Member

Posts

Joined
Thu Jun 10, 2010 2:51 pm
Location - WA State, USA

Post by Karen » Mon Jun 14, 2010 6:52 am

Okay, I finally figured this out - when it finally dawned on me that neither cart link needs to call a script. All it has to do is be a hotlink.

Thought by posting this I could keep somebody else from tearing their hair out. So...if your customers don't ever need to register (personally, when I'm shopping I find the very offer of registering off-putting) and you want them to go straight to guest_checkout_1 when they click a Checkout button, here's what you do:

In catalog/view/theme/default/template/checkout/cart, find the following:

Code: Select all

<td align="right"><a onclick="location = '<?php echo str_replace('&', '&', $checkout); ?>'" class="button"><span><?php echo $button_checkout; ?></span></a></td>
and replace it with:

Code: Select all

<td align="right"><a href="index.php?route=checkout/guest_step_1" style ="text-decoration: none"><div class="button"><span><?php echo $button_checkout; ?></span></a></td>
The following is for your left or right column cart module, which in v1.4.8 includes a checkout link as well. In catalog/view/theme/default/template/module/cart, find the following:

Code: Select all

<a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a></div>
And replace it with the following:

Code: Select all

<a href="index.php?route=checkout/guest_step_1"><?php echo $text_checkout; ?></a></div>
And that's it.

User avatar
Active Member

Posts

Joined
Thu Jun 10, 2010 2:51 pm
Location - WA State, USA

Post by Karen » Tue Jun 15, 2010 6:45 am

Thanks what I get for posting a solution without clearing my browser cache. The above doesn't work. Stay tuned...

Using OC version 1.4.8b
http://catandcaboodle.com/


User avatar
Active Member

Posts

Joined
Thu Jun 10, 2010 2:51 pm
Location - WA State, USA

Post by tonybridger » Tue Jun 15, 2010 7:41 am

Have you done a search on the forum for this. I found instruction on how to do this on here a couple of weeks ago

Newbie

Posts

Joined
Mon May 31, 2010 2:43 am

Post by Qphoria » Tue Jun 15, 2010 12:03 pm

A quick search would have found this:
http://forum.opencart.com/viewtopic.php?t=8872

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Karen » Tue Jun 15, 2010 6:18 pm

Qphoria wrote:A quick search would have found this:
http://forum.opencart.com/viewtopic.php?t=8872
Thanks for posting this, Qphoria. I DO search, and pretty thoroughly, every issue before posting, and I didn't find this one.

Like the poster in this post, this solution doesn't work for me, either. (I used your 1.4 solution).

I need the CHECKOUT buttons to pass the customer directly to guest_checkout_1. Guess I need to learn how to code PHP...but I keep hoping someone who's solved this has the answer for me.

What makes this especially difficult for me to figure out is that there is no template for that login page, nor a php script in the controller checkout files for it. I'm lost...

Using OC version 1.4.8b
http://catandcaboodle.com/


User avatar
Active Member

Posts

Joined
Thu Jun 10, 2010 2:51 pm
Location - WA State, USA

Post by yokan » Thu Jan 20, 2011 5:20 am

how we can do on 1.4.9.2 ?

Newbie

Posts

Joined
Wed Jan 19, 2011 8:02 am

Post by fido-x » Thu Jan 20, 2011 8:30 am

You will need to edit the following 4 files:
  • catalog/controller/checkout/cart.php
    catalog/controller/common/header.php
    catalog/controller/information/sitemap.php
    catalog/controller/module/cart.php
catalog/controller/checkout/cart.php
Change line 209 from:

Code: Select all

$this->data['checkout'] = HTTPS_SERVER . 'index.php?route=checkout/shipping'; 
to:

Code: Select all

$this->data['checkout'] = HTTPS_SERVER . 'index.php?route=checkout/guest_step_1'; 
catalog/controller/common/header.php
Change line 90 from:

Code: Select all

$this->data['checkout'] = HTTPS_SERVER . 'index.php?route=checkout/shipping'; 
to:

Code: Select all

$this->data['checkout'] = HTTPS_SERVER . 'index.php?route=checkout/guest_step_1'; 
catalog/controller/information/sitemap.php
Change line 51 from:

Code: Select all

$this->data['checkout'] = HTTPS_SERVER . 'index.php?route=checkout/shipping'; 
to:

Code: Select all

$this->data['checkout'] = HTTPS_SERVER . 'index.php?route=checkout/guest_step_1'; 
catalog/controller/module/cart.php
Change line 18 from:

Code: Select all

$this->data['checkout'] = HTTPS_SERVER . 'index.php?route=checkout/shipping'; 
to:

Code: Select all

$this->data['checkout'] = HTTPS_SERVER . 'index.php?route=checkout/guest_step_1'; 
Then (same file) change line 151 from:

Code: Select all

$checkout = HTTPS_SERVER . 'index.php?route=checkout/shipping'; 
to:

Code: Select all

$checkout = HTTPS_SERVER . 'index.php?route=checkout/guest_step_1'; 

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by yokan » Thu Jan 20, 2011 9:57 pm

fido-x so many thanks :)
i make it really work,how we can do directy go skip 3 without addres? now i am still change your mods skip1 to 3 but without addres not got skip 3 how i can done it directly without addres information go skip3 :)

Newbie

Posts

Joined
Wed Jan 19, 2011 8:02 am

Post by yokan » Fri Jan 21, 2011 1:56 am

when i add shopping card any item and click view and on shopping card checkout button do not asked me account login
but if i click direct main page checkout again asked me login or guest we can do also for mainpage checkout directly?
also i need passed addres information i wanna when i click checkout direct go step 3

Newbie

Posts

Joined
Wed Jan 19, 2011 8:02 am

Post by ivex » Sat Mar 12, 2011 7:06 am

FIDO-X...YOU ARE A GENIOUS!!! Thank you so much. Your solution worked exactly as prescribed.

Newbie

Posts

Joined
Sat Mar 12, 2011 7:04 am

Post by fido-x » Sat Mar 12, 2011 10:56 am

There is a vQmod available for this. viewtopic.php?f=131&t=26937

But, I'll need to update it to include the sitemap page (something I missed).

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia
Who is online

Users browsing this forum: No registered users and 2 guests