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
  #331  
Old 03-11-2005, 08:59 AM
  Jon's Avatar 
Jon Jon is offline
 

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

Default

This version should have been corrected and you should have been sent an updated copy already.

The code:

Code:
func_header_location($redirect_to."/cart.php?mode=checkout")

Should have a ";" on the end of it.

Code:
func_header_location($redirect_to."/cart.php?mode=checkout");
Reply With Quote
  #332  
Old 03-14-2005, 07:38 PM
 
pengrus pengrus is offline
 

eXpert
  
Join Date: Feb 2004
Posts: 359
 

Default

Jon,

How easy to upgrade the x-cart if your ezcheckout, or ezrecomment or ezupsell is installed?

I am currently on x-cart 4.12.
__________________
x-cart 4.1.8 Gold
Linux
Reply With Quote
  #333  
Old 03-14-2005, 08:36 PM
 
hooter hooter is offline
 

X-Adept
  
Join Date: Dec 2004
Posts: 519
 

Default

Pengrus,

From a third-party support perspective I can say I have several clients who use a combination of one or more of Jon's conversion mods - and upgrades within the 4.0x series have all been painless.

That is to say, any issues with the upgrades that I did happen to encounter were totally unrelated to Jon's mods.
__________________
Blog for X-Cart | Ebay Auction Manager
Reply With Quote
  #334  
Old 03-15-2005, 12:23 PM
  Jon's Avatar 
Jon Jon is offline
 

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

Default

^ Thanks for the perspective.

The mods are also very straight forward to install for anyone with basic knowledge of php and template editing (i.e. Put this code after this code, etc.) so reinstalls are not at all time consuming.
Reply With Quote
  #335  
Old 03-15-2005, 12:32 PM
 
pengrus pengrus is offline
 

eXpert
  
Join Date: Feb 2004
Posts: 359
 

Default

I am using Fashion Mosaic custom skin from X-cart. Will the add-ons use the stylesheet and graphics from Fashion Mosaic? Especially the Tab for the easy Checkout?

Thanks!
__________________
x-cart 4.1.8 Gold
Linux
Reply With Quote
  #336  
Old 03-15-2005, 01:21 PM
  Jon's Avatar 
Jon Jon is offline
 

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

Default

The checkout has it's own template (home_checkout.tpl) which frames the checkout process, however it uses the default x-cart stylesheet and the components of checkout remain styled the same.

The "tabs" of the checkout will use the same font and link style sheet, and the "grey" color can be edited easily by modifying css in home_checkout.tpl.

So in short, the style is the same, with the exception of the color of the tabs which can be easily edited.
Reply With Quote
  #337  
Old 03-18-2005, 08:22 PM
 
taltos1 taltos1 is offline
 

Senior Member
  
Join Date: Mar 2005
Location: USA
Posts: 160
 

Default

I installed it and I am having some problems. I got the mod from EWDHosting and followed the file "X-Cart Easy Checkout - Custom Installation - 4.0.x" that was included with the .zip

I get the error:
"Parse error: parse error, unexpected T_VARIABLE in ....public_html/cart.php on line 112"

When I click on "buy now" on a item.

Area of error.
Quote:
#
# Calculate total number of checkout process steps
#
$smarty->assign("mode",$mode)
$total_checkout_steps = 2;
$checkout_step_modifier["anonymous"] = 0;
$checkout_step_modifier["payment_methods"] = 0;

Also, in the instructions, the areas that detail the "Open include/login.php"
and "Open include/register.php" and what to edit in them does not correspond to what is in the original files...

Thank you very much for you help.
__________________
X-Cart Gold Version 4.0.18
EWDHosting.com is my Host
Unix Servers
Reply With Quote
  #338  
Old 03-18-2005, 10:06 PM
  Jon's Avatar 
Jon Jon is offline
 

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

Default

The code you've shown is missing a semi-colon.

Code:
$smarty->assign("mode",$mode)

Should be:

Code:
$smarty->assign("mode",$mode);

Your instructions should say that if register.php does not correspond, then no edits are necessary. I'll speak to Emerson to ensure that he has and updated file.

Can you post your login.php code please.
Reply With Quote
  #339  
Old 03-19-2005, 04:23 AM
 
taltos1 taltos1 is offline
 

Senior Member
  
Join Date: Mar 2005
Location: USA
Posts: 160
 

Default

Here is the original login.php (well part of it, do you need to see it all)

Quote:

if ($login_type == "C" || $login_type == "B") {
if (!func_is_cart_empty($cart)) {
if((strpos($HTTP_REFERER, "mode=auth") === false) && (strpos($HTTP_REFERER, "mode=checkout") === false)) {
func_header_location($redirect_to."/cart.php");
} else {
func_header_location($redirect_to."/cart.php?mode=checkout");
}
} elseif (!empty($HTTP_REFERER)) {
if((strncasecmp($HTTP_REFERER,$http_location,strle n($http_location))==0 || strncasecmp($HTTP_REFERER,$https_location,strlen($ https_location))==0) &&
strpos($HTTP_REFERER,"error_message.php")===false &&
strpos($HTTP_REFERER,'secure_login.php')===false &&
strpos($HTTP_REFERER,".php")!==false) {
func_header_location($redirect_to.strrchr($HTTP_RE FERER, "/"));
}
}
func_header_location($redirect_to."/home.php");
}

And in the install instructions it says to find and replace this section
Quote:
if ($login_type == "C" || $login_type == "B") {
if (!func_is_cart_empty($cart)) {
func_header_location($redirect_to."/cart.php");

And for register.php here is the original

Quote:
elseif ($action == "cart") {
if (!empty($reg_error) || !empty($av_error) || !empty($av_recheck)) {
if (empty($login))
# Anonymous checkout
$script = "cart.php?mode=checkout";
elseif (!empty($paymentid))
$script = "register.php?mode=update&action=cart&paymentid=". intval($paymentid);
else
$script = "register.php?mode=update&action=cart";

And your isntructions say to find
Quote:
elseif ($action == "cart") {
if (empty($paymentid))
$script = "cart.php";

So I am not sure what to do as they are a bit different....
Thanks again
__________________
X-Cart Gold Version 4.0.18
EWDHosting.com is my Host
Unix Servers
Reply With Quote
  #340  
Old 03-19-2005, 07:41 AM
 
heartsfire heartsfire is offline
 

Member
  
Join Date: Oct 2004
Location: Las Vegas, NV
Posts: 13
 

Default Unexpected Action

I downloaded and installed the excheckout mod on 3/18 Version 4.0.12. Everything seemed to go well (a couple of errors caused by extra } or { but nothing serious). Did not modify register.php since the code seemed to be there (with some additional lines).

Everything seemed to work but if I abandon a cart while anonymous I then get dumped back to a login / register page rather than home.php and the cart does not empty. This happens even if I close the browser and then return later. It will still show the cart as having an item while anonymous and will add new items to the total of the existing cart.

If I delete the item from the cart as anonymous it doesn't remove it and since you cannot login the customer is stuck with a shopping cart item they can't get rid of. There are no errors showing in relation to this behavior.

I removed the mod temporarily until I can get some insight into this behavior. Any feed back would be greatly appreciated.
__________________
Ron Eason
http://www.heartsfireleathers.com
webmaster@heartsfireleathers.com
XCART 4.0.12
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 02:21 PM.

   

 
X-Cart forums © 2001-2020