X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   Easy Checkout Mod for X-Cart 3.5.x and 4.0.x (https://forum.x-cart.com/showthread.php?t=9085)

Jon 09-13-2004 08:49 AM

EasyCheckout for 4.0 has been completed:
http://www.mixtapemp3.com/customer/product.php?productid=26

Discount coupon for 25% off this month: xcartforum

If you have any suggestions/questions, just let me know here.

adpboss 09-13-2004 09:07 AM

PURCHASED

Jon 09-13-2004 09:30 AM

^ Good stuff. Let me know how you find the installation instructions please.

Also, for anyone who purchases the mod, a couple more suggestions:

1) Edit your include/payment_wait.php (This was a mod posted on the forum but I can't find the thread.)

Replace text with:

Code:

echo
"
<table width=\"100%\" height=\"100%\" >
<tr>
<td align=\"center\" valign=\"middle\"><font face=\"Arial, Helvetica, sans-serif\" size=\"+1\" color=\"#000000\">Please Wait ...
 

 
Your Order Is being Processed </font></td>
</tr>
</table>

";


2) I'd also edit all links to your checkout process, to point to cart.php instead of cart.php?mode=checkout

cotc2001 09-13-2004 09:37 AM

Damn i wanted to get this one, but only at checkout did I realise that you only take visa but not mastercard, im wary of paypal ever since someone hacked my account and ran up $3,000 of charges.
Don't suppose there is a third method of payment???

Jon 09-13-2004 09:43 AM

We're working on setting up Master Card, lots of paper-work.

What other method would you like?

cotc2001 09-13-2004 09:47 AM

hmmm good question didn't think that far ahead :D
Ahhhhh what the hell, this is just the mod i've been looking for so i'll take my chances with paypal.

Jon 09-13-2004 09:54 AM

Heh heh. Alright, let me know when the orders placed so I can make sure you get your download link, and how things go with installation instructions.

The site is nice and secure, and no info's stored, so you shouldn't have a problem using paypal on it.

cotc2001 09-13-2004 10:19 AM

Ok purchased.

Just a though you might want to add a seperate installation product for those who have bought it without the extra installation but then decided it might be better to get you to do it (im just thinking ahead here :D )

Jon 09-13-2004 10:28 AM

Not a bad idea, let me know if you need it ;)

I've tried to make the instructions as simple as possible, so let me know how you find them :D

cotc2001 09-14-2004 02:16 AM

Ok installed fine, found a problem which is probably just me but thought I would check

on the test install that i did http://www.justhom.com

when you goto checkout it reverts back to the default x-cart title on the page but throughout the shop the correct page title is shown

in the instructions you state to backup anonymous_login.tpl

cant find that one in the folder in the V 4.0.3 but there is anonymous_checkout.tpl and that is what is included in your mod .

Cracking mod , love it :D

Jon 09-14-2004 10:34 AM

^ Thanks for the feedback, appreciated.

The anonymous_login.tpl was a typo, thanks.

In the home_checkout.tpl replace everything from <html> down to just before the meta include with:

Code:

<HTML>
<HEAD>
<TITLE>
{if $config.SEO.page_title_format eq "A"}
{section name=position loop=$location}
{$location[position].0|escape}
{if not %position.last%} :: {/if}
{/section}
{else}
{section name=position loop=$location step=-1}
{$location[position].0|escape}
{if not %position.last%} :: {/if}
{/section}
{/if}
</TITLE>


I accidently used the 3.5 title code in that file.

Zip has been updated.

cotc2001 09-14-2004 10:45 AM

Hmmm when trying to put a test order through im getting this error

Code:

Warning: main(./test_get.php): failed to open stream: No such file or directory in /usr/home/justhom/public_html/auth.php on line 163

Fatal error: main(): Failed opening required './test_get.php' (include_path='') in /usr/home/justhom/public_html/auth.php on line 163


not sure whether it's got anything to do with the mod though because it's on my office pc and im working at home on my laptop.

cotc2001 09-14-2004 10:50 AM

Nope sorry my mistake it's got nothing to do with it, it's to do with a testimonial module.

Jon 09-15-2004 08:27 AM

Another good mod to make, is to move UP the Update button, and down the delete button. Have them switch places.

In skin1/customer/main/cart.tpl

SWITCH THE PLACES OF:


AND


EnriqueHavoc 09-15-2004 04:35 PM

