Customizing Printable Packing Slips
Developers frequently modify the default content of packing slips to satisfy specific business requirements and industry demands. This article contains instructions on how to edit the HTML file of a printable packing slip.
Customizing printable packing slips
Customizing your Stencil theme’s printable packing slip relies on a template and variables from BigCommerce’s legacy Blueprint themes framework. To make changes to the packing slip file, follow these steps:
-
Download printable packing slip .zip, which contains the HTML skeleton of a printable packing slip.
-
Make your customizations to the HTML file.
-
Upload your customized HTML file to the WebDAV’s
/template/folder using WebDAV. Ensure it is namedpacking_slip_print.htmland replaces the default file, or WebDAV will not save your changes.
Variables
The following variables are available within the printable packing slip template:
- Some variables might be an empty string.
- LNG variables are fixed strings. If different text is desired, the LNG variables can be removed from the file and replaced with manually entered text. However, removing the LNG variables will impact translation functionality.
The following variables are available for HTML elements to alter CSS styling.
The “Hide” variables are all used to selectively hide HTML elements depending on whether the content they have under them is available. You will need to wrap the “Hide” variables around specific variables, for example:
ShippingPhone (pairs with HideShippingPhone).
If you were to use %%GLOBAL_ShippingPhone%% somewhere, then it should be enclosed in an element that will hide it when not set, i.e.,
<div style=%%GLOBAL_HideShippingPhone%%>Phone number: %%GLOBAL_ShippingPhone%%</div>.
The packing_slip_print.html page contains three snippets in separate template files. The three files are as follows:
- LogoImage.html/LogoText.html
- PrintableInvoiceItemConfigurableField.html
- PrintablePackingSlipItem.html
Stencil stores cannot modify these files without the assistance of Technical Support.
Resources
Related articles
- Checking a Theme’s Size
- Blueprint Theme Email Templates
- File Access (WebDAV) (Knowledge Base)
- Uploading and Linking to a File in Your Store (Knowledge Base)