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)

cotc2001 12-30-2004 11:17 PM

Quote:

Originally Posted by Jon
To put a continue shopping button, you can place this code on your skin1/customer/home_checkout.tpl where you want it to appear.

Code:

<div align="right"><p align="right">
Continue Shopping
</p></div>


What I did for my emails was edit:

/skin1/mail/html/mail_header.tpl

and

/skin1/mail/html/signature.tpl

That puts information above and below the actual emails.[/code]


The continue shopping button is good if you just want to go back to the home page but what about if you have redirect to cart enabled and you want the continue shopping to go back to the product page you just came from? bearing in mind that you could just use a javascript history back but that would also show if you went to checkout and then had to create an account.

Jon 12-31-2004 09:07 AM

^ I could custom code this for you but it's not an easy thing to state line for line.

You'd want to find where in cart.php after the product is added and it gets redirected. Then add the productid to to the redirect string. i.e. change cart.php in the redirect to cart.php?redirectproduct=PRODUCTID

Then in your cart.php when it is reloaded, grab the $redirectproduct variable and assign it.

Then edit your continue shopping code you can use something like:

Code:

<div align="right"><p align="right">
{if $redirectproduct ne ""}
<a href="product.php?productid={$redirectproduct}">
{else}
<a href="home.php">
{/if} Continue Shopping</a>
</p></div>


svtorres 01-01-2005 07:57 PM

Hi all.. I have been searching around the posts but cannot seem to find the way to make x-cart go to the next step in the checkout if you are logging in during the checkout process for my version of x-cart. Found some stuff for 3.52 but it didn't seem to work.

I have changed the existing x-cart checkout the way i need it but cant seem to get around this problem. I am running x-cart 4.09.

At the moment it goes like this:

cart-->user presses checkout-->asks to login or register-->user logs in --> GOES BACK TO CART where the user has to press checkout again before they go to the next step.

I would like it to go:

cart-->user presses checkout-->asks to login or register-->user logs in --> GO TO NEXT STEP IN CHECKOUT PROCESS WHICH IS PAYMENT METHOD for me.

I have everything else the way I would like it but cant seem to get around this one. I would really appreciate if anyone could assist.

Thanks in advance.

ghhoz 01-05-2005 03:43 PM

Hi Jon,

Wow I am so glad that I have purchased your mod, it sure makes a different to the shopping experience and thanks :-)

I have a questions, I have applied the mod to my cart and am now reading this thread for additional custom mods I can make.

I would like to take your advice here and change cart.php?mode=checkout to cart.php - Could you please help me with what pages this would be on that need to be changed? I know its checkout.tpl but what about others?

Thanks again Jon :-)

Quote:

Originally Posted by Jon
^ 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


Jon 01-05-2005 04:09 PM

If you have ssh access or telnet access, you can login to your shell and go into your skin1 folder, then run the command:

grep -lr mode=checkout *

That will show you all the places it occurs.

The only one I know off the top of my head is the mini cart. I think it is something like: skin1/customer/mini_cart.tpl

ghhoz 01-06-2005 12:12 AM

Hi Jon,

Thanks for the information on this one. I do have access to these with my web host but I have no idea how to use it or what to do with it LOL

I did download a while back the Putty application but I dont know what to do.

Any tips or a link to where I can learn to use this.

parmar 01-06-2005 01:16 AM

Jon..

Great Mod once again. Our site is live and successful thus far.

We're having few complaints though and i am not sure if it is to do with this mod or not.

When customers add an item or few and the Mod kicks in, they register their details... when they choose to go to the next step, the cart takes them back to saying there are no items in your shopping cart. This also happens with registed customers. When they add an item and goes to the Cart and registers their log in details, again the same thing happens and it takes them back saying there are no items in your shopping cart.

This does not happen to most customers but few lost this way is a customer lost.

Can you advice?

Jon 01-06-2005 07:46 AM

^ Normally that's a database sessions problem, and/or cookies.

Open up your config.php and find this code:

Code:

#
# Store sessions data in database
#

#
# Select the sessions mechanism:
# 1 - PHP sessions data stores in the file system
# 2 - PHP sessions data stores in the MySQL database
# 3 - use alternative sessions mechanism
$use_sessions_type = 3;


If it's not at 3, change it to 3, otherwise just try 2.

Jon 01-06-2005 07:55 AM

