How to get SKU Image path & MVC url path in email template

harshal bundelkhandi asked on May 12, 2020 17:37

Hi Support, Currently i am working on email templates in that i want to grab shopping cart items data with MVC site product url & SKU image path. using macro expression is there any way to get mvc site SKU node alias path & SKU Image path.

Thanks, Harshal

Correct Answer

Peter Mogilnitski answered on May 13, 2020 16:58

Path you can for example: {% Order.OrderItems.FirstItem.OrderItemSKU.SKUImagePath %}
but alias path... , you can get the skuid with macro: {% Order.OrderItems.FirstItem.OrderItemSKU.SKUID %} but to get node alias path - you need to write a custom macro to get node based on skuid.

P.S. there is {% Order.OrderItems.FirstItem.OrderItemSKU.Site.DataContext.Documents %}. Try it to see what it returns.

0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.