X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Invoice totals not aligning (https://forum.x-cart.com/showthread.php?t=17863)

jimbak 11-09-2005 06:37 PM

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

balinor 11-10-2005 03:41 AM

Open up mail/html/order_data.tpl, you'll need to increase the size of that table cell.

jimbak 11-10-2005 02:15 PM

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?

balinor 11-10-2005 02:18 PM

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 :)

jimbak 11-10-2005 04:40 PM

That's fixed half the problem. All the templates involved preview okay but the emailed invoice notification still has the same problem ??

balinor 11-10-2005 07:00 PM

Are you using html e-mail? If not, those templates are in the mail/ folder.

jimbak 11-10-2005 07:43 PM

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.

balinor 11-11-2005 03:35 AM

Keep changing that 80% numer lower until they do.

jimbak 11-13-2005 01:49 PM

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.