Quote:

Originally Posted by ghhoz
Hi Jon,

Thanks for the information on this one. I do have access to these with my web host but I have no idea how to use it or what to do with it LOL

I did download a while back the Putty application but I dont know what to do.

Any tips or a link to where I can learn to use this.


You need a telnet/ssh client. You can get a free one at:
http://www.chiark.greenend.org.uk/~sgtatham/putty/

It's a bit advanced so you may have some troubles, and you can mess up your site so be careful :)

If you just edit your mini cart file you should be ok.

macker123 01-20-2005 05:46 PM

Jon,

I installed the mod and it works great.

How did you do your "recommends" tab. I would love to have one more time to upsell to my customers as they checkout.

Also it seems "method" and "payment" are basically the same thing. Can they easily be consolidated into 1 page/tab to save a step?

Jon 01-21-2005 08:45 AM

Glad you like the mod.

I am currently finishing up my company site and will then be putting mods up for sale. The mod will be available when the store opens at http://www.websitecm.com/

The recommends mod will take the products in the cart, and grab all the products that have ever been purchased with those products, and grab all the products you've configured in the upselling links section of the add/modify product page.

It will then take a random number (which you specify) of those products and display them with a show me more link to show a different random set.

Jon 01-21-2005 08:49 AM

The way that x-cart is designed you can't combine those 2 pages easily without affecting core code.

Jon 01-28-2005 10:35 PM

I've finally gotten my company website/store open at http://www.websitecm.com/store/ and have begun work on packaging mods I've previously created.

The newest release is a mod that clarifies the add product to cart functionality, by using a redirect landing page which makes it clear the product was added, gives them the option to continue shopping, checkout, and uses the links you set in upselling to encourage them to purchase the related products.

For more information or to demo visit:

http://www.websitecm.com/store/customer/product.php?productid=84

Jon 02-06-2005 05:03 PM

ezRecommends... Online version of candy at the checkout stand, has now been released :)

http://forum.x-cart.com/viewtopic.php?p=76543#76543

http://www.websitecm.com/store/customer/product.php?productid=86

theoverpass 02-09-2005 01:20 PM

Hey,

After installing the mod Im finding myself getting errors after the usser come back from the payment page (at 2checkout), everything seams fine, but once they come back to my site they get a message:
"
Order processing error !
Payment processor declined your order.
Please review your data and try again.


Reason: (AuthCode: 123456) (TransID: 97986-28811697) (subcode/reasoncode: 1/1)
"

Do you know why this might be?

ps. I installed it quite a while ago and then my store kinda went on hiatus and I didnt have time to fix the problem, site is http://www.ingenioustees.com

Thanks,

Steve

Jon 02-09-2005 06:53 PM

^ Likely has nothing to do with ezcheckout. I'd say your gateway is not passing information correctly. If the transaction is being processed properly, then it's not passing back correct information to your x-cart.

bluesunomi 02-10-2005 07:26 AM

Hi,

I've got the easy checkout working on my site (V4.0.11) and have had loads of good feedback. Only trouble is that I've found a bit of a bug with wishlists.

Viewing wishlists uses cart.php so it does look odd showing the checkout process - had a quick look at doing this, but can't quite get it to work any ideas ?

Thanks.

John

Jon 02-10-2005 10:38 AM

Depending on your version of x-cart, you can open cart.php and edit the line that calls home_checkout.tpl

For 3.5.x

Code:

if (($mode == "friend_wl") || ($mode == "send_friend") || ($mode == "wlclearwl") || ($mode == "deletewl2cart") || ($mode == "add2wl") || ($mode == "wishlist") || ($mode == "addgc2wl")) {
        $smarty->display("customer/home.tpl");
}
else {
        $smarty->display("customer/home_checkout.tpl");
}


For 4.x

Code:

if (($mode == "friend_wl") || ($mode == "send_friend") || ($mode == "wlclearwl") || ($mode == "deletewl2cart") || ($mode == "add2wl") || ($mode == "wishlist") || ($mode == "addgc2wl")) {
        func_display("customer/home.tpl",$smarty);
}
else {
  func_display("customer/home_checkout.tpl",$smarty);
}


Jon 02-11-2005 06:06 PM

I've completed a new mod, "Remember Me" Login.

