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)
-   -   Invoices in the admin area print to large (https://forum.x-cart.com/showthread.php?t=72343)

qualiteam 03-15-2016 09:57 PM

Re: Invoices in the admin area print to large
 
I'm not sure, but perhaps the browser has some predefined styles too.

CenturyPerf 05-24-2016 09:21 AM

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?

qualiteam 05-24-2016 09:50 PM

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.

CenturyPerf 05-26-2016 08:10 AM

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?

razortw 05-26-2016 02:46 PM

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.

qualiteam 05-27-2016 07:01 AM

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?

GlasPak 06-06-2016 06:47 AM

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.

razortw 06-07-2016 07:04 AM

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

TonyD 07-12-2017 09:53 AM

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?

qualiteam 07-19-2017 10:04 PM

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


All times are GMT -8. The time now is 08:14 PM.

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