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)
-   -   Cart customization (https://forum.x-cart.com/showthread.php?t=10462)

elabdesigns 11-18-2004 02:22 PM

Cart customization
 
I am wanting to skip the cart.php file and go straight to the checkout mode.

How can I add the discount/coupons section from the cart.php to the cart.php?mode=checkout page?

When someone adds something to the cart is sends them to the cart.php page, how can I either post a message saying " Thank you. That item has been added to your cart" or send them to the checkout mode. I want to skip the cart.php page all together?


Thanks

western-merc 11-18-2004 02:58 PM

To prevent a customer from being directed to the cart after adding a product to the cart, go to General Settings in the administrator area and uncheck "Redirect customer to cart".

PhiLL

elabdesigns 11-18-2004 03:18 PM

Phill-

Thanks, but I want them to go to the cart, just not the cart.php. I want them to go the "new" cart which is the cart.php?mode=checkout page?

Any one have any ideas? To this and my other questions above?

western-merc 11-19-2004 06:46 AM

When you click the "add to cart" button for a product the form submits to cart.php?mode=add. I guess you could either have it redirect to cart.php?mode=checkout at the end of the add portion of the cart.php code or maybe add the mode=add functionality to the mode=checkout portion of the code.

I know this isn't any specific help, but maybe can help a little bit.

elabdesigns 11-19-2004 07:17 AM

It sound like your own the right track Phill, now if I could just get a X-Guru to help me out with the coding, I would be golden.

Does anyone know where I can change the redirection?

elabdesigns 11-19-2004 07:56 AM

Checkout Page
 
Has anyone noticed that on the checkout page you can change the QTY to 0 and it will remove it, but you can't up the QTY. Why is this?

Jon 11-23-2004 03:51 PM

I've sent you a PM.

For the redirect, above where the smarty display is:

Code:

$smarty->display(....

Put:

Code:

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


I think that will do it.


All times are GMT -8. The time now is 04:03 PM.

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