HomeHome Product Discus... Product Discus...RazorCartRazorCartRazor code in email/invoice templatesRazor code in email/invoice templates
Previous
 
Next
New Post
10/22/2019 5:13 PM
 
The following code can be used in the email/invoice templates to get tax and recurring billing properties at the order line item level. This requires RazorCart v2.1.8

@foreach (var item in Model.Order.OrderDetails)
{
    bool taxExempt = item.TaxExempt;
    decimal taxableAmount = item.TaxableAmount;
 
    bool isRecurring = item.DetailRecurring.IsRecurring;
    DateTime startDate = item.DetailRecurring.StartDate;
    DateTime endtDate = item.DetailRecurring.EndtDate;
    string startDateSetup = item.DetailRecurring.StartDateSetup;
    string subscriptionInterval = item.DetailRecurring.SubscriptionInterval;
    int recurringOccurances = item.DetailRecurring.RecurringOccurances;
}
 
Previous
 
Next
HomeHome Product Discus... Product Discus...RazorCartRazorCartRazor code in email/invoice templatesRazor code in email/invoice templates