Knowledgebase
Can I use Remember Me on One Page Checkout Registration?
Posted by Nick Poindexter on 04 March 2010 04:50 PM
Remember Me for X-Cart can be made compatible with One Page Checkout for X-Cart with the following code changes. Be sure to have installed both Remember Me and One Page Checkout prior to implementing the following additional changes:

Open /modules/Checkout_One/checkout_one_register.php

FIND:

$identifiers[$usertype] = array ('login' => $login, 'login_type' => $login_type,);

AFTER ADD:

// WCM - Remember Me
if (!$anonymous_user AND $login_type == 'C' AND $remember == 'Y')
include $xcart_dir.'/modules/Remember_Me/set_cookie_register.php';
// / WCM - Remember Me

Open /skin1/modules/Checkout_One/checkout_one_register_account.tpl

FIND:

<tr id="passwd1display" {if $config.Checkout_One.co_hide_password eq 'Y'}style="display:none;"{/if}>

BEFORE ADD:

{* WCM - Remember Me *}
{include file="modules/Remember_Me/register_remember_me.tpl"}
{* / WCM - Remember Me *}

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments: