I searched for this, but most solutions seem to be pre-1.5.
I would like to have a basic checkout with no accounts. So, ideally, when a customer clicks checkout, it will take them to step 2 of the guest checkout.
And, if it's not too much to ask, is there a way to remove the country drop-down during checkout? I've removed everything but the United States, but since the States are populated based on it, I'm not sure how to do that.
Thank you in advance!
I would like to have a basic checkout with no accounts. So, ideally, when a customer clicks checkout, it will take them to step 2 of the guest checkout.
And, if it's not too much to ask, is there a way to remove the country drop-down during checkout? I've removed everything but the United States, but since the States are populated based on it, I'm not sure how to do that.
Thank you in advance!
Just remove the part where you can create an account and leave the guest checkout part in tact.
You only need to modify your theme for this I guess.
You only need to modify your theme for this I guess.
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
Hi!
I'm having the same problem.
By the way I have done a little trick to skip de shipping option. This code only autoclicks de button on "continue".
I know it's not the best way to do it but its a way! (It works on Mozilla and Explorer but I think it doesn't in safari)
On catalog/view/theme/default/template/checkout/shipping.tpl add this line:
<script language="Javascript" type="text/javascript">
function clickTheDurnLink(){
document.getElementById('button-shipping').click();
}
window.setTimeout("clickTheDurnLink()", 0);
</script>
just befor this one (line 36):
<div class="buttons">
<div class="right"><a id="button-shipping" class="button"><span><?php echo $button_continue; ?></span></a></div>
</div>
Today or tomorrow I will try to auto-select the non-member checkout radiobutton and auto-click the continue button.
Cheerrs!
Guillermo
I'm having the same problem.
By the way I have done a little trick to skip de shipping option. This code only autoclicks de button on "continue".
I know it's not the best way to do it but its a way! (It works on Mozilla and Explorer but I think it doesn't in safari)
On catalog/view/theme/default/template/checkout/shipping.tpl add this line:
<script language="Javascript" type="text/javascript">
function clickTheDurnLink(){
document.getElementById('button-shipping').click();
}
window.setTimeout("clickTheDurnLink()", 0);
</script>
just befor this one (line 36):
<div class="buttons">
<div class="right"><a id="button-shipping" class="button"><span><?php echo $button_continue; ?></span></a></div>
</div>
Today or tomorrow I will try to auto-select the non-member checkout radiobutton and auto-click the continue button.
Cheerrs!
Guillermo
Hi!
As I said in the last post, it's easy to Autoselect the non-registered checkout option and autoclick button of "continue".
This it's ok to me right now...
Remember that it's a trick. The customers will be able to go back with the "modify" button of the right side to change anything he want.
That's the file to modify:
catalog/view/theme/default/template/checkout/login.tpl
That's the code to put on the first line:
To autoselect always the non-registered user checkout have a look at the code:
and swap it with this one:
Is it compatible with every navigator? Try on mozilla, explorer, safari, etc. The code is very simple so it should work... On my Safari it doesn't.
As I said in the last post, it's easy to Autoselect the non-registered checkout option and autoclick button of "continue".
This it's ok to me right now...
Remember that it's a trick. The customers will be able to go back with the "modify" button of the right side to change anything he want.
That's the file to modify:
catalog/view/theme/default/template/checkout/login.tpl
That's the code to put on the first line:
Code: Select all
<script language="Javascript" type="text/javascript">
function clickTheDurnLink(){
document.getElementById('button-account').click();
}
window.setTimeout("clickTheDurnLink()", 0);
</script>
Code: Select all
<input type="radio" name="account" value="register" id="register" checked="checked"/>
<?php } else { ?>
<input type="radio" name="account" value="register" id="register" />
<?php } ?>
<b><?php echo $text_register; ?></b></label>
<br />
<?php if ($guest_checkout) { ?>
<label for="guest">
<?php if ($account == 'guest') { ?>
<input type="radio" name="account" value="guest" id="guest" checked="checked" />
<?php } else { ?>
<input type="radio" name="account" value="guest" id="guest" />
Code: Select all
<input type="radio" name="account" value="register" id="register" />
<?php } else { ?>
<input type="radio" name="account" value="register" id="register" />
<?php } ?>
<b><?php echo $text_register; ?></b></label>
<br />
<?php if ($guest_checkout) { ?>
<label for="guest">
<?php if ($account == 'guest') { ?>
<input type="radio" name="account" value="guest" id="guest" checked="checked" />
<?php } else { ?>
<input type="radio" name="account" value="guest" id="guest" checked="checked" />
That's the way I have the selection. (see link)sferris wrote:Thank you so much, gtamborero! It does work on IE, I tried it on FF, Safari & Chrome and it does auto select the guest checkout, but it doesn't automatically advance to the address. It's still better than nothing.
(I have deleted the customer register option, the Login sidebar, and arranged the text)
On mozilla should work! It does on mine

Attachments
muestra.jpg (54.39 KiB) Viewed 35610 times
Thanks, Guillermo! and all
I have a issue that is to hide all of steps except Step 2 - billing details and Step 6 - confirm order. In my store, customers add to cart then only fill personal details and confirm orders. How to do this customization? Please, give me some advice.
Thanks in advance.
I have a issue that is to hide all of steps except Step 2 - billing details and Step 6 - confirm order. In my store, customers add to cart then only fill personal details and confirm orders. How to do this customization? Please, give me some advice.
Thanks in advance.
Hi There!
I have been improving the code for the multiple Auto - skip checkout proces on Opencart so now it's working on all browsers (mozilla, safari, Explorers, Chrome...)
To skip the account option just copy paste this code on the top of the catalog/view/theme/default/template/checkout/login.tpl:
Remember to have a look to some older post I have done to autoselect login options.
To skip the shipping option just copy paste this code on the top of the catalog/view/theme/default/template/checkout/shipping.tpl:
To skip the payment option just copy paste this code on the top of the catalog/view/theme/default/template/checkout/payment.tpl:
In these case, in opencart 1.5 you also will have to change this code (line 36):
to this one:
Remember that these tricks will only work if the default option is the one you want (or if you force opencart to autoselect one concrete option)
I have been improving the code for the multiple Auto - skip checkout proces on Opencart so now it's working on all browsers (mozilla, safari, Explorers, Chrome...)
To skip the account option just copy paste this code on the top of the catalog/view/theme/default/template/checkout/login.tpl:
Code: Select all
<script language="Javascript" type="text/javascript">
$(document).ready(function(){
$('#button-account').trigger('click');
});
</script>
To skip the shipping option just copy paste this code on the top of the catalog/view/theme/default/template/checkout/shipping.tpl:
Code: Select all
<script language="Javascript" type="text/javascript">
$(document).ready(function(){
$('#button-shipping').trigger('click');
});
</script>
To skip the payment option just copy paste this code on the top of the catalog/view/theme/default/template/checkout/payment.tpl:
Code: Select all
<script language="Javascript" type="text/javascript">
$(document).ready(function(){
$('#button-payment').trigger('click');
});
</script>
Code: Select all
<input type="checkbox" name="agree" value="1"/>
Code: Select all
<input type="checkbox" name="agree" value="1" checked="checked"/>
My solution for skipping step 1 in the checkout process:
login.tpl
stylesheet
because this skips registration and hides step 1 alomost immeadiately without animation, you have to edit your language file though (step 2 is now step 1 etc.)
login.tpl
Code: Select all
$('input[name=account]:eq(1)').attr('checked', 'checked');
$('#button-account').trigger('click');
Code: Select all
#checkout {
display: none;
}
I'm a little confused. I want to not only redirect customers from the checkout pages to the guest checkout pages, but also disable the login and account features. I have read what you have written but are unsure of what steps I should do.
Would you like to write how you solved this, step by step, that an amateur as I can understand? You have written so many codes here and I would also like to make it work in all browsers (if you have got it to work in all browsers).
Thanks in advance!
Update: I also want to disable country selection (only to have Sweden and its regions).
Would you like to write how you solved this, step by step, that an amateur as I can understand? You have written so many codes here and I would also like to make it work in all browsers (if you have got it to work in all browsers).
Thanks in advance!
Update: I also want to disable country selection (only to have Sweden and its regions).
Rebecka went over to PrestaShop.
Ok, I think I should do this step in each case. Where can I find login.tpl?simpl3 wrote:My solution for skipping step 1 in the checkout process:
login.tpl
stylesheetCode: Select all
$('input[name=account]:eq(1)').attr('checked', 'checked'); $('#button-account').trigger('click');
because this skips registration and hides step 1 alomost immeadiately without animation, you have to edit your language file though (step 2 is now step 1 etc.)Code: Select all
#checkout { display: none; }
By doing this I'll just redirect? How do I disable the login/account functions as well?
Rebecka went over to PrestaShop.
template/checkout/login.tpl
just try and see if it fits your needs
login functionality is still there, buts its not visible to the user, of course you have to get rid of the stuff related to login in other parts of the layout (header e.g.)
just try and see if it fits your needs
login functionality is still there, buts its not visible to the user, of course you have to get rid of the stuff related to login in other parts of the layout (header e.g.)
Sorry, but I do not really understand.
Am I supposed to change, modify or add (?) this:
In the login.tpl file? Where and how?
This is how the login.tpl file looks like from the beginning:
And this:
In the stylesheet (stupid question perhaps, but where can I find the stylesheet?).
Am I supposed to change, modify or add (?) this:
Code: Select all
$('input[name=account]:eq(1)').attr('checked', 'checked');
$('#button-account').trigger('click');
This is how the login.tpl file looks like from the beginning:
Code: Select all
<div class="left">
<h2><?php echo $text_new_customer; ?></h2>
<p><?php echo $text_checkout; ?></p>
<label for="register">
<?php if ($account == 'register') { ?>
<input type="radio" name="account" value="register" id="register" checked="checked" />
<?php } else { ?>
<input type="radio" name="account" value="register" id="register" />
<?php } ?>
<b><?php echo $text_register; ?></b></label>
<br />
<?php if ($guest_checkout) { ?>
<label for="guest">
<?php if ($account == 'guest') { ?>
<input type="radio" name="account" value="guest" id="guest" checked="checked" />
<?php } else { ?>
<input type="radio" name="account" value="guest" id="guest" />
<?php } ?>
<b><?php echo $text_guest; ?></b></label>
<br />
<?php } ?>
<br />
<p><?php echo $text_register_account; ?></p>
<a id="button-account" class="button"><span><?php echo $button_continue; ?></span></a><br />
<br />
</div>
<div id="login" class="right">
<h2><?php echo $text_returning_customer; ?></h2>
<p><?php echo $text_i_am_returning_customer; ?></p>
<b><?php echo $entry_email; ?></b><br />
<input type="text" name="email" value="" />
<br />
<br />
<b><?php echo $entry_password; ?></b><br />
<input type="password" name="password" value="" />
<br />
<a href="<?php echo $forgotten; ?>"><?php echo $text_forgotten; ?></a><br />
<br />
<a id="button-login" class="button"><span><?php echo $button_login; ?></span></a><br />
<br />
</div>
Code: Select all
#checkout {
display: none;
}
Rebecka went over to PrestaShop.
Who is online
Users browsing this forum: No registered users and 150 guests