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

[4.1.1] Skip the cart.php and go straight to checkout mode ?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-19-2006, 10:28 AM
 
Chuchen Chuchen is offline
 

Advanced Member
  
Join Date: Dec 2005
Posts: 37
 

Default [4.1.1] Skip the cart.php and go straight to checkout mode ?

I'm trying the new 4.1.1 version (really really nice one!)

When a customer click on "Add to cart", is it possible to skip the cart.php process and go straight to checkout mode please?

Thank you very much!
__________________
xcart v4.1.1 [MacOS] / x-aom-4.1.1 / x-offers-4.1.1 / x-rma-4.1.1 / X-Magnifier-4.1.1 (and... happy with x-Cart !)
Reply With Quote
  #2  
Old 05-19-2006, 10:34 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Didn't I answer this question for you ages ago?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 05-19-2006, 10:39 AM
 
Chuchen Chuchen is offline
 

Advanced Member
  
Join Date: Dec 2005
Posts: 37
 

Default

Hello Balinor

Wow, you've got an impressive memory!!

Yes, you're right but it's not working anymore for this new version, that's why I wrote [4.1.1] in my message.

Maybe I'm wrong?
__________________
xcart v4.1.1 [MacOS] / x-aom-4.1.1 / x-offers-4.1.1 / x-rma-4.1.1 / X-Magnifier-4.1.1 (and... happy with x-Cart !)
Reply With Quote
  #4  
Old 05-19-2006, 10:41 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Ahhh..thought so Haven't had a chance to look at the guts of 4.1.1 yet, as it still won't be stable for a couple months. So I'm not sure if the other solution will work or not.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 05-19-2006, 10:55 AM
 
Chuchen Chuchen is offline
 

Advanced Member
  
Join Date: Dec 2005
Posts: 37
 

Default

This instrution below worked in a previous version:

Quote:
In cart.php, above where the smarty display is:
$smarty->display(....

Put:
if (!$mode && !$paymentid) {
header ("Location: cart.php?mode=checkout");
}

The problem actually is that there is no more this "$smarty->display" in the cart.php page, so I don't know where I can put this code...
__________________
xcart v4.1.1 [MacOS] / x-aom-4.1.1 / x-offers-4.1.1 / x-rma-4.1.1 / X-Magnifier-4.1.1 (and... happy with x-Cart !)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:48 PM.

   

 
X-Cart forums © 2001-2020