Add a "Remember Me" checkbox to your store as part of the Member Login box. When checked, the person's login information is remembered, and upon returning to the store at a later date, they are logged in automatically and their previous cart contents are remembered.

http://www.websitecm.com/store/customer/product.php?productid=89

a1deano 02-15-2005 09:38 AM

jon need a little help with cart
 
Hi Jon, just need a little help, you will recall i brought your cart mod about a month ago, ive just noticed a small problem when a customer enters their info on the billing address, then you leave the shipping address empty if its the same as the billing address.
Ive entered my own address in the billing section city is "Boston" County of "Lincolnshire" and leave shipping address empty as its the same as billing, but its not entering the correct details its showing up in the shipping address as - city "London" and county is "London" its not updating the shipping details correct.
Please can you advise Jon, many thanks again Dean

Jon 02-15-2005 01:28 PM

Hi Dean, the ezCheckout mod does not affect the registration process at all, so the error is in the register.php or the register.tpl itself. Since it is not affected by ezCheckout unfortunately I can't propose a solution.

a1deano 02-16-2005 05:12 AM

Hi Jon, thanks for getting back to me if a customer registers using the link in the Authentication box on the home page then the correct details are updated, its just when filling out their details when going through checkout
From this would you have any idea if it would be the resiter.php or the resister.tpl although i am not sure what i'd be looking for at least i could narrow it down to either one, or will i need to contact xcart them selves.
Thanks again Dean

Jon 02-16-2005 08:15 AM

The login during checkout uses the file skin1/customer/main/register.tpl

Perhaps changes were made to your registration page, and not changed in this register.tpl also.

a1deano 02-16-2005 10:14 AM

I'll speak with xcart see if they can help, cheers

Jerrad 02-16-2005 01:48 PM

A few days ago I bought Jon's Customer Conversion Package, which
includes ezCheckout, ezUpsell and ezRecommends. Unluckely I ran into
a few problems after implementing the mods myself.
First I tried to fix it by myself, with the code changes he had send me by
email, and after I really made a mess of it, he offered to take a look by
ftp.
Jon discovered some errors and advised me to reimplement everything.
And so I did. And again I ran into a error. I contacted him again and
tonight he took another look in my shop and fixed the error!

Jon's mod's have a high quality and offer a valuable completion to x-cart,
but his customer service and easily match up against this all !!

Thanks for your help, Jon :D :D :D

xcart@spiritdiscovery.com 02-25-2005 10:07 AM

