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 -->



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:

enter image description here

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:

enter image description here

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:

enter image description here


3 Answers 3


I'd check that your actually passing the entry_id correctly. But i'd also make sure your not disabling anything on the channel entries loop with the disable="" parameter.

If in doubt, try adding dynamic="no" as well ;)

  • I'm not disabling anything, plus I am using 'dynamic="no"' (have updated my template code to reflect this).
    – Dan Herd
    Commented Mar 10, 2014 at 20:55

This appears to be the same problem as here: Cartthrob PHP Error when checking out. Perhaps Chris Newton's suggested fix would solve the problem for now.


Aargh! The issue was with boldminded's Publisher module.

Not sure what the problem is, but if I disable that, the fields come through onto the packing slip no problem at all. Now I just need to see if upgrading Publisher to 1.2.2 makes a difference.

I wish these expensive CT add-ons would play together a bit better :-/

  • Publisher 1.2.2 makes no difference. Closing this question anyway now as the issue isn't with CartThrob. Adding 'Publisher' to the tags though...
    – Dan Herd
    Commented Mar 11, 2014 at 21:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.