X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Invoice Font Size - modification (https://forum.x-cart.com/showthread.php?t=75447)

GlasPak 06-19-2017 07:36 PM

Invoice Font Size - modification
 
For the life of me I can't figure out how to make the printable invoices in the admin section have a larger font.. Right now the invoice says 15px font but when it prints I swear it is like 8 pt font...

using
?target=order&order_number=1&mode=invoice

The css attribute is apparently inherited by

.addresses .address-section .address-field span {
}

But I can't find any reference to this in any of the css files in the admin section... I know it was moved from 5.2 to 5.3. I tried disabling aggregate css but it still doesnt show which css file it is inheriting this from (the css file is still the aggregate even after I disable that and clear the cache). This is what dev tools says for the css file https://glaspak.com/var/resources/admin/https/screen/1962436ee4d61a7b55ae7a2a5f63fe7f.css?1497932647



Edit:
http://kb.x-cart.com/en/modules/pos_system_for_x-cart/using_pos_system_for_x-cart/using_the_pos_system_mod...mer_area).html

Can this please be updated

qualiteam 06-20-2017 12:47 AM

Re: Invoice Font Size - modification
 
You can debug printable pages in this way:
https://stackoverflow.com/questions/9540990

As far as I see, here is the selector that replaces the font size in printable invoices:
.invoice-box .addresses .address-section li.address-field *

It is in skins/common/order/invoice/common.less

GlasPak 06-20-2017 06:02 AM

Re: Invoice Font Size - modification
 
Quote:

Originally Posted by qualiteam
You can debug printable pages in this way:
https://stackoverflow.com/questions/9540990

As far as I see, here is the selector that replaces the font size in printable invoices:
.invoice-box .addresses .address-section li.address-field *

It is in skins/common/order/invoice/common.less


Thanks for the reply.

Code:

  .invoice-box .addresses .address .method-box,
  .invoice-box .addresses .address-section li.address-field * {
    font-size: 10px;
    line-height: initial;
  }


Well that explains a lot now.. Why would you set the print font size to 10px?!?

the suggestion for rendering as print doesn't work because x-cart generates the print invoice as a pdf and when i tried the render print option it just renders the admin.php page and doesn't generate the actual print document... So using ?target=order&order_number=5632&mode=invoice to find the css I need to edit and then editing, uploading, clearing cache and regenerating the print invoice to see the changes.

qualiteam 06-21-2017 12:03 PM

Re: Invoice Font Size - modification
 
I'm not sure why it was done this way.

Quote:

the suggestion for rendering as print doesn't work because x-cart generates the print invoice as a pdf

It works for me if I open the ?target=order....mode=invoice page and then choose "Print" as the render option. Perhaps you use the PDF invoice module, and it changes the way how the invoice page behaves.


All times are GMT -8. The time now is 08:30 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.