Jon, thank you so much for this great mod! I've browsed through this thread and applied most of the changes here, in addition to Shan's "3.5.x - Checkout - Neater Customer Details" ( http://forum.x-cart.com/viewtopic.php?t=8471) and I am so thrilled with the changes. I installed a week ago, and already see in increase in sales and a decrease in cart abandonment. YAY! :D

Just a question and a note about the shipping address populating on the customer details at checkout:

Quote:

Originally Posted by Jon
Hi Dean, the ezCheckout mod does not affect the registration process at all, so the error is in the register.php or the register.tpl itself. Since it is not affected by ezCheckout unfortunately I can't propose a solution.


There was a known bug and fix addressed in the "Xcart 3.5.12 Released With Upgrade Kit + Changelog" ( at this link: http://forum.x-cart.com/viewtopic.php?t=14025 )
Quote:

Mon Sep 27 15:55:54 MSD 2004 [!] - max - The bug regarding using the default shipping address on Anonymus checkout page is fixed.
I did the "Fresh install" (and perhaps I should have just modified my existing code instead) but could the fact that I uploaded a new anonymous_checkout.tpl be the problem? It really does only happen on the checkout version of the input, and not at from the "register" link on the menu.

If I'm correct and this is where the problem is, do you have any suggestions for what the anonymous_checkout.tpl should look like for the 3.5.x cart?

Thanks again for this very important modification!

Jon 02-25-2005 10:15 AM

I'm not quite sure what you are saying about how you implemented the "fix" with regard to a fresh install.

ezCheckout replaces the anonymous_checkout.tpl so it should look like the one provided in the zip file.

The anonymous checkout process moves beyond that file however, in both register.php and register.tpl's. To fix this problem you would have to address those files. You may want to try to upgrade your entire store to the latest branch.

Does that help?

xcart@spiritdiscovery.com 02-25-2005 12:50 PM

Please forgive my lack of familiarity with the templates associated with this mod. I was way off in my assumptions. :oops:

I had the same problem as a1deano, the shipping address was not populating if left blank.

At Jon's suggestion, I reloaded cart.php from the download version and modified the code again according to his instructions included with this mod. Now the shipping address is automatically populating as it should.

a1deano, I don't know if this will work for you, but it worked for me.

Thank you again Jon, for your lightening fast response!

halestorm 02-26-2005 11:12 PM

Jon,

Hello,

I love the new mod but I just have a few problems and questions..

I installed it and everything seems to work well. However I was no longer log in the backend of my store. I re-uploaded my original login.php file and that seemed to do the trick. Is that file with the code change you did a must for the mod to work correctly? It seems to work but I have not 100% tested yet.

I added a few images at the bottom of the home_checkout.tpl file like you did in your cart, however they seem to be causing the browser to give me a message saying that the page has secure in insecure items. Any way to fix that?

I have a few more questions as well, but I'll save those for later.

Daniel

balinor 02-27-2005 04:32 AM

Be sure and call your images with this code:

[img]{$ImagesDir}/imagename.jpg[/img]

If you try to link them with a 'hard' link, they will cause security issues.

Jon 02-27-2005 09:05 AM

The login.php should not affect the code for admin logins, but it's possible that it was not installed quite correctly. Please send me your default login.php and I will place the code in and send it back to you.

It's not absolutely necessary, but it is important. Modifying it ensures that while in checkout, when they login they don't get sent backwards in the checkout process, and get sent forward instead.

halestorm 02-27-2005 09:07 AM

balinor: That fixed it! Thanks. I guess I'll move on to my next question...

Before I got this mod I got another one that will allow users to enter their zip code and it will calculate the shipping for them right then and there in the shopping cart without having to log in.

That mod works fine along this mod. But what it does is right above the totals and where to enter your zip code, it says,

"Please log in to see shipping rates.
AnonymousБ─²

Right under that is the message "Enter your zip code to calculate shipping charges."

So how can I get rid of the please login message since they don't have to login?

Thanks,

Daniel

Jon 02-27-2005 09:50 AM

Try finding the text/code in one of these files:

skin1/customer/main/cart_totals.tpl
skin1/customer/main/cart_details.tpl
skin1/customer/main/cart.tpl
skin1/customer/main/checkout.tpl

halestorm 02-27-2005 10:58 AM

Ok I removed the following lines in cart totals:

Code:

<FONT class="ErrorMessage">{$lng.lbl_no_shipping_for_location}:</FONT>

And that was right under

Code:

{if $shipping eq "" and $need_shipping and $cart.shipping_cost eq 0}

I also removed

Quote:

{$lng.lbl_anonymous}

And that line lived in this:


Code:

{if $login ne "" or $config.General.apply_default_country eq "Y" or $cart.shipping_cost gt 0}
{$userinfo.s_address}

{$userinfo.s_city}

{$userinfo.s_statename}

{$userinfo.s_countryname}

{$userinfo.s_zipcode}
{else}
{$lng.lbl_anonymous}
{/if}


So the message is gone, but will everything be ok? Because now those messages are gone, but there are two grey lines where that message used to be. I just want to make sure that I did the correct thing.

Thanks,

Daniel

Jon 02-27-2005 06:15 PM

You may want to keep this line:

<FONT class="ErrorMessage"{$lng.lbl_no_shipping_for_loca tion}:</FONT>


This line should be removed:

{else}
{$lng.lbl_anonymous}

It won't change functionality at all. Just make sure the people have all the information they need.

halestorm 03-01-2005 01:55 PM

Jon,

Thanks for your help. On and off the boards. One more thing.

On YOUR checkout page on the upper right you have a "Continue Shopping" link and under that you have a little icon and the number of items and the total. How do I add those?

You also have on the left site another nav.

WEBSITECM.COM >> YOUR SHOPPING CART
WEBSITECM.COM >> RECOMMENDS
and so on....

How are those added as well?

I actully thought those were part of the mod, but I didn't pay attention to the screenshots I guess.

Thanks,

Daniel

Jon 03-01-2005 01:59 PM

The continue shopping button and items come as an addon to ezCheckout with the ezRecommends module. Since they are adding products during checkout, I felt it was important to keep them updated with a total through the process.

Code similar to this should do the trick (you may need to adjust it). I'll give you the code but you should really buy ezRecommends anyway ;)

Code:

<div align="right">
<p align="right">{if $login ne ""}<form action="/include/login.php" method=post name=loginform><input type=hidden name=mode value=logout><input type=hidden name=redirect value="customer"></form>{$lng.lbl_loggedinas} {$login} [{$lng.lbl_logoff}] | {/if}{$lng.lbl_continue_shopping}</p>

<TABLE border=0 cellpadding=1 cellspacing=0>
<TR>
<TD rowspan=2 width=23>
{if $minicart_total_items > 0}[img]{$ImagesDir}/cart_full.gif[/img]{else}[img]{$ImagesDir}/cart_empty.gif[/img]{/if}
</TD>
{if $minicart_total_items > 0}
<TD class=VertMenuItems>{$lng.lbl_items}: </TD>
<TD class=VertMenuItems color=#0000ff>{$minicart_total_items}</TD>
<TD class=VertMenuItems>{$lng.lbl_total}: </TD>
<TD class=VertMenuItems>{include file="currency.tpl" value=$minicart_total_cost}</TD>
{else}
<TD class=VertMenuItems color=#0000ff>{$lng.lbl_cart_is_empty}</TD>
{/if}
</TR>
</TABLE>
</div>


The WEBSITECM.COM >> steps as far as I'm aware is just the include of location.tpl which should be standard in installations.[/code]

markwhoo 03-01-2005 04:57 PM

Jon,

Which of the files can I edit to make the personal info appear a bit cleaner on the last check out page.

The lines under the stock layout from xcart are not as desirable as I would like.

It almost looks like a portion of register personal info or register contact info or maybe even a label tpl due to the slotted line usage.


Thanks Jon

markwhoo 03-01-2005 04:59 PM

Sorry, but I also forgot to ask about the background color in the tpl file used for the entire ezcheckout layout.

I tried to change the background color in the tpl, but I guess it is overridden by the css file?

I wanted to give the boarder a color to match the site and central space white as it is.

thanks Jon

markwhoo 03-01-2005 07:23 PM

ok, not sure if anyone has noticed or not, but for those that have...

The log out button in the ez check out mod (upper right corner) when user logged in it shows user name and the log off text link, well at least in my version it did not work (vs 4.0.11 currently)

I found a couple of interesting things I will share if anyone is interested you can use them.

#1) As the code was, it did not work and I got a not found error.

#2) once issues were located, I found there were two options that could be implemented for the redirect. I will explain.


If you wish to make this tid bit of the code work, I will show before and after shots.


home_checkout.tpl

BEFORE: (around line 87) "text link did not work properly"

Code:

<p align="right"><font color="#000000">{if $login ne ""}<form action="../include/login.php" method=post name=loginform><input type=hidden name=mode value=logout><input type=hidden name=redirect value="customer"></form>{$lng.lbl_loggedinas} {$login} [{$lng.lbl_logoff}] | {/if}{$lng.lbl_continue_shopping}</font></p>


AFTER: "text link now works"

Code:

<p align="right"><font color="#000000">{if $login ne ""}<form action="/YOUR_XCART_SHOP_NAME/include/login.php" method=post name=loginform><input type=hidden name=mode value=logout><input type=hidden name=redirect value="customer"></form>{$lng.lbl_loggedinas} {$login} [{$lng.lbl_logoff}] | {/if}{$lng.lbl_continue_shopping}</font></p>

NOW Text Link will work, but the redirect takes you back to an empty cart after log off.


IF you wish to redirect end user back to the main store page, ie: home.php, then simply implement this code:

Code:

<p align="right"><font color="#000000">{if $login ne ""}<form action="/YOUR_XCART_SHOP_NAME/include/login.php" method="post" name="loginform"><input type="hidden" name="mode" value="logout"><input type="hidden" name="redirect" value="customer"></form>{$lng.lbl_loggedinas} {$login} [{$lng.lbl_logoff}] | {/if}{$lng.lbl_continue_shopping}</font></p>

The only difference in the last two bits of code, were the quotes added, cause home.php was already referenced in the code, mine just took me back to an empty cart until I placed the quotes into the code.

Strange I know, but I hope this helps someone.


AND, if your text link WAS already working, then great. :)


All times are GMT -8. The time now is 04:20 AM.

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