Jump to content

Modification for Express Checkout without the Option to Register or Log In


Recommended Posts

First, it is good if you have a little bit of experience at least knowing how to find code within files and modify it (yo don't actually have to know hoe to write code).

You'll need to follow the steps to install IonCannon's Express checkout....

Make SURE you use PSPmyadmin or another SQL program to so the SQL datebase edits to add the guest account or the express checkout won't work. (Its really not as hard as it sounds, and if you don't know it, its really a good thing to learn)

(which works great as long as you do it correctly)

http://www.prestashopfreemodules.com/ioncannon’s-express-checkout-v1-0/

and then you will need to find your authentication.tpl file in your desigated theme folder, such as in /prestashop/"your theme"

Open the file (after Ion installation), and look for the lines of code that look like this:

{if !isset($email_create)}{l s='Log in'}{else}{l s='Create your account'}{/if}

{assign var='current_step' value='login'}
{include file=$tpl_dir./order-steps.tpl}

{include file=$tpl_dir./errors.tpl}

{if isset($confirmation)}


{l s='Your account has been successfully created.'}


{l s='Access your account'}


{else}
   {if ($back != "my-account.php") && !isset($email_create)}



and

{l s='Create your account'}
{l s='Enter your e-mail address to create your account'}.


{l s='E-mail address'}
<input type="text" id="email_create" name="email_create" value="{if isset($smarty.post.email_create)}{$smarty.post.email_create|escape:'htmlall'|stripslashes}{/if}" class="account_input" /></span>



               {if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'htmlall':'UTF-8'}" />{/if}
                   <input type="submit" id="SubmitCreate" name="SubmitCreate" class="button_large" value="{l s='Create your account'}" />
                   <input type="hidden" class="hidden" name="SubmitCreate" value="{l s='Create your account'}" />



and

{l s='Already registered ?'}


{l s='E-mail address'}
<input type="text" id="email" name="email" value="{if isset($smarty.post.email)}{$smarty.post.email|escape:'htmlall'|stripslashes}{/if}" class="account_input" /></span>



{l s='Password'}
<input type="password" id="passwd" name="passwd" value="{if isset($smarty.post.passwd)}{$smarty.post.passwd|escape:'htmlall'|stripslashes}{/if}" class="account_input" /></span>



                   {if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'htmlall':'UTF-8'}" />{/if}
                   <input type="submit" id="SubmitLogin" name="SubmitLogin" class="button" value="{l s='Log in'}" />


{l s='Forgot your password?'}



Now, you will need to "comment out" these parts of the script, which means that they will remain within the code, put not appear on the page. This is done by putting a <!-- before every

tag and a --> after every tag. This will remove the options on the checkout page to register and need to log in.

Now, after you have successfully done all of this, the last step is going to be to get rid of the annoying "Welcome Log in Account" stuff in the upper right hand corner above the cart block.

Go to your prestashop backoffice and go to your modules, and uninstall the "User Info Block"

Now, Viola! Your customers no longer have the option to log in, or register, and have a one page functional express checkout. Enjoy!
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...