Knowledgebase : X-cart Mods & Addons > One Page Checkout
Yes. Google checkout operates independently of the One Page Checkout, and they are fully compatible.
Yes, the One Page Checkout is compatible with all modern browsers on all platforms.
The checkout is a very advanced system. It is easy to break the internal code of the checkout when removing an element with an id assigned, ex:
. When editing the checkout it is important to keep the id attribute tags and template structure in place.
...
If you are using X-Cart 4.1.1 or greater you can enable the shipping firstname and lastname fields in "General Settings -> User Profile Options".
If you are using X-Cart 4.0.x you will need to change this in the skin1/modules/Checkout_One/checkout_one_...
Yes, the One Page Checkout is fully compatible with X-Cart Pro.
This is usually caused by one of the following:
1. The module isn't enabled in the Admin->Modules section.
2. The one page checkout is in IP restricted mode, and your IP hasn't been entered.
3. The code entered into the cart.php is in ...
This error is not caused by the One Page Checkout. This error is caused by not having the correct zones set up on your store, or not having any shipping methods assigned to your existing zones. Please refer to the X-Cart manual on how to setup zones and s...
This error is generally caused by either a PHP headers error, a cannot redeclare a function error, a PHP file containing whitespace or lines after the final ?>, or an installation error.
Go to admin/logs.php and view the PHP errors that occurred duri...
To determine if the X-Cart code is the cause, or if the One Page Checkout is the cause, you can switch back and forth between the default multi-page checkout and the One Page checkout for your session only. This is done by adding &co_disable=Y to the end...
To prevent this error from occurring open /include/check_useraccount.php and find this code near line 162:
if ($active_modules['Users_online'] && !defined('IS_ROBOT')) {
include $xcart_dir."/modules/Users_online/registered_user.php";
include $xcart_...
This is caused by a conflict with the Google Chrome browser. Enable this option to fix this:
General Settings -> Modules -> One Page Checkout -> Display payment options as radio buttons:
You will also want to make sure this option is enabled:
G...
This error is usually caused by not having the correct zones set up on your store, or not having any shipping methods assigned to your existing zones. Please refer to the X-Cart manual on how to setup zones and shipping methods.
To test your store usin...
This is caused by either:
1. Invalid HTML somewhere on the page. Likely a stray or tag. A common place for this is the txt_conditions_customer language variable. You can edit this text in the X-Cart admin -> Languages section.
2. For versions 1.3 ...
Setting up your test environment:
Because the checkout process is such a critical part of your store the One Page Checkout contains a built in feature to limit the One Page Checkout display to only select IP addresses.
1. Determine your IP. You...
1. Enable this option:
General Settings -> Modules -> One Page Checkout -> Use the One Page Checkout credit card validation template in place of the default X-Cart template (Only for Visa, MC, AMEX, or Discover):
2. Make sure only VISA, MC, DINO, AM...
If your site is setup with the same template structure as default X-Cart the One Page Checkout will automatically take the look of your site.
If you have changed the templates used in the skin1/customer/home.tpl or skin1/modules/Fast_Lane_Checkout/home...
By default the one page checkout only displays the middle column. This is by design and recommended. It is always good practice to keep the checkout as uncluttered, and free of distractions.
If, however, you prefer to display each column into the check...
The issue is MSN (and other IE based browsers) will present itself as a different browser when you load a page with the MSN web browser vs when you make an AJAX call with the MSN browser. This causes X-Cart to delete the session thinking someone is trying...
This is caused by the checkout going into non-AJAX mode when it shouldn't. To fix:
Disable this option if it is available on your store (not all versions have this option):
General Settings -> Modules -> One Page Checkout -> Redirect to the non-AJAX...
1. You must have a valid security certificate, and have this properly configured on your site. Please contact your web host for more information on this.
2. Enable this option: General Settings -> Security options -> Use HTTPS for users' login and regi...
1. Set the desired order of your shipping methods in the X-Cart -> Shipping Methods section. The method you wish to be the default will need to have a position of 0.
2. Make the following changes to the cart.php file:
Find this code:
#
# If curr...
Disable this option: General Settings -> General Options -> Disable anonymous checkout:
This is caused by a conflict with the cookie used by the Greet Visitor module. To disable the cookie during the checkout:
modules/Greet_Visitor/set_cookie.php
After:
if ( !defined('XCART_SESSION_START') ) { header("Location: ../../"); die("Access...
To fix this make the following edit:
payment/payment_points.php
Find this code (2 to 4 times depending on your version):
func_header_location($redirect_to."/cart.php?mode=checkout&ezrecommends=Y");
Replace with:
func_header_location($redi...
This module for X-Cart will save the contents of the shopping cart for all customers on your store, even anonymous customers who haven't registered. This will also save the cart for customers who close their browser, or leave for a short time only to find...
In modules/News_Management/register_newslists.tpl
Change:
<input type="checkbox"
to:
<input type="checkbox" checked="checked"
If you have more than one you would need to add a conditional:
Replace name_to_check with the name ...
To display an option that says "Select...", and require the customer to change this to a valid state before submitting the form use the the following SQL statement. This can be entered in your X-Cart admin -> Patch/Upgrade -> SQL Query(ies) section:
IN...
The $userinfo array is being populated incorrectly in the cart.php file. This should be empty, but it populated with the default address on some X-Cart stores. To fix:
Open the cart.php file and change this (near the bottom):
// Checkout One :: www....
The checkout doesn't contain any internal button code. It calls the standard X-Cart buttons templates.
However, the X-Cart button code in 4.2 has been re-written, and is not compatible with IE. To over come bugs in the CSS code or IE, or both, X-Cart i...
Make the following change to save the notes in the customers current session:
payment/auth.php
After:
x_load('files',"payment");
Add:
x_session_register('save_customer_notes');
$save_customer_notes = $_POST['Customer_Notes'] ? $_POST['Cu...
--------------------------------------------------------------------------------
Make the following change to save the notes in the customers current session:
payment/auth.php
After:
x_load('files',"payment");
Add:
x_session_...
Somewhere around X-Cart version 4.1.8 or later, X-Cart changed the include/payment_method.php file introducing a bug that will not allow a $0 order. When a $0 order is submitted there is an error:
Order processing error !
Payment processor can not pro...
skin1/customer/head.tpl
Change:
{if $main ne "fast_lane_checkout"}
to:
{if $main ne "fast_lane_checkout" && $main != 'Checkout_One'}
--------------------------------------------------------------------------------
Related Artic...
This is caused by the JavaScript code that displays the "user and password are the same" warning to the customer. To prevent this from happening on the AJAX login make this change:
include/login.php
Find this code near line 270:
$default_accoun...
To fix:
Open the skin1/modules/Checkout_One/checkout_one_home.tpl and find this code near line 88:
{$lng.lbl_co_forget_user_pass}
{$lng.lbl_co_enter_reg_email}
After insert:
{if $version42}
{$lng.lbl_username}:
{/if}
----...
The terms and conditions can be changed by editing the txt_conditions_customer language variable in your X-Cart admin -> Languages section.
--------------------------------------------------------------------------------
Related Articles
•I've ...
The internal X-Cart JavaScript state selection doesn't work on some versions of X-Cart when used with Google Chrome. To use a non-AJAX login for Chrome users make the following change:
skin1/modules/Checkout_One/checkout_one.tpl:
Find this code near...
For PayPal Express to work correctly on the One Page Checkout there are two specific requirements.
NOTE: #1 does not apply when a customer uses the PayPal button on the cart page.
1. The PayPal payment option must be manually selected by a customer ...
To display an option that says "Select...", and require the customer to change this to a valid state before submitting the form use the the following SQL statement. This can be entered in your X-Cart admin -> Patch/Upgrade -> SQL Query(ies) section:
IN...
The $userinfo array is being populated incorrectly in the cart.php file. This should be empty, but it populated with the default address on some X-Cart stores. To fix:
Open the cart.php file and change this (near the bottom):
// Checkout One :: www....
The checkout doesn't contain any internal button code. It calls the standard X-Cart buttons templates.
However, the X-Cart button code in 4.2 has been re-written, and is not compatible with IE. To over come bugs in the CSS code or IE, or both, X-Cart i...
Make the following change to save the notes in the customers current session:
payment/auth.php
After:
x_load('files',"payment");
Add:
x_session_register('save_customer_notes');
$save_customer_notes = $_POST['Customer_Notes'] ? $_POST['Cu...
Somewhere around X-Cart version 4.1.8 or later, X-Cart changed the include/payment_method.php file introducing a bug that will not allow a $0 order. When a $0 order is submitted there is an error:
Order processing error !
Payment processor can not pro...
skin1/customer/head.tpl
Change:
{if $main ne "fast_lane_checkout"}
to:
{if $main ne "fast_lane_checkout" && $main != 'Checkout_One'}
This is caused by the JavaScript code that displays the "user and password are the same" warning to the customer. To prevent this from happening on the AJAX login make this change:
include/login.php
Find this code near line 270:
$default_accounts...
To fix:
Open the skin1/modules/Checkout_One/checkout_one_home.tpl and find this code near line 88:
{$lng.lbl_co_forget_user_pass}
{$lng.lbl_co_enter_reg_email}
After insert:
{if $version42}
{$lng.lbl_username}:
{/if}
The terms and conditions can be changed by editing the txt_conditions_customer language variable in your X-Cart admin -> Languages section.
The internal X-Cart JavaScript state selection doesn't work on some versions of X-Cart when used with Google Chrome. To use a non-AJAX login for Chrome users make the following change:
skin1/modules/Checkout_One/checkout_one.tpl:
Find this code near...
For PayPal Express to work correctly on the One Page Checkout there are two specific requirements.
NOTE: #1 does not apply when a customer uses the PayPal button on the cart page.
1. The PayPal payment option must be manually selected by a customer ...
The issue is the internal X-Cart state/country JavaScript fields fail when being changed in Chrome/Safari (Webkit based browsers). The code below will force a refresh when the customer logs in. Here is how to do this:
skin1/modules/Checkout_One/checkou...
By default the checkout shows an estimated time based on the default settings. If you have a custom time, or want to show exact times make the following edit to the modules/Checkout_One/checkout_one_shipping.php file:
Change this code near line 75:
...
To add the ability to scroll the products make the following edit:
Open the skin1/modules/Checkout_One/checkout_one_cart.tpl and change this code near line 23:
to:
Note: X-Cart 4.4.x and greater will need to edit the skin/common_files...
Help Desk Software by Kayako