Add variant in confirmation e-mails #1257
Replies: 1 comment
-
|
It's a little more involved, but you should be able to do something like this: @foreach ($order->lineItems() as $lineItem)
@php($variant = $lineItem->variant() ? $lineItem->product()->variant($lineItem->variant()) : null)
| {{ $variant?->name() }} | ... |
@endforeach |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I got a (hopefully) last question: in the confirmation e-mails I was able to show the metadata needed. But the person who fullfill the orders asked me if it is possible to show the variant as well (e.g. size of soccer-socks).
How can I add it to the lineItem?
Beta Was this translation helpful? Give feedback.
All reactions