X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Skip Cart page, go straight to Checkout page (4.2.x) (https://forum.x-cart.com/showthread.php?t=51210)

mustang 12-09-2009 07:26 AM

Skip Cart page, go straight to Checkout page (4.2.x)
 
I want customers to skip the cart page and go straight to the checkout page.

I found a thread showing how to do this in an older xc version (http://forum.x-cart.com/showthread.php?t=21915), but I can't figure out a variation of it to fit 4.2.3. Any ideas?

Thanks.

mustang 12-09-2009 08:37 AM

Re: Skip Cart page, go straight to Checkout page (4.2.x)
 
Bill from AlteredCart.com helped me out with this one. - Thanks Bill!

To skip the cart display open the cart.php file and change:

Code:

#
# Redirect
#
if ($config["General"]["redirect_to_cart"] == "Y") {
      if (!empty($active_modules["SnS_connector"]))
          $is_sns_action['AddToCart'][] = $productid;

      func_header_location("cart.php");


to:

Code:

#
# Redirect
#
if ($config["General"]["redirect_to_cart"] == "Y") {
      if (!empty($active_modules["SnS_connector"]))
          $is_sns_action['AddToCart'][] = $productid;

      func_header_location("cart.php?mode=checkout");


LMD 01-08-2011 09:13 PM

Re: Skip Cart page, go straight to Checkout page (4.2.x)
 
Buy Now button straight to checkout...

Does anyone know of a solution to 4.4.1 using chromo template. You'd think this would be a standard button. Any help would be appreciated.

qualiteam 01-13-2011 03:14 AM

Re: Skip Cart page, go straight to Checkout page (4.2.x)
 
1. You should enable "Redirect customer to cart after adding a product" option

2. Alter "cart.php", find and replace this code:
PHP Code:

if (!empty($active_modules['SnS_connector']))
            
$is_sns_action['AddToCart'][] = $productid;

        
$return_url 'cart.php'


with this:
Code:

if (!empty($active_modules['SnS_connector']))
            $is_sns_action['AddToCart'][] = $productid;

        $return_url = 'cart.php?mode=checkout';



All times are GMT -8. The time now is 02:47 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.