![]() |
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 |
Open up mail/html/order_data.tpl, you'll need to increase the size of that table cell.
|
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? |
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 :) |
That's fixed half the problem. All the templates involved preview okay but the emailed invoice notification still has the same problem ??
|
Are you using html e-mail? If not, those templates are in the mail/ folder.
|
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.
|
Keep changing that 80% numer lower until they do.
|
80% works fine after I changed the tax width to 80% as well. Thank you for your help. :D
|
All times are GMT -8. The time now is 02:42 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.