Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Easy Checkout Mod for X-Cart 3.5.x and 4.0.x

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #61  
Old 09-16-2004, 10:01 AM
 
Ryano Ryano is offline
 

Senior Member
  
Join Date: Jun 2004
Posts: 192
 

Default

I appreciate that Jon. I've noticed that a lot of people have started a cart on my site, and then then no final checkout, so I'm sure this mod will do me some good. The only other thing now is do I need to be familiar with phpmyadmin? Because I'm still learning x-cart as I go. How hard is it to install it? It is definitely a great mod.
__________________
xcart v3.5.8 (Unix)
and
xcart v4.0.13
Reply With Quote
  #62  
Old 09-16-2004, 10:17 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

I've made it so that it's very easy to install. Takes about 10 minutes if you know what your doing.

You don't need to know phpmyadmin.

You do need to know how to:

add new language variables to your store through the admin section

upload the files provided to the proper directories

Open and edit php and tpl files according to the instructions provided. There are only 4 or 5 files that need editing depending on the version.

Here's a sample of the type of editing you need to do:

FIND:

Code:
if ($mode == "checkout" || $mode == "auth") { # # Calculate total number of checkout process steps #

After Add:

Code:
$smarty->assign("mode",$mode);
Reply With Quote
  #63  
Old 09-16-2004, 10:30 AM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default

I can confirm that it's very easy to install.

If I can do it then anyone can
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote
  #64  
Old 09-16-2004, 03:55 PM
  rjcbear's Avatar 
rjcbear rjcbear is offline
 

X-Adept
  
Join Date: Jun 2004
Location: Alabama,U.S.A
Posts: 503
 

Default

Hey every one,

Can some one post their web site that has Jon checkout mod working so every one can see how it looks in some one elses site besides Jon.

Kind regards,
Ricky
__________________
X-CART Gold version 4.0.14 & 4.1.11
Apache Version 1.3.29 (Unix)
EWDHosting-Quality X-cart Hosting
We will always sell you the right shoe and the left one is free.
Reply With Quote
  #65  
Old 09-16-2004, 04:10 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

Here's another change I've made to change the "order processing" message after noticing that a lot of paypal orders were being left as incomplete. When they pay by credit card their order is being processed, but when it's being paid by paypal it's only transferring them, so I changed the message.

This is for 3.5.x but should work very similar on 4.0.x

Open payment/payment_paypal.php

FIND:

Code:
include $xcart_dir."/include/payment_wait.php";

BEFORE THAT ADD:

Code:
$wait_message = "paypal";

Open include/payment_wait.php

REPLACE ENTIRE FILE WITH:

Code:
<?php /*****************************************************************************\ +-----------------------------------------------------------------------------+ | X-Cart | | Copyright (c) 2001-2004 Ruslan R. Fazliev <rrf@rrf.ru> | | All rights reserved. | +-----------------------------------------------------------------------------+ | PLEASE READ THE FULL TEXT OF SOFTWARE LICENSE AGREEMENT IN THE "COPYRIGHT" | | FILE PROVIDED WITH THIS DISTRIBUTION. THE AGREEMENT TEXT IS ALSO AVAILABLE | | AT THE FOLLOWING URL: http://www.x-cart.com/license.php | | | | THIS AGREEMENT EXPRESSES THE TERMS AND CONDITIONS ON WHICH YOU MAY USE | | THIS SOFTWARE PROGRAM AND ASSOCIATED DOCUMENTATION THAT RUSLAN R. | | FAZLIEV (hereinafter referred to as "THE AUTHOR") IS FURNISHING OR MAKING | | AVAILABLE TO YOU WITH THIS AGREEMENT (COLLECTIVELY, THE "SOFTWARE"). | | PLEASE REVIEW THE TERMS AND CONDITIONS OF THIS LICENSE AGREEMENT | | CAREFULLY BEFORE INSTALLING OR USING THE SOFTWARE. BY INSTALLING, | | COPYING OR OTHERWISE USING THE SOFTWARE, YOU AND YOUR COMPANY | | (COLLECTIVELY, "YOU") ARE ACCEPTING AND AGREEING TO THE TERMS OF THIS | | LICENSE AGREEMENT. IF YOU ARE NOT WILLING TO BE BOUND BY THIS | | AGREEMENT, DO NOT INSTALL OR USE THE SOFTWARE. VARIOUS COPYRIGHTS AND | | OTHER INTELLECTUAL PROPERTY RIGHTS PROTECT THE SOFTWARE. THIS | | AGREEMENT IS A LICENSE AGREEMENT THAT GIVES YOU LIMITED RIGHTS TO USE | | THE SOFTWARE AND NOT AN AGREEMENT FOR SALE OR FOR TRANSFER OF TITLE.| | THE AUTHOR RETAINS ALL RIGHTS NOT EXPRESSLY GRANTED BY THIS AGREEMENT. | | | | The Initial Developer of the Original Code is Ruslan R. Fazliev | | Portions created by Ruslan R. Fazliev are Copyright (C) 2001-2004 | | Ruslan R. Fazliev. All Rights Reserved. | +-----------------------------------------------------------------------------+ \*****************************************************************************/ # # $Id: payment_wait.php,v 1.1.2.1 2004/05/20 08:32:54 mclap Exp $ # if (!defined('XCART_SESSION_START') ) { header("Location: ../"); die("Access denied"); } echo "<table width=\"100%\" height=\"100%\" ><tr><td align=\"center\" valign=\"middle\"><font face=\"Arial, Helvetica, sans-serif\" size=\"+1\" color=\"#000000\">Please Wait ... "; if ($wait_message == "paypal") { echo "We are transferring you to the secure Paypal server."; } else { echo "Your Order Is being Processed."; } echo "</font></td></tr></table>"; func_flush(); ?>
Reply With Quote
  #66  
Old 09-17-2004, 02:42 AM
  boney's Avatar 
boney boney is offline
 

Member
  
Join Date: Jun 2003
Location: UK
Posts: 18
 

Default

Quote:
Can some one post their web site that has Jon checkout mod working so every one can see how it looks in some one elses site besides Jon.

Kind regards,
Ricky

Just installed this mod on our site www.boneclothing.com and it was very straightforward to do. *Edit - Sorry, forgot to mention. This is a live store, so you'll only be able to see the first bit unless you actually wish to make a purchase!

I am very impressed with how it takes the customer through the checkout process. Much easier.

Big thanks to Jon for this

Cheers

Boney
__________________
X-Cart v3.5.10 live! on \'nix
plus X-AOM module
Reply With Quote
  #67  
Old 09-17-2004, 09:04 AM
  rjcbear's Avatar 
rjcbear rjcbear is offline
 

X-Adept
  
Join Date: Jun 2004
Location: Alabama,U.S.A
Posts: 503
 

Default

Boney,

Thank you I am sold. I just wanted to see how it looks in someone elses site. Specially the colors and that stuff you know. But you just made a sale for Jon.

Kind regards,
Ricky
__________________
X-CART Gold version 4.0.14 & 4.1.11
Apache Version 1.3.29 (Unix)
EWDHosting-Quality X-cart Hosting
We will always sell you the right shoe and the left one is free.
Reply With Quote
  #68  
Old 09-17-2004, 12:52 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

Thanks Boney I integrated the mod with the current style sheets, etc. so it shouldn't be a prob with integration.
Reply With Quote
  #69  
Old 09-17-2004, 01:10 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

I was asked a question about moving the discounts/gift certificates up to above the cart, so I want to post the answer here in case anybody else wants to do it.

I believe it's the same for both versions.

To move the discounts section up above the shopping cart, open skin1/customer/cart.tpl

FIND:
Code:
{if $cart.coupon_discount eq 0 and $products ne ""} {if $active_modules.Discount_Coupons ne ""} {include file="modules/Discount_Coupons/add_coupon.tpl} {/if} {/if}

CUT THAT CODE AND PASTE IT NEAR THE TOP OF THE FILE, AFTER:

Code:
{if $active_modules.Gift_Certificates ne ""} {$lng.txt_cart_note} {/if}

If you want to move up gift certificates as well, do the same with the code:

Code:
{if $active_modules.Gift_Certificates ne ""} {include file="modules/Gift_Certificates/gc_cart.tpl" giftcerts_data=$cart.giftcerts} {/if}
Reply With Quote
  #70  
Old 09-17-2004, 01:52 PM
 
zardos zardos is offline
 

Senior Member
  
Join Date: Jun 2004
Location: UK England
Posts: 140
 

Default easy checkout

Very nice mod joh, and very easy to install, nice job.
__________________
X-Cart V4.0.18
PHP 4.3.10
MySQL Server 4.0.22
Apache/1.3.33 (unix)
OS - Linux
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:59 AM.

   

 
X-Cart forums © 2001-2020