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

Invoice totals not aligning

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-09-2005, 06:37 PM
 
jimbak jimbak is offline
 

Newbie
  
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 6
 

Default Invoice totals not aligning

After many hours searching the forum with out luck ', would someone please help me with this problem. I'm a newbie to x-cart et al.

http://www.gammamagnetics.com.au/xcart_invoice.gif

Thank you in anticipation

Jim
__________________
X-Cart 4.0.17 Gold
X-Cart 4.0.17 Special Offers
Mac OS X 10.4.3
Apache 1.3.33
PHP 4.3.11
MySQL 4.1.14
Reply With Quote
  #2  
Old 11-10-2005, 03:41 AM
 
balinor balinor is offline
 

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

Default

Open up mail/html/order_data.tpl, you'll need to increase the size of that table cell.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 11-10-2005, 02:15 PM
 
jimbak jimbak is offline
 

Newbie
  
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 6
 

Default

Thanks for pointing me to the correct template, however I haven't a clue how to increase the size of a table cell. PHP is all greek to me.

Taking the "Total" label as an example

{$lng.lbl_total|truncate:$max_truncate:"...":true| cat:":"|string_format:$max_space}{include file="currency.tpl" value=$order.total}

How would I adjust it? Am I looking in the right place?
__________________
X-Cart 4.0.17 Gold
X-Cart 4.0.17 Special Offers
Mac OS X 10.4.3
Apache 1.3.33
PHP 4.3.11
MySQL 4.1.14
Reply With Quote
  #4  
Old 11-10-2005, 02:18 PM
 
balinor balinor is offline
 

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

Default

It isn't the Smarty you want to be messing with, it is the html. Look for this line of code in the template:

Code:
<TD align="right" width="100%" height="20">{$lng.lbl_subtotal}:</TD>

and replace it with this:

Code:
<TD align="right" width="80%" height="20">{$lng.lbl_subtotal}:</TD>

see if that does the trick
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 11-10-2005, 04:40 PM
 
jimbak jimbak is offline
 

Newbie
  
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 6
 

Default

That's fixed half the problem. All the templates involved preview okay but the emailed invoice notification still has the same problem ??
__________________
X-Cart 4.0.17 Gold
X-Cart 4.0.17 Special Offers
Mac OS X 10.4.3
Apache 1.3.33
PHP 4.3.11
MySQL 4.1.14
Reply With Quote
  #6  
Old 11-10-2005, 07:00 PM
 
balinor balinor is offline
 

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

Default

Are you using html e-mail? If not, those templates are in the mail/ folder.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 11-10-2005, 07:43 PM
 
jimbak jimbak is offline
 

Newbie
  
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 6
 

Default

i'm using html e-mail. Step through: As a customer I place an order, in checkout, payment method is 'Purchase Order', I press 'Submit' the order is confirmed and an invoice is generated on screen below the confirmation message, the totals on that invoice do not align and the totals on the e-mails sent to me as a customer and me as administrator do not align even though after changing the code as per your instructions the /mail/html templates, order_data.tpl, order_invoice.tpl, order_notification.tpl all preview with proper alignment.
__________________
X-Cart 4.0.17 Gold
X-Cart 4.0.17 Special Offers
Mac OS X 10.4.3
Apache 1.3.33
PHP 4.3.11
MySQL 4.1.14
Reply With Quote
  #8  
Old 11-11-2005, 03:35 AM
 
balinor balinor is offline
 

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

Default

Keep changing that 80% numer lower until they do.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #9  
Old 11-13-2005, 01:49 PM
 
jimbak jimbak is offline
 

Newbie
  
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 6
 

Default

80% works fine after I changed the tax width to 80% as well. Thank you for your help.
__________________
X-Cart 4.0.17 Gold
X-Cart 4.0.17 Special Offers
Mac OS X 10.4.3
Apache 1.3.33
PHP 4.3.11
MySQL 4.1.14
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 03:02 AM.

   

 
X-Cart forums © 2001-2020