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

modify order / invoice template

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-15-2004, 12:13 AM
 
michael barrett michael barrett is offline
 

Member
  
Join Date: Dec 2003
Posts: 10
 

Default modify order / invoice template

Using x-cart 3.5x
I want to modify order_invoice.tpl
the status of orders appears under the label status rather than next to it.

I tried modify order_invoice.tpl and the related order_status.tpl, but I don't understand it enough to adjust the settings.

case of "a little knowledge is a dangerous thing".

thanks in advance
__________________
X-Cart version 4.1.9
X-Cart directory /home/downunde/public_html
PHP 5.2.5 Details >>
GD bundled (2.0.34 compatible)
MySQL server 5.0.45-community
MySQL client 5.0.45
Web server Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8b DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_jk/1.2.25
Operation system Linux
Perl 5.008008
Reply With Quote
  #2  
Old 09-16-2004, 07:04 AM
  frankdux's Avatar 
frankdux frankdux is offline
 

Senior Member
  
Join Date: Jul 2004
Location: Manchester, NH, USA
Posts: 125
 

Default

You could just use a table as follows:

Code:
<table width="100%" border="0" cellspacing="0" cellpadding="5"> <tr> <td>label status code here</td> <td>status of orders code here</td> </tr> </table>

You would just have to be able to identify which code (that includes a template or language variable) is producing "label status" and "status of orders".
__________________
X-Cart: 4.0.18
Linux, Apache, MySQL: 4.1.16, PHP: 4.4.2
Reply With Quote
  #3  
Old 09-16-2004, 11:25 PM
 
michael barrett michael barrett is offline
 

Member
  
Join Date: Dec 2003
Posts: 10
 

Default Identifying code

thanks for your response.
I understand what you are saying to me
However
It seems that the include "tpl" statement pushes the content to the next line.
Is this your understanding ?
__________________
X-Cart version 4.1.9
X-Cart directory /home/downunde/public_html
PHP 5.2.5 Details >>
GD bundled (2.0.34 compatible)
MySQL server 5.0.45-community
MySQL client 5.0.45
Web server Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8b DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_jk/1.2.25
Operation system Linux
Perl 5.008008
Reply With Quote
  #4  
Old 09-17-2004, 05:19 AM
  frankdux's Avatar 
frankdux frankdux is offline
 

Senior Member
  
Join Date: Jul 2004
Location: Manchester, NH, USA
Posts: 125
 

Default

Setting the "td's" to be smaller or wider might help. Also, if you could post a screenshot it might be easier to make a recommendation.
__________________
X-Cart: 4.0.18
Linux, Apache, MySQL: 4.1.16, PHP: 4.4.2
Reply With Quote
  #5  
Old 09-17-2004, 11:25 PM
 
michael barrett michael barrett is offline
 

Member
  
Join Date: Dec 2003
Posts: 10
 

Default Thanks for your persistence

thanks for continuing the thread
wasn't able to paste a screenshot... how is it commonly done.

if you create an order and submit it.
then later look at the order history
you will notice that the status of the order appears in a line below the actual label for "status".

this appears to occur because the variable for status is inserted using an include statement.

to see what I mean, have a look at how the code looks in the order_history.tpl file.

yours
Michael
__________________
X-Cart version 4.1.9
X-Cart directory /home/downunde/public_html
PHP 5.2.5 Details >>
GD bundled (2.0.34 compatible)
MySQL server 5.0.45-community
MySQL client 5.0.45
Web server Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8b DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_jk/1.2.25
Operation system Linux
Perl 5.008008
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 09:48 AM.

   

 
X-Cart forums © 2001-2020