Adding a variable into the packing slip template
-
Hi there,
I need to add an order specific barcode into the packing list, which then our warehouse scans. We would normally do this by adding a line of code into the packing list template which includes the order ID, which then generates the barcode.
The problem is it seems the custom block is not able to accept variables, so our barcode is not generated. What would be a work around on this one? Our developer thinks the variable has to be loaded directly into the packing list html? If so how do we do this? My developer told me this:
“Looking at the documentation I -believe- the html is in
/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/templates/pdf/Business
and the variable is $this->order->id”Any advise on how to do this would be really appreciated!
The topic ‘Adding a variable into the packing slip template’ is closed to new replies.