Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Adding a step to the checkout?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-02-2006, 07:02 AM
 
Grant Grant is offline
 

Senior Member
  
Join Date: Apr 2006
Posts: 171
 

Default 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?
__________________
X-Cart version : 4.0.18
Mod : Customer Also Bought
Mod : Custom catergory Templates
Mod : Custon Product Templates
Reply With Quote
  #2  
Old 06-02-2006, 07:12 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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
Reply With Quote
  #3  
Old 06-02-2006, 08:26 AM
 
Grant Grant is offline
 

Senior Member
  
Join Date: Apr 2006
Posts: 171
 

Default

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
__________________
X-Cart version : 4.0.18
Mod : Customer Also Bought
Mod : Custom catergory Templates
Mod : Custon Product Templates
Reply With Quote
  #4  
Old 06-02-2006, 08:38 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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
Reply With Quote
  #5  
Old 06-02-2006, 08:41 AM
 
Grant Grant is offline
 

Senior Member
  
Join Date: Apr 2006
Posts: 171
 

Default

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
__________________
X-Cart version : 4.0.18
Mod : Customer Also Bought
Mod : Custom catergory Templates
Mod : Custon Product Templates
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:41 AM.

   

 
X-Cart forums © 2001-2020