Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8901

How to get abandoned shopping cart data in email template.

$
0
0
Hi Support,I am planning to set reminder email to the customer about abandoned shopping cart items in my mvc 12 sp application.For the shopping cart items i am using macro expression to get list of products to get in email templates. in the email template i am inserting below macro expression.but it is not working.any idea how to get abandoned shopping cart items. i have tried below shopping cart macro expression as well.i am able to find the transformation for dancing goat site as well.https://docs.kentico.com/k12sp/on-line-marketing-features/configuring-and-customizing-your-on-line-marketing-features/configuring-marketing-automation/walkthrough-sending-an-automated-reminder-of-an-abandoned-shopping-cart#WalkthroughSendinganautomatedreminderofanabandonedshoppingcart-Creatingascheduledtaskformarkingshoppingcartsasabandoned{% foreach(item in ContentTable) { %} @tr@ @td style=@text-align: left;@@{%(item.IsProductOption) ? @@nbsp;@nbsp;@nbsp;@ : @@%}{% Localize(item.SKUName)|(encode)true %} {% (item.CartItemText != @@) ? @ '@ + item.CartItemText + @' @ : @@ |(encode)true %} {% item.SKUNumber|(encode)true |(identity)GlobalAdministrator %}@/td@ @td style=@text-align: right; vertical-align: top;@@{%(item.IsProductOption @@ !item.IsAccessoryProduct) ? @@ : item.Units %}@/td@ @td style=@text-align: right; vertical-align: top;@@{%(item.IsProductOption @@ !item.IsAccessoryProduct) ? @@ : (item.UnitPrice - item.UnitTotalDiscount).Format(Currency.CurrencyFormatString)|(encode)true %}@/td@ @td style=@text-align: right; vertical-align: top;@@{%(item.IsProductOption @@ !item.IsAccessoryProduct) ? @@ : item.TotalPrice.Format(Currency.CurrencyFormatString)|(encode)true %}@/td@ @/tr@ {% } #%} Thanks, Harshal

Viewing all articles
Browse latest Browse all 8901

Trending Articles