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

Invoice Font Size - modification
 
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 06-19-2017, 07:36 PM
  GlasPak's Avatar 
GlasPak GlasPak is offline
 

eXpert
  
Join Date: May 2015
Posts: 241
 

Default 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
__________________
Business License
https://glaspak.com
GoDaddy VPS - Apache with WHM
2GB ECC DDR3 1600MHz
2x Intel E5-2630L v2 Hex Core 2.4/2.8ghz
15 MB proc cache
60 GB 10k RPM hdd
PHP 7.0.15
MariaDB 10.1.21 with InnoDB engine
Reply With Quote
  #2  
Old 06-20-2017, 12:47 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #3  
Old 06-20-2017, 06:02 AM
  GlasPak's Avatar 
GlasPak GlasPak is offline
 

eXpert
  
Join Date: May 2015
Posts: 241
 

Default 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.
__________________
Business License
https://glaspak.com
GoDaddy VPS - Apache with WHM
2GB ECC DDR3 1600MHz
2x Intel E5-2630L v2 Hex Core 2.4/2.8ghz
15 MB proc cache
60 GB 10k RPM hdd
PHP 7.0.15
MariaDB 10.1.21 with InnoDB engine
Reply With Quote
  #4  
Old 06-21-2017, 12:03 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may 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 01:43 AM.

   

 
X-Cart forums © 2001-2018