Developer forum
E-mail notifications
SetDateTags
Replies
hf@oerskov.dk wrote:
DW Support said: use SetDateTags for formatting the orderdate correctly. But what is the syntax for using SetDateTags? I can't find it anywhere in the documentation.
It sounds like you are coding a template based module:
With template object you can like this:
Dim tmpl As New Dynamicweb.Template("Some/Some.html")
tmpl.SetTemplateValue("SomeDate", Now)
Replace setTemplateValue with this:
tmpl.SetDateTags("SomeDate", Now)
It will make datetags as described here: http://template.dynamicweb.dk/Default.aspx?ID=3592
If you are using Dynamicweb.Templatev2 it is done automatically:
Dim tmpl As New Dynamicweb.Templatev2.Template("Some/Some.html")
tmpl.SetTag("SomeDate", Now)
I'm using standard Shop modules (classic, NOT eCom)
I'm looking for a way to format the order date in the Danish way (dd-mm-yyyy) in the confirmationpage and in the e-mail sent as a confirmation to the customer -- And I'm not planning to use custom modules or modifications in the standardmodules.
You must be logged in to post in the forum