Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Skip Cart page, go straight to Checkout page (4.2.x)

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-09-2009, 07:26 AM
 
mustang mustang is offline
 

eXpert
  
Join Date: Nov 2003
Location: US
Posts: 210
 

Default 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.
__________________
X-Cart Gold 4.2.3
-----
PHP 5.2.17 | MySQL 5.1.52
Reply With Quote
  #2  
Old 12-09-2009, 08:37 AM
 
mustang mustang is offline
 

eXpert
  
Join Date: Nov 2003
Location: US
Posts: 210
 

Default 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");
__________________
X-Cart Gold 4.2.3
-----
PHP 5.2.17 | MySQL 5.1.52
Reply With Quote

The following user thanks mustang for this useful post:
am2003 (01-09-2011)
  #3  
Old 01-08-2011, 09:13 PM
 
LMD LMD is offline
 

Newbie
  
Join Date: May 2008
Posts: 5
 

Default 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.
__________________
Lester MacDonald
X-Cart 4.4.1
Reply With Quote
  #4  
Old 01-13-2011, 03:14 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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';
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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:59 PM.

   

 
X-Cart forums © 2001-2020