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

Chuchen 05-19-2006 10:28 AM

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

balinor 05-19-2006 10:34 AM

Didn't I answer this question for you ages ago?

Chuchen 05-19-2006 10:39 AM

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?

balinor 05-19-2006 10:41 AM

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.

Chuchen 05-19-2006 10:55 AM

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


All times are GMT -8. The time now is 08:53 PM.

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