Here's a simplified version of my packing slip template code:
{exp:channel:entries channel="orders" limit="1" status="open|New|Shipped" dynamic="no" entry_id="{entry_id}"}
<h1>{title}</h1> <!-- Shows order number OK -->
<p><strong>Ship to:</strong> {order_shipping_first_name} {order_shipping_first_name}</p> <!-- Shows nothing -->
{exp:cartthrob:order_items order_id="{entry_id}"}
<p>{item:title} {item:price} {item:quantity} {item:subtotal}</p> <!-- Order items display OK, but I get a PHP warning -->
{/exp:cartthrob:order_items}
{/exp:channel:entries}
If I replace {entry_id} with an actual order entry_id and view the template outside of the control panel, it displays everything just fine:
However, if I set it as the packing slip template in the CT system settings and click 'Print packing slip', it brings up the template OK, but won't display anything other than the {title} tag from the orders channel and throws a PHP warning when displaying the order items:
Am I using the wrong template tags, or is this a bug in Cartthrob?
Right - I've now installed the example CT templates and tried to use that and... It still doesn't work: