Accessing the order id or customer id from the Gift card issued template

Accessing the order id or customer id from the Gift card issued template

glonowen
Visitor
1 0 0

Hi - I'm trying to access the order id or customer id from the 'Gift card issued' template but not having any luck.

 

Variables such as {{ gift_card.customer.name }} work but {{ gift_card.customer.id }} doesn't.  Neither does {{ order.id }} or {{ gift_card.customer.last_order }}

 

I'm trying to do this as a need a unique incremental number for each gift card issues (so was thinking order or customer id would do).

 

Does any have any idea how I could access one of these value or create a uniuqe incremental number in the template for each gift card ordered some other way?

 

Thanks loads,

 

Gareth

Replies 0 (0)