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

Invoices in the admin area print to large

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #11  
Old 03-15-2016, 09:57 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: Invoices in the admin area print to large

I'm not sure, but perhaps the browser has some predefined styles too.
__________________
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
  #12  
Old 05-24-2016, 09:21 AM
  CenturyPerf's Avatar 
CenturyPerf CenturyPerf is offline
 

eXpert
  
Join Date: Jun 2003
Location: Reno, Nevada
Posts: 396
 

Default Re: Invoices in the admin area print to large

Alex:

I'm also looking at the CSS for the printed invoice, as I have a client complaining about the font size for the customer address. It is considerably small.

When viewing in Firefox, the font is 12px, but in the CSS fie it shows a much larger font. How or why is this font size being reduced, and where could we change the actual font to something that prints more clearly?
__________________
Best Regards,

Sam Solace - Pres/CEO
Century Performance Center, Inc.
http://www.centuryperformance.com

(3) sites using X-Cart 5.3.5.5
X-Payments Enterprise 3.1.4
Reply With Quote
  #13  
Old 05-24-2016, 09:50 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: Invoices in the admin area print to large

Hello Sam,

In the 5.2.15 version the files that define styles for the printed invoice are these:
- skins/admin/en/css/print.css (backend)
- skins/default/en/css/print.css (storefront)
- skins/pdf/en/order/invoice/print.css (PDF)

You should look for styles defined for the ".invoice-box .header .address p" selector.
__________________
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
  #14  
Old 05-26-2016, 08:10 AM
  CenturyPerf's Avatar 
CenturyPerf CenturyPerf is offline
 

eXpert
  
Join Date: Jun 2003
Location: Reno, Nevada
Posts: 396
 

Default Re: Invoices in the admin area print to large

Hello Alex:

Are you sure about "/skins/pdf/en/order/invoice/print.css (PDF)" ?

That "/pdf/" folder does not exist.

Also, how do I keep the changes, since after updating yesterday the other tweaks disappeared?
__________________
Best Regards,

Sam Solace - Pres/CEO
Century Performance Center, Inc.
http://www.centuryperformance.com

(3) sites using X-Cart 5.3.5.5
X-Payments Enterprise 3.1.4
Reply With Quote
  #15  
Old 05-26-2016, 02:46 PM
  razortw's Avatar 
razortw razortw is offline
 

X-Cart team
  
Join Date: Feb 2015
Posts: 807
 

Default Re: Invoices in the admin area print to large

Quote:
Originally Posted by CenturyPerf
Hello Alex:

Are you sure about "/skins/pdf/en/order/invoice/print.css (PDF)" ?

That "/pdf/" folder does not exist.

Also, how do I keep the changes, since after updating yesterday the other tweaks disappeared?
The PDF folder will appear if you install the 'PDF Invoice' module.
__________________
Best regards,
Igor Pudovkin
X-Cart hosting team
Reply With Quote
  #16  
Old 05-27-2016, 07:01 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: Invoices in the admin area print to large

Quote:
Originally Posted by CenturyPerf
Also, how do I keep the changes, since after updating yesterday the other tweaks disappeared?

How did you do the changes?
Did you wrap modifications into a custom module as is described there: http://kb.x-cart.com/display/XDD/Basic+guide+to+theme+creation?
__________________
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
  #17  
Old 06-06-2016, 06:47 AM
  GlasPak's Avatar 
GlasPak GlasPak is offline
 

eXpert
  
Join Date: May 2015
Posts: 241
 

Default Re: Invoices in the admin area print to large

Quote:
Originally Posted by qualiteam
How did you do the changes?
Did you wrap modifications into a custom module as is described there: http://kb.x-cart.com/display/XDD/Basic+guide+to+theme+creation?

That is specific for Smarty Templates, how do you override the css files? I tried using custom CSS in the look and layout tab but that doesn't override the print css.
__________________
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
  #18  
Old 06-07-2016, 07:04 AM
  razortw's Avatar 
razortw razortw is offline
 

X-Cart team
  
Join Date: Feb 2015
Posts: 807
 

Default Re: Invoices in the admin area print to large

Quote:
Originally Posted by GlasPak
That is specific for Smarty Templates, how do you override the css files? I tried using custom CSS in the look and layout tab but that doesn't override the print css.
You should override following files that define styles for printed pages, in your custom module, or using the Custom Skin module that is available for free in the marketplace
- /skins/default/en/css/print.css
- /skins/admin/en/css/print.css
Here is the article that explains how to add CSS files to your module
* http://kb.x-cart.com/display/XDD/Adding+CSS+and+JS+files
__________________
Best regards,
Igor Pudovkin
X-Cart hosting team
Reply With Quote
  #19  
Old 07-12-2017, 09:53 AM
 
TonyD TonyD is offline
 

eXpert
  
Join Date: Mar 2004
Location: Okc
Posts: 288
 

Default Re: Invoices in the admin area print to large

Quote:
Originally Posted by qualiteam
Hello Sam,

In the 5.2.15 version the files that define styles for the printed invoice are these:
- skins/admin/en/css/print.css (backend)
- skins/default/en/css/print.css (storefront)
- skins/pdf/en/order/invoice/print.css (PDF)

You should look for styles defined for the ".invoice-box .header .address p" selector.
same for 5.3.1?
__________________
X-Cart v 4.7.8(live)
Reply With Quote
  #20  
Old 07-19-2017, 10:04 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: Invoices in the admin area print to large

I believe that in 5.3.x the files are:
- skins/admin/css/print.css
- skins/customer/css/print.css
- skins/pdf/common/order/invoice/print.css
__________________
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 > Dev Questions (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 08:17 AM.

   

 
X-Cart forums © 2001-2020