Magento – Change the UPS shipping label size in Magento CE

magento-1.8shippingups

Any ideas where and how I can change the size of the generated labels for UPS? We're getting giant labels that are unusable.

Best Answer

By default there is no way to resize UPS Label size in Magento as Magento get Label Image Format in GIF and creating PDF from that.

UPS API provide option to get Label Image Format in GIF or Thermal print format (EPL2,ZPL,STARPL,SPL)

For GIF format there is no any options to pass label size,however for Thermal print type, API provide options for Height and Width of label size.

<LabelStockSize>
    <Height>6</Height>
    <Width>4</Width>
</LabelStockSize> 

Yo can get Label in 6x4 or 8x4 INCH. For This you need to create custom module that override UPS function. You can find code for API in class

Mage_Usa_Model_Shipping_Carrier_Ups

at

app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups.php

and method name _formShipmentRequest()

Hope this will help

Related Topic