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
  #281  
Old 12-30-2004, 11:17 PM
 
cotc2001 cotc2001 is offline
 

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

Default

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.
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote
  #282  
Old 12-31-2004, 09:07 AM
  Jon's Avatar 
Jon Jon is offline
 

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

Default

^ 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>
Reply With Quote
  #283  
Old 01-01-2005, 07:57 PM
 
svtorres svtorres is offline
 

Newbie
  
Join Date: Oct 2004
Posts: 7
 

Default

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.
__________________
Regards,

Steven
Reply With Quote
  #284  
Old 01-05-2005, 03:43 PM
 
ghhoz ghhoz is offline
 

Advanced Member
  
Join Date: Oct 2004
Posts: 40
 

Default

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
__________________
Cheers from Melanie
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Xcart V4.0.4 (Unix) - LIVE
AOM, Fancy Categories
Marketing Manager,
Reward Points & Refer Rewards
Advanced Site Map
Easy Checkout

Gift & Homeware House
www.giftandhomewarehouse.com.au
Reply With Quote
  #285  
Old 01-05-2005, 04:09 PM
  Jon's Avatar 
Jon Jon is offline
 

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

Default

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
Reply With Quote
  #286  
Old 01-06-2005, 12:12 AM
 
ghhoz ghhoz is offline
 

Advanced Member
  
Join Date: Oct 2004
Posts: 40
 

Default

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.
__________________
Cheers from Melanie
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Xcart V4.0.4 (Unix) - LIVE
AOM, Fancy Categories
Marketing Manager,
Reward Points & Refer Rewards
Advanced Site Map
Easy Checkout

Gift & Homeware House
www.giftandhomewarehouse.com.au
Reply With Quote
  #287  
Old 01-06-2005, 01:16 AM
 
parmar parmar is offline
 

eXpert
  
Join Date: Apr 2003
Location: London, UK
Posts: 286
 

Default

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?
__________________
--------------------
Sandip


x-cart version 5.4.X, hosted on X-Cart server/
Reply With Quote
  #288  
Old 01-06-2005, 07:46 AM
  Jon's Avatar 
Jon Jon is offline
 

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

Default

^ 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.
Reply With Quote
  #289  
Old 01-06-2005, 07:55 AM
  Jon's Avatar 
Jon Jon is offline
 

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

Default

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.
Reply With Quote
  #290  
Old 01-20-2005, 05:46 PM
 
macker123 macker123 is offline
 

Advanced Member
  
Join Date: Mar 2004
Posts: 68
 

Default

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?
__________________
Heavily Modified 4.0.8
http://www.hiphopcapital.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4


Thread Tools

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 12:12 PM.

   

 
X-Cart forums © 2001-2020