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
  #81  
Old 09-19-2004, 11:57 AM
 
cotc2001 cotc2001 is offline
 

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

Default

Just a thought as well Jon, i know that there is the "store link" back to the main shop but it might be and idea to put a link back from the logo gfx to the main site, just because thats the usual thing, i know it's easy enough to do but you may want to include it in you dox.
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote
  #82  
Old 09-19-2004, 11:59 AM
  Jon's Avatar 
Jon Jon is offline
 

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

Default

To change the gift certificate redirect, and to give them a message.

This is 4.0, may be just slightly different for 3.5.x branch.

Open /payment/payment_giftcert.php

Find:

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

Replace with:

Code:
func_header_location($current_location.DIR_CUSTOMER."/cart.php?mode=checkout&giftcertapplied=Y");

Open cart.php

After

Code:
require "./auth.php";

Add:

Code:
if ($giftcertapplied) { $smarty->assign("giftcertapplied", "Y"); }

Open skin1/customer/main/checkout.tpl

Find:

Code:
{elseif $payment_methods ne ""}

After put:

{if $giftcertapplied ne ""}

{$lng.txt_giftcertapplied}</p>{/if}

Then add the language variable through your admin

txt_giftcertapplied - Your gift certificate has been applied. Please select a secondary payment method to complete your order.
Reply With Quote
  #83  
Old 09-19-2004, 12:02 PM
 
cotc2001 cotc2001 is offline
 

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

Default

Ok i'll just go and do that, one question though (and i know i shouldnt ask this before i've tried it out - but what they hey ).

How does it affect if the gift certificate covers the full amount owed, will it still redirect back to choose payment method to cover?
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote
  #84  
Old 09-19-2004, 12:02 PM
  Jon's Avatar 
Jon Jon is offline
 

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

Default

Quote:
Originally Posted by cotc2001
Just a thought as well Jon, i know that there is the "store link" back to the main shop but it might be and idea to put a link back from the logo gfx to the main site, just because thats the usual thing, i know it's easy enough to do but you may want to include it in you dox.

Good suggestion. I'd like to try and keep as much of the suggestions on this forum as possible, so that people without x-cart licenses aren't getting assistance, so I'll post this here as well.

Find:

Code:
[img]skin1/images/secure_checkout.gif[/img]</p>

Replace with:

Reply With Quote
  #85  
Old 09-19-2004, 12:04 PM
  Jon's Avatar 
Jon Jon is offline
 

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

Default

Quote:
Originally Posted by cotc2001
Ok i'll just go and do that, one question though (and i know i shouldnt ask this before i've tried it out - but what they hey ).

How does it affect if the gift certificate covers the full amount owed, will it still redirect back to choose payment method to cover?

No, there's an if/else statement in the code. If it covers the amount it will redirect to the confirmation. If the order is not complete it will redirect them back. I'd suggest putting the message on their too, otherwise it's still confusing.
Reply With Quote
  #86  
Old 09-19-2004, 12:06 PM
  Jon's Avatar 
Jon Jon is offline
 

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

Default

Quote:
Originally Posted by zardos
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.

Thanks for posting up. Site look is very customized, looks good.
Reply With Quote
  #87  
Old 09-19-2004, 12:32 PM
 
cotc2001 cotc2001 is offline
 

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

Default

ok made changes and works fine, I cant post my site where it is at the moment as it's only a test site, im having someone do so mods on it as we speak, once finished I will post it.
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote
  #88  
Old 09-19-2004, 03:09 PM
  rjcbear's Avatar 
rjcbear rjcbear is offline
 

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

Default

Jon,

It was an easy process to installed the mod. It looks so much simpler to finalize purchases. A side note the one who must be obey (the wife) try to see if she can break the checkout precess and she said this is much better.

Jon, I am missing the variable name that goes between the Tabs named Your Cart and Method. I look all over the instructions for that variable name and I can't find it.

Question, I just notice the check-out process is not in secure site. How can me move the checkout process to the secure site.

Thank you once more for the mod.

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
  #89  
Old 09-19-2004, 03:15 PM
  Jon's Avatar 
Jon Jon is offline
 

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

Default

^ Odd, I thought the variable was built into x-carts. Possible it was deleted?

The missing variable is a label:

lbl_login - Login

I'm on your site now, and after viewing the cart and clicking checkout I'm being taken to a secure server just fine.
Reply With Quote
  #90  
Old 09-19-2004, 03:16 PM
  Jon's Avatar 
Jon Jon is offline
 

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

Default

^ Your also missing the password label:

lbl_password - Password
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 11:11 AM.

   

 
X-Cart forums © 2001-2020