1

Does store generate a printable order summary for customers? Anyone do this with any success. Customer wants a "print invoice" button on the order summary page, and I'm not sure how to go about that. I tried using the HTML/CSS email that goes to the customer (that would print nicely), but of course, when I put that in a template called "invoice" and link to it from the Order Confirmation page, it doesn't parse any of the customer/order variables.

1 Answer 1

2

Take a look at the Orders Tag:

The order_hash should be present in the "success" page URL as a segment and you can grab that and pass it to another template with a link like this:

<a href="/checkout/print/{segment_3}">Print Invoice</a>

Then in your "Print" template use the following to get your invoice data:

{exp:store:orders order_hash="{segment_3}"}
    {if no_orders}
        {redirect='404'}
    {/if}
    <!-- display order details here -->
{/exp:store:orders}

Your Answer

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

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