Order printer - set margins

Solved
Highlighted
New Member
2 0 0

Hi folks!

 

I am using Godex label printer to print packing slips and I would like to set margins for Order printer Packing slips, in the code. So I don't need to set them every time in Win print dialogue. 

 

Any help?

 

Cheers!

0 Likes

Success.

Hey there,

 

Not sure if you still need help with this, but it can be done. Click the "Edit" button on your template in Order Printer, and the do the following:

 

On the first line of your template code, add this:

 

<div style="width: 100%; margin: 30px;">

On the last line of your template code, add this:

 

</div>

That will wrap your document in an invisible container, that has a 30px margin around the edges. You can adjust the 30px number to get more or less margin if needed.

 

Hope it helps!

 

Bjorn

Bjorn Forsberg | FORSBERG+two | Award-winning Shopify Apps since 2011
0 Likes
New Member
2 0 0

Yes! That's it!

 

Many thanks Bjorn.

0 Likes