Developer forum

Forum » Templates » SalesDiscount on ordermail

SalesDiscount on ordermail

Rasmus Fjord
Reply
Hey Guys

We have a solution where every order has a 10% discount setup on it, and almost every order consists of 3 products.

The problem is that it will not display the discount as 1 line in the order mail, it shows 1 line of discount per product.

So to start with im filtering all the "discount" lines out by checking if product name contains "discount"

So now i want to add a hardcoded line into the order mail like this :

           
<tr>
                            <td nowrap="nowrap">
                            Discount 10%
                            </td>
                            <td align="right">
                             1
                            </td>
                            <td align="right">
                            
                            </td>
                            <td align="right">
                              DKK
                            </td>
                            <td align="right">
                              <!--@Ecom:Order.SalesDiscount-->
                            </td>
                        </tr>


But the problem is that <!--@Ecom:Order.SalesDiscount--> is "0". I thought it was supposed to return the discount for the order.

Is it the tag that is broken ? or is not supposed to be used here ? It is not inside any loops or anything.

Replies

 
Rasmus Fjord
Reply
!BUMP
So anyone got anything for this ?
 
Nicolai Høeg Pedersen
Reply
There are 2 types of discounts. Orderline discounts or order discounts.

Orderline discounts apply to one product, order discounts apply to the entire order as one.

Have a look at the manual:
http://manual.dynamicweb-cms.com/Dynamicweb-On-line-Manual/Management-Center/eCommerce-settings/Product-catalog/Sales-discounts.aspx



 

You must be logged in to post in the forum