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 the cart.php and go straight to checkout mode ? (https://forum.x-cart.com/showthread.php?t=19331)

Chuchen 01-18-2006 05:56 AM

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

balinor 01-18-2006 11:29 AM

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 :)

Chuchen 01-19-2006 09:08 AM

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...

balinor 01-19-2006 09:13 AM

Probably referring to cart.php

Chuchen 01-19-2006 11:19 PM

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

Strange... 8O

balinor 01-20-2006 03:22 AM

Make sure you are looking at cart.php and not cart.tpl

Chuchen 01-20-2006 10:12 AM

You were right ! :D Thank you very much, it is working now. I think it's better this way for my future customers.

pwd88 02-13-2006 05:07 PM

You must not be using 4.0.17, since I could not see $smarty->display(.... in cart.php, all display are using func_display(".....")


All times are GMT -8. The time now is 10:09 PM.

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