Perch Shop - Display previous orders

  • Hello,


    I am using Perch Shop and I am able to display a list of previous orders if a member is logged in. Can I only display the order number, date, total and status, or is it also possible to show the products that were bought with that order?


    Mike

  • Hi


    Yes it's possible. When I did it I created a list page template with links (using the order id in the url) to a detail page template. This then pulls in the order details using the function <?php perch_shop_order(perch_get('orderID')); ?>'.


    You could then get at the order's data using <perch:showall> to see what you can display in that template. My order details template uses the following to show the details of the order: