stripe icon indicating copy to clipboard operation
stripe copied to clipboard

Display Order Line Items in template

Open mark-chief opened this issue 3 years ago • 0 comments

Description

Hello, I need to display the order line items in my template but I cannot see a variable to do this in the docs.

other than that its working perfectly - but this is an urgent request, thanks so much!

For example, something like this, is it possible?

{% set orders = craft.enupalStripe.orders({email: currentUser.email}).orderBy('dateOrdered desc').all() %}
{% for order in orders %}
 Line Item: {{ order.lineItem.name}}
{% endfor %}

mark-chief avatar Feb 26 '21 19:02 mark-chief