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

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 01-18-2006, 05:56 AM
 
Chuchen Chuchen is offline
 

Advanced Member
  
Join Date: Dec 2005
Posts: 37
 

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

Hello,

I'm new here and it's my first message. Sorry for my poor english... but I'm not english...

Well, I'm working on Xcart actually (great software !), and I would like to skip the cart.php file and go straight to the checkout mode. I read a lot of messages here and I have found this old one below, but I don't know where to change the code :

Quote:
For the redirect, above where the smarty display is:

Code:

$smarty->display(....

Put:

Code:

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

Where should I do this please ?

Thank you very much
Reply With Quote
  #2  
Old 01-18-2006, 11:29 AM
 
balinor balinor is offline
 

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

Default

Did that original thread say which file to edit?

Also, if you could please put your X-Cart version in your signature as per the forum rules that would be great. Thank you
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 01-19-2006, 09:08 AM
 
Chuchen Chuchen is offline
 

Advanced Member
  
Join Date: Dec 2005
Posts: 37
 

Default

Unfortunately no, if you want you can see this message here : http://forum.x-cart.com/viewtopic.php?t=14556&highlight=mode+checkout

I can not find this file indeed...
__________________
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 01-19-2006, 09:13 AM
 
balinor balinor is offline
 

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

Default

Probably referring to cart.php
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 01-19-2006, 11:19 PM
 
Chuchen Chuchen is offline
 

Advanced Member
  
Join Date: Dec 2005
Posts: 37
 

Default

Thanks for your answer. I have checked and don't find this line :
$smarty->display

Strange...
__________________
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
  #6  
Old 01-20-2006, 03:22 AM
 
balinor balinor is offline
 

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

Default

Make sure you are looking at cart.php and not cart.tpl
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 01-20-2006, 10:12 AM
 
Chuchen Chuchen is offline
 

Advanced Member
  
Join Date: Dec 2005
Posts: 37
 

Default

You were right ! Thank you very much, it is working now. I think it's better this way for my future customers.
__________________
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
  #8  
Old 02-13-2006, 05:07 PM
 
pwd88 pwd88 is offline
 

Advanced Member
  
Join Date: Dec 2004
Posts: 80
 

Default

You must not be using 4.0.17, since I could not see $smarty->display(.... in cart.php, all display are using func_display(".....")
__________________
XCart 4.0.18 Gold
X-Giftregistry
Neon light
Fashion mosaic
Tabbed product menu
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 09:23 AM.

   

 
X-Cart forums © 2001-2020