Hoping someone can help me with this.
A customer would like the shopping cart shown in the following manner:
Article
Article
Article
Total Price (before discount)
----
Total price after discount
There does not seem to be a template tag which shows the full price before the discount, so I am attempting to use a templateExtender for this, with little success :)
Here is the code I am using; Order.Price.Price returns the price after the discount, and Order.SalesDiscount always returns 0.0
Public
Class SampleOrderTemplateExtenderInherits OrderTemplateExtenderPublic Overrides Sub ExtendTemplate(ByVal Template As Templatev2.Template, _ByVal RenderingState As TemplateExtenderRenderingState)Dim myPrice As Double = Order.Price.Price 'Price after discount Template.SetTag( End
Dim myDiscount As Double = Order.SalesDiscount 'Dicount (is always 0.0)
Dim myTotal As Double = myPrice + myDiscount"FullPrice", myTotal.ToString())End Sub Class
Here are two example images:
http://www.dynamicweb.nl/files/filer/NL_images/example.jpg
http://www.dynamicweb.nl/files/filer/NL_images/me.order.price.jpg