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 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 named packing_slip_print.html and replaces the default file, or WebDAV will not save your changes.
The following variables are available within the printable packing slip template:
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:
Stencil stores cannot modify these files without the assistance of Technical Support.