Jump to content

direct to checkout


Guest noblecode
 Share

Recommended Posts

Guest noblecode

I have search the forum but was not able to find what I am looking for.

Basically when the customer clicks buy now I want them to go directly to checkout. I do not want the item to just be added to the basket. What am I overlooking...assume this might be an easy fix but not having luck...

thanks..

Link to comment
Share on other sites

EDIT includes/boxes/shoppingCart.inc.php with a text editor.

FIND these lines of code:

$basket = $cart->add($_POST['add'],$quantity,"");

}

INSERT this block of code AFTER the above lines (being careful to add the code after the curly bracket shown above):

// start mod: redirect to basket (http://www.beadberry.com/cubemods)

if($ccUserData[0]['customer_id']>0)

{

header("Location: cart.php?act=step2");

}

else

{

header("Location: cart.php?act=cart");

}

exit;

// end mod: redirect to basket

SAVE file and upload to your server.

Instructions if Text Input Fields for Products has been installed:

EDIT includes/boxes/shoppingCart.inc.php with a text editor.

FIND these lines of code:

} else {

$basket = $cart->add($_POST['add'],$quantity,"","");

}

// end: Text Input Mod

}

INSERT this block of code AFTER the above lines (being careful to add the code after the curly bracket shown above):

// start mod: redirect to basket (http://www.beadberry.com/cubemods)

if($ccUserData[0]['customer_id']>0)

{

header("Location: cart.php?act=step2");

}

else

{

header("Location: cart.php?act=cart");

}

exit;

// end mod: redirect to basket

SAVE file and upload to your server.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...