robkwal Posted July 5, 2011 Share Posted July 5, 2011 Hi,I am running the latest version of Prestashop with the one page checkout option, set via preferences in the back office and what I am trying to do is remove the option to register/login so the only option is instant checkout! I have removed all the login/register boxes, but now need the instant checkout form to be automatically selected/expanded when you arrive at the cart summary/checkout! As shown in the image provided.Any help please! Link to comment Share on other sites More sharing options...
robkwal Posted July 6, 2011 Author Share Posted July 6, 2011 Anyone, my site is so close to being complete! Link to comment Share on other sites More sharing options...
wakaka Posted July 11, 2011 Share Posted July 11, 2011 This is the same what i want, any solution? Link to comment Share on other sites More sharing options...
PiotrLolo Posted July 14, 2011 Share Posted July 14, 2011 I'm trying to do the same. Still without results edit: Ok, I think my solution will work =)1. go to MAINFOLDER/themes/yourtheme/js folder2. find a file called order-opc.js3. find this section (from line 358 in my theme) $(function() { // GUEST CHECKOUT / NEW ACCOUNT MANAGEMENT if ((!isLogged) || (isGuest)) { if (guestCheckoutEnabled && !isLogged) { $('#opc_account_choice').show(); $('#opc_account_form').hide(); $('#opc_invoice_address').hide(); $('#opc_createAccount').click(function() { $('.is_customer_param').show(); $('#opc_account_form').slideDown('slow'); $('#is_new_customer').val('1'); $('#opc_account_choice').hide(); $('#opc_invoice_address').hide(); updateState(); updateNeedIDNumber(); updateZipCode(); }); $('#opc_guestCheckout').click(function() { $('.is_customer_param').hide(); $('#opc_account_form').slideDown('slow'); $('#is_new_customer').val('0'); $('#opc_account_choice').hide(); $('#opc_invoice_address').hide(); $('#new_account_title').html(txtInstantCheckout); updateState(); updateNeedIDNumber(); updateZipCode(); }); } else if (isGuest) and add one line at the end of it: $(function() { // GUEST CHECKOUT / NEW ACCOUNT MANAGEMENT if ((!isLogged) || (isGuest)) { if (guestCheckoutEnabled && !isLogged) { $('#opc_account_choice').show(); $('#opc_account_form').hide(); $('#opc_invoice_address').hide(); $('#opc_createAccount').click(function() { $('.is_customer_param').show(); $('#opc_account_form').slideDown('slow'); $('#is_new_customer').val('1'); $('#opc_account_choice').hide(); $('#opc_invoice_address').hide(); updateState(); updateNeedIDNumber(); updateZipCode(); }); $('#opc_guestCheckout').click(function() { $('.is_customer_param').hide(); $('#opc_account_form').slideDown('slow'); $('#is_new_customer').val('0'); $('#opc_account_choice').hide(); $('#opc_invoice_address').hide(); $('#new_account_title').html(txtInstantCheckout); updateState(); updateNeedIDNumber(); updateZipCode(); }); $('#opc_guestCheckout').click(); // I'm calling click button automatically } else if (isGuest) It works in my shop v. 1.4.3. 3 Link to comment Share on other sites More sharing options...
andrew Posted February 16, 2012 Share Posted February 16, 2012 Perfect - still works for version 1.4.6.2 Link to comment Share on other sites More sharing options...
andrew Posted April 26, 2012 Share Posted April 26, 2012 How about being able to auto-save the address (i.e. take out the step where the customer has to click on the save button)? 1 Link to comment Share on other sites More sharing options...
ragnabt Posted August 3, 2012 Share Posted August 3, 2012 How about being able to auto-save the address (i.e. take out the step where the customer has to click on the save button)? Exactly the next problem I see in the instant check out form, Going to try the solution above now, hope it works for me... Thanks Link to comment Share on other sites More sharing options...
barefoot Posted November 15, 2012 Share Posted November 15, 2012 (edited) The first solution works for me too, thanks. Any luck in finding a solution for auto saving the address? Edited November 15, 2012 by barefoot (see edit history) Link to comment Share on other sites More sharing options...
dem4nk Posted November 22, 2012 Share Posted November 22, 2012 im so glad cause this is work...thank you PiotrLolo Link to comment Share on other sites More sharing options...
webbie1985 Posted September 11, 2013 Share Posted September 11, 2013 Works on 1.5.5 1 Link to comment Share on other sites More sharing options...
midana Posted August 13, 2014 Share Posted August 13, 2014 (edited) This doesn't seem to work anymore. :/ anyone know how to do it in the new prestashop? EDIT: Nevermind, it works now! It didn't work because I had the choices (the box above the form) commented out. Edited August 13, 2014 by midana (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now