Hi,
could you please specify if you meant invoice in the shopping card preview or in the invoice template used in the
Tools - Ecommerce - order - Invoice tab?
1. Shopping card preview - you can insert following code into file:
~/CMSModules/Ecommerce/Controls/ShoppingCart/ShoppingCartPreview.ascx.csdouble price = ShoppingCartInfoObj.TotalPrice;
double tax = ShoppingCartInfoObj.TotalTax;
double priceWithoutTax = price - tax;
2. Tools - Ecommerce - order - Invoice tab - you can use following custom macro code:
switch (expression.ToLower())
{
case "custom":
match = true;
// Get shopping cart object from resolver
CMS.Ecommerce.ShoppingCartInfo cartObj = sender.SourceObject as CMS.Ecommerce.ShoppingCartInfo;
double tax = Convert.ToDouble(cartObj.TotalTax);
double price = Convert.ToDouble(cartObj.TotalPrice);
result = (price - tax).ToString();
break;
}
Best regards,
Ivana Tomanickova