a quick reminder for anyone that buys this, turn off your junkmail filter if your email uses one! i missed the download email, thanks for resending jon :D

Ryano 09-15-2004 09:08 PM

Hi Jon, i am interested in purchasing this mod for 3.5x, but I am thinking that later on down the road, maybe two months from now I will upgrade to 4.0. Would I have to repurchase the 4.0 version if I decide to switch? Thanks.

Jon 09-16-2004 07:42 AM

^ Ideally I'd say yes :D But you've got a point, it's a bit of an expensive mod to only use for 2 months, so if you buy the 3.5.x I'll send you the 4.0 via e-mail for free. For anyone else who buys/has bought the mod I'll do the same and provide you the alternate version code if you request it.

cotc2001 09-16-2004 07:46 AM

Can you do the other way around as well??? for those who have bought 4.0 can they get the 3.5.x version as well?

Jon 09-16-2004 07:48 AM

If you have a legitimate reason for doing it, then yes. I want to try and make sure best I can that people aren't getting an alternate version for somebody else. Just PM me the e-mail address you want it sent to along with your reason for needing it.

cotc2001 09-16-2004 07:55 AM

Sure, my own reason would be that because 4.0.x isn't stable enough yet for a live enviroment but purchased it because the are using as a test - realised what a good mod was and want to put it into their current live site. I've got a feeling that there maybe quite a few people in the same boat :D

I'll stick it all in a PM in a min.

Ryano 09-16-2004 10:01 AM

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.

Jon 09-16-2004 10:17 AM

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);

cotc2001 09-16-2004 10:30 AM

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

If I can do it then anyone can

rjcbear 09-16-2004 03:55 PM

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

Jon 09-16-2004 04:10 PM

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();

?>


boney 09-17-2004 02:42 AM

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 :D

Cheers

Boney

rjcbear 09-17-2004 09:04 AM

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

Jon 09-17-2004 12:52 PM

Thanks Boney :D I integrated the mod with the current style sheets, etc. so it shouldn't be a prob with integration.

Jon 09-17-2004 01:10 PM

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}


zardos 09-17-2004 01:52 PM

easy checkout
 
Very nice mod joh, and very easy to install, nice job.

rjcbear 09-17-2004 02:02 PM

Jon,

I got it and I cant wait to implement the mod as soon as I get it. The location of where I can download it....

Wow that was such a smooth check out I might even go to my store and buy stuff from myself... :lol: \:D/

Kind regards,
Ricky

Jon 09-17-2004 02:34 PM

^ Your orders been completed, you should have got your download link already. Maybe it got filtered by spam protection. Didn't you see that note during checkout? ;)

Let me know if you got it or not, if you didn't I'll e-mail it to you.

zardos 09-17-2004 02:52 PM

Sorry for the spelling "Jon" again nice mod.

Jon 09-17-2004 02:53 PM

^ Ahh no worries. Glad you like the mod.

Gijs 09-17-2004 10:57 PM

I'm sold as well
 
Hi Jon,

After looking at Boney's site I'm sold as well. Great mod.

Hopping to your site now to make the purchase

Gijs

Jon 09-19-2004 10:04 AM

If anybody else wouldn't mind sharing how it looks implemented on their site I'd love to see it.

Any thoughts on improvement would be appreciated as well.

cotc2001 09-19-2004 11:02 AM

one thing I have noticed when you go to enter a gift certificate is that once entered it doesnt put you back to checkout or back to next payment method it just returns you back to the enter gift certificate number page which I think would be rather confusing to a customer.

This might be a default of x-cart , I don't know because i've never used the gift certificate method before.

Jon 09-19-2004 11:32 AM

^ That's good feedback.

I see what you mean, that's very confusing. Might be better ideally if gift certificates were entered the same place as discount coupons instead of being shown as a payment method.

I'll see if I can change this.

zardos 09-19-2004 11:40 AM

Have a look on my site Jon, you can go right through to the end.It is not live yet, just a few problems that X-Cart need to sort out with the tax calculation, a GC problem.

Jon 09-19-2004 11:47 AM

To change the gift certificate redirect, open payment/payment_giftcert.php

Find:

Code:

func_header_location($current_location.DIR_CUSTOMER."/cart.php?mode=checkout&paymentid=".@$paymentid);

Change to:

Code:

func_header_location($current_location.DIR_CUSTOMER."/cart.php?mode=checkout");


All times are GMT -8. The time now is 01:24 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.