View Single Post
  #236  
Old 11-14-2004, 04:47 AM
 
parmar parmar is offline
 

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

Default

Jon..

Having bought the Easy Checkout mod few weeks ago, I'm just trying to install it now on our development site, X-Cart version 4.0.7

i'm just wondering about this code below.

Quote:
Find:

if ($login_type == "C" || $login_type == "B") {
if (!func_is_cart_empty($cart)) {
func_header_location($redirect_to."/cart.php");

Replace with:

if ($login_type == "C" || $login_type == "B") {
if($redirect2 == "checkout")
func_header_location($redirect_to."/cart.php?mode=checkout");
elseif (!func_is_cart_empty($cart)) {
func_header_location($redirect_to."/cart.php");

The lines on my include/login.php file are as below. Do I replace the whole of the section below with your code? including the if((strpos($HTTP_REFERER, "mode=auth")...... bit too?
Code:
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");

Same in register.php file. do i replace the whole of the section below with your code?
Code:
elseif ($action == "cart") { if (empty($paymentid)) $script = "cart.php?mode=checkout&registered=";

Thank you in advance.
__________________
--------------------
Sandip


x-cart version 5.4.X, hosted on X-Cart server/
Reply With Quote