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)
-   -   Adding a step to the checkout? (https://forum.x-cart.com/showthread.php?t=22222)

Grant 06-02-2006 07:02 AM

Adding a step to the checkout?
 
I'm trying my hardest to work this out for myself but I need a heads up as I can't see what code is telling the store which step of the checkout it is currently at.

A simple answer to this problem would be to have each step of the checkout on a seperate .tpl file. eg checkout1.tpl / checkout2.tpl / checkout3.tpl etc - is this at all possible?

This is what i'm trying to do...

Currently my checkout has 3 steps.

1. Choose payment method
2. Check cart total, Check Billing / shipping address / enter CC details and submit order.
3. Order confirmation or rejection

What I'm trying to do is have a 4 step checkout to make it very simple for the customer to see whats going on...

1. Check billing / shipping address
2. Choose payment method
3. Check cart total, enter CC details & submit order.
4. Order confirmation or rejection

Does anybody know the basic code for calling or not calling a tpl file?
Something like "If the checkout is at step '2' show this xxx.tpl else don't"

or alternatively how I would go about splitting the checkout over multiple .tpl's as mentioned at the top?

balinor 06-02-2006 07:12 AM

I wouldn't split them up, as if you look at checkout.tpl you'll notice that it calls a form (cart.php) and all of the hidden fields that go along with it. Going to be a nightmare to split that up into multiple templates.

Grant 06-02-2006 08:26 AM

Quote:

Originally Posted by balinor
I wouldn't split them up, as if you look at checkout.tpl you'll notice that it calls a form (cart.php) and all of the hidden fields that go along with it. Going to be a nightmare to split that up into multiple templates.


Wouldn't it just be a case of duplicating the checkout.tpl renaming it checkout2.tpl but taking out the non-relevant display code and making sure the continue button loaded the next checkout3.tpl for instance? But you'd leave the form code in all templates.

Or is that just wishful thinking 8O

balinor 06-02-2006 08:38 AM

Well you'd need to pass whatever form variables were selected on to the next template, which means you need to start monkeying with they php files. Feel free...but you may be getting in pretty deep :)

Grant 06-02-2006 08:41 AM

Quote:

Originally Posted by balinor
Well you'd need to pass whatever form variables were selected on to the next template, which means you need to start monkeying with they php files. Feel free...but you may be getting in pretty deep :)


Oh shit - ok not gonna start playing with php :roll:


All times are GMT -8. The time now is 11:08 AM.

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