..\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
больше вроде нигде не встречается.
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/
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/
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>
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>
Code: Select all
<a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a></div>
Code: Select all
<a href="index.php?route=checkout/guest_step_1"><?php echo $text_checkout; ?></a></div>
Using OC version 1.4.8b
http://catandcaboodle.com/
Thanks for posting this, Qphoria. I DO search, and pretty thoroughly, every issue before posting, and I didn't find this one.Qphoria wrote:A quick search would have found this:
http://forum.opencart.com/viewtopic.php?t=8872
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/
- catalog/controller/checkout/cart.php
catalog/controller/common/header.php
catalog/controller/information/sitemap.php
catalog/controller/module/cart.php
Change line 209 from:
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';
Change line 90 from:
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';
Change line 51 from:
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';
Change line 18 from:
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';
Code: Select all
$checkout = HTTPS_SERVER . 'index.php?route=checkout/shipping';
Code: Select all
$checkout = HTTPS_SERVER . 'index.php?route=checkout/guest_step_1';
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!
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
But, I'll need to update it to include the sitemap page (something I missed).
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!
Users browsing this forum: No registered users and 4 guests