<#assign dataStatus= ["success", "pending", "processing", "canceled", "refunded"]>

${view.l('Order number')}: ${row.getOrdersid()!}

<#assign total=0> <#list row.getCart() as cart> <#assign total = total+cart.getPrice()! > <#list cart.getProduct().getGallery() as file> <#if file.getTypefile()!?contains("file")> <#if cupon??> <#assign total = view.calcDiscount(cupon, total, 'total') > <#else> <#if row.getShipingTable()??> <#if user?? >
${view.l('Order Status')}:
${view.l("Total payd")}: ${viewRequest.price(row.getTotalpayd()!, null )!}
${view.l("Date")}: ${row.getCreated_at()!}
${cart.getProduct().getTitle()!} x ${cart.getQty()!} <#if cart.getOptionsid()?? >
${cart.getProduct().getAttrNames(cart.getOptionsid())!}
${viewRequest.price(cart.getPrice()! , null )!}
${file.getTitle()} ${view.l("Download")} , ${view.l("Downloaded")}: ${cart.getDownloaded()!} ${view.l("time")}
Subtotal ${viewRequest.price(total, null )}
${view.l('Cupon') } ${cupon.getCupon()!}
${view.l('Discount') } - ${viewRequest.price(view.calcDiscount(cupon, total, 'discount'), null )}
${view.l('Total') }: ${viewRequest.price(view.calcDiscount(cupon, total, 'total'), null )}
${view.l("Subtotal")}: ${viewRequest.price(total, null )}
${view.l("Shipping")} ( ${row.getShipingTable().getShipping_name()!} ) ${viewRequest.price(row.getShipingTable().getPrice()!, null )!}
${view.l("Payment Method")} : ${row.getPaymentmethod()!}
${view.l("Total payd")}: ${viewRequest.price(row.getTotalpayd()!, null )!}

${view.l("User")} : ${user.getFirstName()!} ${user.getLastName()!} , ${user.getEmail()!} | ${view.l("View all orders")}

<#if (fieldsData?size>0)> <#list fieldsData as field>

${view.splitLang(field.getValue()!)}

<#assign dataFields = view.checkoutFields(field.getValue1())!, ordersShipping = row.getShippingMap()!> <#if field.getParam()!?contains("shipping")> <#assign shippon ="shipping_"> <#else> <#assign shippon =""> <#list dataFields as key, value> <#if ordersShipping[shippon+key]!?has_content>
${value.getTitleTranslated()!}: <#if key?contains("country")> ${countryServices.getCountryById(ordersShipping[shippon+"country"]!)!} <#else> ${ordersShipping[shippon+key]!}