Showing posts with label ECommerce. Show all posts
Showing posts with label ECommerce. Show all posts

Tuesday, November 27, 2007

How to: Demask a masked e-mail address in Dynamic Web

In Dynamic Web CMS you can choose that all e-mail adresses will be "masked". If you from a javascript wish to get the "demasked" version of such a value you can use this function:


function getDemaskedEMail(sEmail)
{
if (sEmail.substr(0, 2)=='&#' && sEmail.substr(sEmail.length-1, 1)==';')
{
sEmail = ';'+sEmail+'&#';
sEmail = sEmail.split(';&#');
var ss = '';
for(var i=0; i<sEmail.length; i++)
{
if (sEmail[i]!='') {
ss+=String.fromCharCode(sEmail[i])
}
}
sEmail = ss;
}
return sEmail;
}

Monday, November 26, 2007

How to: Show more than one group i Dynamicweb ECommerce

If you want to display more than one group in Dynamicweb ECommerce you should put a ECom module "varekatalog" on a paragraph. You need not choose in backend which group you wish to display - that can be done in the querystring or the post data you send to the URL.

If you wish to display "GROUP20" you will use an URL alike this:
http://sth.net.dynamicweb.dk/Default.aspx?ID=8&GroupID=GROUP13

If you wish to display more than one group - use this syntax:
http://sth.net.dynamicweb.dk/Default.aspx?ID=8&GroupID=GROUP13,GROUP14