| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Adding a step to the checkout? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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?
__________________
X-Cart version : 4.0.18 Mod : Customer Also Bought Mod : Custom catergory Templates Mod : Custon Product Templates |
|||||||
#2
|
|||||||
|
|||||||
![]() 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.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() Quote:
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 ![]()
__________________
X-Cart version : 4.0.18 Mod : Customer Also Bought Mod : Custom catergory Templates Mod : Custon Product Templates |
|||||||
#4
|
|||||||
|
|||||||
![]() 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
![]()
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
![]() Quote:
Oh shit - ok not gonna start playing with php ![]()
__________________
X-Cart version : 4.0.18 Mod : Customer Also Bought Mod : Custom catergory Templates Mod : Custon Product Templates |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|