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
  #1  
Old 06-25-2015, 06:11 AM
 
autoscents autoscents is offline
 

Member
  
Join Date: Apr 2015
Posts: 11
 

Default Invoices in the admin area print to large

Can some one help? I need to make the invoices print smaller from the admin area. I have tried the custom css but nothing changes. The invoice right now gets cut off on the right side while printing and even invoices with only one product on them print on two pages. i cant change the font size or spacing when i try custom css. please help save the trees.! Oh i have the latest x-cart 5
__________________
License products:
X-Cart Gold
Version 4.5.1
Product Configurator
Feature Comparison
Reply With Quote
  #2  
Old 06-25-2015, 10:34 AM
 
CodingGiant CodingGiant is offline
 

Newbie
  
Join Date: Apr 2015
Posts: 4
 

Default Re: Invoices in the admin area print to large

Its a surprising amount of work required to edit the admin invoice.

The first thing you need to do is build a custom module that adds CSS to the admin. Custom CSS only affects the customer side of the shop.
__________________
4.7.2
Reply With Quote

The following user thanks CodingGiant for this useful post:
autoscents (06-25-2015)
  #3  
Old 06-25-2015, 11:16 AM
 
autoscents autoscents is offline
 

Member
  
Join Date: Apr 2015
Posts: 11
 

Default Re: Invoices in the admin area print to large

thanks for the info but i have absolutely no idea how to do that? Has anybody posted any directions on making that happen? thanks for the help!
__________________
License products:
X-Cart Gold
Version 4.5.1
Product Configurator
Feature Comparison
Reply With Quote
  #4  
Old 06-25-2015, 08:40 PM
 
ITVV ITVV is online now
 

X-Wizard
  
Join Date: Nov 2006
Location: UK
Posts: 1,164
 

Default Re: Invoices in the admin area print to large

Hi,

Use FireFox browser to print out order invoices.

With FireFox you have more control over printing - You can "Shrink" the page to fit etc.

Hope that helps?

ITVV
__________________
X-Cart Pro 4.7.12 Active and working great with reBOOT-reDUX
X-Cart Pro 4.6.6 Retired after 6 years of first class service
X-Cart Pro 4.1.7 Retired after 9 years of first class service

Apache: 2.4.25
PHP: 7.4.5
MariaDB: 10.1.44
Arch: x86_64
Reply With Quote

The following user thanks ITVV for this useful post:
autoscents (06-26-2015)
  #5  
Old 08-08-2015, 09:14 AM
 
knifemaker knifemaker is offline
 

Member
  
Join Date: Nov 2008
Posts: 29
 

Default Re: Invoices in the admin area print to large

I just installed Firefox specifically for this purpose. The print window is not offering any options to shrink the page (or remove header footers)

Just wanted to agree with the OP that the print is much too large. A huge waste of paper.
__________________
Rob & Mar
X-Cart Business 5.2.6
Reply With Quote
  #6  
Old 08-08-2015, 10:08 AM
 
ITVV ITVV is online now
 

X-Wizard
  
Join Date: Nov 2006
Location: UK
Posts: 1,164
 

Default Re: Invoices in the admin area print to large

Hi knifemaker,

Firefox > File > Page Setup - All the required settings are there.

The OP was asking about X-Cart 4.6.3 but I am *sure* this will help you in X-Cart 5?

Kind regards

ITVV
__________________
X-Cart Pro 4.7.12 Active and working great with reBOOT-reDUX
X-Cart Pro 4.6.6 Retired after 6 years of first class service
X-Cart Pro 4.1.7 Retired after 9 years of first class service

Apache: 2.4.25
PHP: 7.4.5
MariaDB: 10.1.44
Arch: x86_64
Reply With Quote
  #7  
Old 08-10-2015, 07:27 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 autoscents
Can some one help? I need to make the invoices print smaller from the admin area. I have tried the custom css but nothing changes. The invoice right now gets cut off on the right side while printing and even invoices with only one product on them print on two pages. i cant change the font size or spacing when i try custom css. please help save the trees.! Oh i have the latest x-cart 5
First of all, Custom CSS only affects the customer interface of X-Cart.
The CSS file responsible for the invoice on the admin side of the store is /skins/admin/en/order/invoice/style.css.
Please feel free to tweak is the way you want.
Or you can create another stylesheet that would override the default stylings and include it into the main style file.
__________________
Best regards,
Igor Pudovkin
X-Cart hosting team
Reply With Quote

The following user thanks razortw for this useful post:
ITVV (08-10-2015)
  #8  
Old 03-10-2016, 07:01 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

Where does the Media Print CSS come from in the invoice section? Trying to make the address text larger on printing invoices but changing the invoice css doesn't effect the print.
__________________
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
  #9  
Old 03-13-2016, 11:13 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 it is in the same skins/admin/en/order/invoice/style.css - check the "@media" section at the bottom of the file.
__________________
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
  #10  
Old 03-15-2016, 06:38 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
I believe it is in the same skins/admin/en/order/invoice/style.css - check the "@media" section at the bottom of the file.

The only thing that @media has is

Code:
@media only print { .invoice-box .header img.logo { max-width: 300px !important; } }

So why does that overwrite any font size settings?
__________________
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
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 02:43 AM.

   

 
X-Cart forums © 2001-2020