I’ve implemented a gift shop on a client’s website using the CartThrob module, and CartThrob is set to save completed orders to a channel called “gift_shop_orders”. I then created a template “cart/report” for my client to be able to print out an order slip and set it as the live look template for that channel, so my client can just pull up a list of orders and click “View” next to the entry to see the order slip. However, it’s not working. I’ve pared down the code so that all that’s left in the template is:
{exp:channel:entries channel="gift_shop_orders" limit="1"}
{entry_id} - {title}
{/exp:channel:entries}When I view the template directly or click “view” next to an entry to pull up the live look, nothing shows up. But if I remove the channel=”” parameter, then it pulls up the info for whatever the latest entry was, regardless of the channel. I have looked in the database and all the info for the entries in the gift_shop_orders channel is there, but I can’t for the life of me pull it up on a template. What’s going wrong here?