Sign in

E-mail *, (xx@domain.com)
Password *

Register | Forgot password

personalize on zipcode

The "GX WebManager Usage" forum covers all topics concerning the actual usage of GX WebManager. Topics include using editor functions, content elements, workflow, authorizations, My WebManager, Media repository, Personalization, Page templates, etc.

Answered
Not marked as answered yet

Forums  >  GX WebManager Usage  >  personalize on zipcode


Author personalize on zipcode
Enrico


Posts: 1

Posted: 26-03-2010 16:22

How can I make a personalization on zipcode, so for example all members which have a zipcode between 1000XX en 1200AA?

williamb



Posts: 310

Posted: 15-02-2011 10:54

Hi Enrico,

do you have the zipcode in your XML-session? (e.g. do you see it when you request the page using ?xmldebug=true ).

In that case, there should be enough information there to create the personalization.

patricka



Posts: 280

Posted: 16-02-2011 09:45 Solved

Let's assume your XML looks like this:

<root>
<system>
<user>
<zipcode>1123AB</zipcode>
</user>
</system>
</root>



You could then create a personalisation expression (condition) like this:

(1200 &gt; substring(/root/system/user/zipcode, 1, 4))
and
(substring(/root/system/user/zipcode, 1, 4) &gt;= 1000)



It will be true for all zipcodes from (including) 1000AA up to (excluding) 1200AA.
Note that by using "substring(...,1,4)" I skip the characters of the zipcode, but I guess that's exactly what one would want in this case.

Enjoy!

Greetings,

Patrick

patricka



Posts: 280

Posted: 16-02-2011 09:49

P.S. I'm using &gt; twice because the XSLT Tryit Editor bugged out when I tried using &lt;. I think that comparator should work just as well, though.

Greetings,

Patrick

Back to top

New message: "personalize on zipcode"
Message:
bold boitalicd underline url quote code smile cool eek grin mad razz sad wink
 
© 2012 GX Software B.V.

Disclaimer

This website (Connect.gxsoftware.com) may discuss or contain opinions, (sample) coding, software or other information that does not include GX official interfaces, instructions or guidelines and therefore is not supported by GX. Changes made based on this information are not supported.  GX will not be held liable for any damages caused by using or misusing the information, software, instructions, code or methods suggested on this website, and anyone using these methods does so at his/her own risk. GX offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this website, including any liability resulting from incompatibility between the content of this website and the materials and services offered by GX. By using this website you will not hold, or seek to hold, GX responsible or liable with respect to the content of this website.