Webcontent weergeven

Webcontent weergeven

Er trad een fout op tijdens de verwerking van het sjabloon.
Expression bCode is undefined on line 57, column 6 in 10153#10191#6590074.
1<#assign url = request.attributes.CURRENT_URL > 
2<#assign oadURL = propsUtil.get('elan.oad.url') > 
3<#assign qstringmap = httpUtil.getParameterMap(httpUtil.getQueryString(url))> 
4<#assign url404 = '/error/404.html' > 
5<#assign utilServ = serviceLocator.findService("crc-utilities-portlet", "com.elan.crc.utilities.service.CRCRemoteServiceService")> 
6<#assign environment = url?replace('/11t1.*','','r')> 
7<#assign oadURL_TC = 'https://uat-online1.elancard.com/oad/terms.controller' > 
8 
9<#--  check bankercode validity  --> 
10 
11<#if qstringmap["bankercode"]?has_content> 
12    <#assign bCode= qstringmap["bankercode"]?first> 
13 
14    <#assign fiData= utilServ.makeCall('crcDDCBankerAssistedApp','0&'+bCode)> 
15    <#if fiData?first?has_content> 
16        <#assign fi = fiData?first> 
17        <#if (fi.projectId == "12" || fi.projectId == "13" || fi.projectId == "14")> 
18            <#assign subbu_special = fi.offerId> 
19        </#if> 
20    </#if>       
21    <#assign bData = utilServ.makeCall('crcDDCBankerAssistedAppDetail','0&'+bCode)> 
22    <#list bData as b> 
23      <#assign lc = b.locationcode > 
24      <#assign bName = b.branch > 
25      <#assign bPhone = b.businessphone > 
26      <#assign boeid = b.oeid > 
27      <#assign fName = b.firstname?trim> 
28      <#assign lName = b.lastname?trim> 
29      <#assign rlc = b.reallocationcode > 
30      <#assign mappedLC = b.mappedLocationCode > 
31    </#list> 
32 
33 
34 
35   
36<#else> 
37    <script> 
38        console.log("MainProductBcode missing"); 
39        //location.href = '${url404}'; 
40    </script> 
41</#if> 
42 
43<#assign text_to_apply_source = "vanity url" > 
44<#if qstringmap["sms"]?has_content> 
45    <#assign sms = 1 > 
46    <#assign text_to_apply_source = "sms" > 
47</#if> 
48<#if qstringmap["qrCode"]?has_content> 
49    <#assign text_to_apply_source = "qr code" > 
50</#if> 
51<#assign campaignId = "" > 
52<#assign ecidExt=""> 
53<#if qstringmap["ecid"]?has_content> 
54    <#assign campaignId = qstringmap["ecid"]?first > 
55    <#assign ecidExt="&ecid="+qstringmap["ecid"]?first> 
56</#if> 
57<#if bCode?starts_with("amp") && (url?contains("11t1m"))> 
58    <#assign ameriprise = true> 
59<#else> 
60    <#assign ameriprise = false> 
61</#if> 
62 
63<#if mappedLC?has_content && !ameriprise> 
64    <#assign lc = mappedLC > 
65</#if> 
66 
67 
68 
69<#if lc?has_content> 
70 
71    <#assign firstNameLength = fName?length > 
72    <#assign lastNameLength = lName?length > 
73    <#if firstNameLength + lastNameLength &gt; 19 > 
74        <#if lastNameLength &gt; 18 > 
75            <#assign bLName = lName?substring(0,18)> 
76        <#else> 
77            <#assign bLName = lName> 
78        </#if> 
79        <#assign maxFirstName = 19 - bLName?length > 
80        <#if firstNameLength &gt; maxFirstName > 
81            <#assign bFName = fName?substring(0,maxFirstName)> 
82        <#else> 
83            <#assign bFName = fName> 
84        </#if> 
85    <#else> 
86        <#assign bFName = fName > 
87        <#assign bLName = lName > 
88    </#if> 
89       
90 
91    <#assign prefix = "00000" > 
92    <#assign lcWithPrefix = prefix + lc > 
93    <#assign withPrefixLength = lcWithPrefix?length > 
94    <#assign startHere = withPrefixLength - 5> 
95    <#assign lc = lcWithPrefix?substring(startHere)> 
96 
97    <#assign clientProfileService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcClientProfileLocalService") > 
98    <#assign clientProfileList = clientProfileService.findByLocationCode(lc)>     
99 
100    <#if clientProfileList?first?has_content> 
101        <#assign clientProfile = clientProfileList?first> 
102        <#assign partnerName = clientProfile.getMarketingNameLong()> 
103        <#assign pbu = clientProfile.getPbu()> 
104        <#assign subbu = clientProfile.getSUBBRANDBUNBR()> 
105        <#assign optoutData = utilServ.makeCall('crc_DDCSAAOptOut',pbu+'&'+subbu)> 
106        <#if (optoutData?size == 0)>                 
107            <#assign clientDataService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcPbuLocalService") > 
108            <#assign clientProfileDataList = clientDataService.getByPbuAndSubBu(pbu,subbu)> 
109            <#assign partnerUrl = clientProfileDataList.getPartnerMainUrl()> 
110            <#if partnerUrl?has_content && !partnerUrl?matches(r"(?i)^https?\:\/\/.*")>             
111                <#assign partnerUrl = 'https://' + partnerUrl> 
112            </#if>            
113            <#assign clientdata = utilServ.makeCall('crcDDCTier1Customizations','0&'+pbu+'&'+subbu+'&11')> 
114            <#if (clientdata?size > 0)> 
115                <#assign logoFileName = clientProfile.getLogoBFormat1()?replace(".", "-")?replace("-([^-]*)$", ".$1", "r")?lower_case> 
116                <#assign cdnLogoUrl = propsUtil.get('rackspace.cdn.web.url')> 
117                <#list clientdata as data> 
118                    <#assign billingCycle=data.BillingCycles> 
119                </#list> 
120                <#if pbu == "0864054"> 
121                    <#assign override = "berkshire"> 
122                <#else> 
123                    <#assign override = " "> 
124                </#if> 
125              
126                <#--  this one should be delete for prod  --> 
127                     
128                        <#assign cdnLogoUrl = "https://4f61efb10f32ceb57895-3733e103896f37259213d6ad72acbe68.ssl.cf2.rackcdn.com">   
129                        <#assign logoFileName = pbu + "-" + subbu + ".png"> 
130                     
131                <#assign cdnCardArtUrl = propsUtil.get('rackspace.cdn.cardart.url')> 
132                <#assign pageClass = secondaryBackgroundImage.cardType.getData()> 
133                 
134                <#if (subbu_special?has_content)> 
135                    <#assign fiCardsData = utilServ.makeCall('crcTier3GetPbuData','0&' + pbu + '&' + subbu_special)>  
136                <#else> 
137                    <#assign fiCardsData = utilServ.makeCall('crcTier3GetPbuData','0&' + pbu + '&' + subbu)>  
138                </#if> 
139 
140 
141                <#assign temp = []> 
142                <#assign offerTypeList = []>      
143                <#assign index = 0> 
144                <#list fiCardsData as fib> 
145                    <#if !(offerTypeList?seq_contains(fib.offerType))>  
146                        <#assign offerTypeList = offerTypeList + [fib.offerType]>                   
147                        <#assign temp = temp + fiCardsData[index..index]>  
148                    </#if>  
149                    <#assign index = index + 1>                
150                </#list>  
151                <#assign fiCardsData = temp> 
152                <#if (fiCardsData?size > 0)>   
153                    <#if (subbu_special?has_content)> 
154                        <#assign lc_used = fiCardsData?first.WebLocationCode>   
155                    <#else> 
156                        <#if ameriprise> 
157                            <#assign lc_used = mappedLC>  
158                        <#else> 
159                            <#assign lc_used = lc>  
160                        </#if> 
161                    </#if> 
162 
163                    <#list fiCardsData as fib> 
164                        <#if ameriprise> 
165                            <#if (fib.offerType=="101")> 
166                                <#assign productURL="premier-visa-signature"> 
167                                <#assign productName="Premier Visa Signature"> 
168                                <#assign productClass="ameriprise-premier-visa-signature"> 
169                            <#elseif (fib.offerType=="103")>      
170                                <#assign productURL = "visa-signature"> 
171                                <#assign productName = "Visa Signature">   
172                                <#assign productClass="ameriprise-visa-signature">                            
173                            </#if> 
174                        <#else>                     
175                            <#if (fib.offerType=="108") || (fib.offerType=="109")> 
176                                <#assign productURL="consumer-platinum"> 
177                                <#assign productName="Platinum"> 
178                            <#elseif (fib.offerType=="104")>    
179                                <#assign productURL = "max-cash"> 
180                                <#assign productName="Max Cash Preferred">                              
181                            <#elseif (fib.offerType=="101") || (fib.offerType=="103")> 
182                                <#assign productURL = "real-rewards"> 
183                                <#assign productName="Real Rewards"> 
184                            <#elseif fib.offerType == "115"> 
185                                <#assign productURL = "secured"> 
186                                <#assign productName="Secured"> 
187                            <#elseif fib.offerType == "144"> 
188                                <#assign productURL = "smart-business-rewards"> 
189                                <#assign productName="Smart Business Rewards">                                 
190                            <#elseif fib.offerType == "128"> 
191                                <#assign productURL = "business-cashback"> 
192                                <#assign productName="Business Cash"> 
193                            <#elseif fib.offerType == "143"> 
194                                <#assign productURL = "business-real-rewards"> 
195                                <#assign productName="Business Real Rewards"> 
196                            <#elseif fib.offerType == "121"> 
197                                <#assign productURL = "business-platinum2103"> 
198                                <#assign productName="Business"> 
199                            </#if>  
200                        </#if>                    
201                        <#assign cardArtImage = cdnCardArtUrl + "/" + fib.filename + ".png"> 
202                        <#assign cardArtImageAlt = cdnCardArtUrl + "/"+fib.filename+".jpg">   
203                        <#assign newSourceCode = fib.sourceCode>  
204                        <#assign newOfferId = fib.offerId>  
205                        <#if url?matches(".*/${productURL}.*")> 
206                            <#assign sdata = utilServ.makeCall('crcDDCGetSchumerBox', newOfferId + '&' + newSourceCode)> 
207                            <#if (sdata?size > 0)>   
208                                <#if (productURL=="platinum" && !ameriprise)> 
209                                    <#assign apr = "">                         
210                                    <#list sdata as d> 
211                                        <#if (d.scrapedLabel?contains("Annual Percentage Rate (APR) for Purchases") && (d.scrapedValue?has_content))> 
212                                            <#assign apr = d.scrapedValue?replace("(\n|\r\n|\r)+", " ","r")> 
213                                            <script> 
214                                                console.log("scraped data exists"); 
215                                                console.log("APR", '${apr}') 
216                                            </script> 
217                                            <#break> 
218                                        </#if> 
219                                    </#list> 
220                                    <script> 
221                                            $(document).ready(function () { 
222                                                var aprText = "${apr}"; 
223                                                if (aprText) { 
224                                                    var matches= aprText.match(/\d+(\.\d+)?%?/g); 
225                                                    var billing_cycle = ""; 
226                                                    var apr_min = ""; 
227                                                    var apr_max = ""; 
228                                                    if (aprText.indexOf("Platinum:") != -1) { 
229                                                        billing_cycle = matches[1]; 
230                                                        apr_min = matches[2]; 
231                                                        apr_max = matches[3]; 
232
233                                                    if (billing_cycle) { 
234                                                        $(".scraped-billing-cycle").html(billing_cycle); 
235
236                                                    if (apr_min) { 
237                                                        $(".scraped-apr-min").html(apr_min); 
238
239                                                    if (apr_max) { 
240                                                        $('.scraped-apr-max').html(apr_max); 
241
242
243                                            }); 
244                                    </script> 
245                                     
246                                </#if>                                 
247                            <#else>     
248                                <script> 
249                                    console.log("scraped data missing"); 
250                                </script> 
251                            </#if>   
252                            <#if ameriprise> 
253                                <#assign card_art_alt =  partnerName + " " + productName + " " + "Card"> 
254                                <#assign rollover_text =  partnerName + " " + productName + " " + "Card"> 
255                            <#else> 
256                                <#assign card_art_alt = partnerName> 
257                                <#assign rollover_text =  partnerName + " " + productName + " " + "Credit Card"> 
258                                <#assign card_text = productName + " " + "Card"> 
259                            </#if> 
260                            <div class="hero-container ${pageClass} ${productClass!''}" title="${rollover_text!''}"> 
261                                <div class="hero-main"> 
262                                    <div class="hero-main-logo" title="${partnerName!''}"> 
263                                        <#if partnerUrl?has_content> 
264                                            <a href="${partnerUrl!''}" title="${partnerName!''}"><img src="${cdnLogoUrl!''}/${logoFileName!''}" alt="${partnerName!''}"></a> 
265                                        <#else> 
266                                            <a title="${partnerName!''}"><img src="${cdnLogoUrl!''}/${logoFileName!''}" alt="${partnerName!''}"></a> 
267                                        </#if> 
268                                      
269                                    </div> 
270                                    <div class="hero-main-container"> 
271                                        <div class="hero-main-offer bg-color-white"> 
272                                            <div class="offer-header bg-color-black text-color-white text-bold">${primaryHeadlineText.getData()}</div> 
273                                            <div class="offer-detail"> 
274                                                <div class="offer-detail-head">${primaryHeadlineFeature.getData()}</div> 
275                                                <div class="offer-detail-text text-color-default"> 
276                                                    ${primaryHeadlineFeatureTop.getData()} 
277                                                    ${primaryHeadlineFeatureBottom.getData()} 
278                                                </div> 
279                                                <div class="offer-detail-cardArt"> 
280                                                        <img src="${cardArtImage!''}" alt="${card_art_alt!''}" title="${card_art_alt!''}" onerror="this.onerror=null;this.src='${cardArtImageAlt!''}'"> 
281                                                        <p>${card_text!''}</p> 
282                                                </div> 
283                                                <#if (fiCardsData?size > 0)>  
284                                                     
285                                                    <form class="form1" action='${oadURL}?locationCode=${lc_used}&amp;offerId=${newOfferId}&amp;preparerType=customer&amp;sourceCode=${newSourceCode}' method="post" id="BAAForm"> 
286                                                        <label for="appDataBAA" style="position:absolute; clip:rect(0 0 0 0);">Application Data</label> 
287                                                        <textarea rows="20" cols="100" name="applicationData" id="appDataBAA" style="display:none;"></textarea> 
288                                                        <input type="submit" data-button-name="cta-button-top" title="Apply Now for ${rollover_text!'Credit Card'}" class="jn-button apply-button text-bold button-bg-color-custom text-color-white" value="${ctaText.getData()}" disabled /> 
289                                                    </form> 
290                                                <#else> 
291                                                    <form class="form2" action='${oadURL}?locationCode=${lc_used}&amp;offerId=${offerId}&amp;preparerType=customer&amp;sourceCode=${sourceCode}' method="post" id="BAAForm"> 
292                                                        <label for="appDataBAA" style="position:absolute; clip:rect(0 0 0 0);">Application Data</label> 
293                                                        <textarea rows="20" cols="100" name="applicationData" id="appDataBAA" style="display:none;"></textarea> 
294                                                        <input type="submit" data-button-name="cta-button-top" title="Apply Now for ${rollover_text!'Credit Card'}" class="jn-button apply-button text-bold button-bg-color-custom text-color-white" value="${ctaText.getData()}" disabled /> 
295                                                    </form> 
296                                                </#if> 
297                                            </div> 
298                                        </div> 
299                                    </div> 
300                                </div> 
301                                <div class="hero-primary-benefits bg-color-black-half-transparent text-color-white"> 
302                                    <#if secondaryFeatureText.getData() != ""> 
303                                        <#foreach item in secondaryFeatureText.getSiblings()> 
304                                            <div class="primary-benefit"> 
305                                                <div class="primary-benefit-wrapper text-color-white"> 
306                                                    ${item.getData()} 
307                                                </div> 
308                                            </div> 
309                                        </#foreach> 
310                                    </#if> 
311                                </div> 
312                            </div> 
313                            <div class="standard-content-container" title="${rollover_text!''}"> 
314                                <h2 class="learnmore text-color-custom text-bold" onclick="learnmore(event)"> 
315                                    LEARN MORE 
316                                    <svg viewBox="0 0 150 100" width="45" height="30"> 
317                                        <polyline points="40 40 80 80 120 38" stroke-width="20" 
318                                            stroke-linecap="butt" fill="none" stroke-linejoin="miter"/> 
319                                    </svg> 
320                                </h2> 
321                                <h2 class="text-bold" id="more">${secondaryHeadlineText.getData()}</h2> 
322                                <div class="secondary-benefits"> 
323                                    <div class="option"> 
324                                        ${additionalInfoGroupA.getData()} 
325                                        <#if pbu != "0892445"> 
326                                            <#if (sdata?size > 0)> 
327                                                <div> 
328 
329                                                    <#if (fib.offerType == "104") > 
330                                                         
331                                                        <#list sdata as d> 
332                                                            <#if (d.scrapedLabel?contains("Annual Percentage Rate") && (d.scrapedValue?has_content))>  
333                                                                             
334                                                                <h3 class="text-color-custom"><strong>APR<sup>*</sup> for Purchases:</strong></h3> 
335                                                                        <p>${d.scrapedValue} <a href="${oadURL_TC}?step=display&amp;offerId=${newOfferId}&amp;locationCode=${lc_used}"  class="text-color-default" target="_blank">Terms & Conditions</a> 
336                                                                        </p> 
337                                                                    <#break> 
338                                                            </#if> 
339                                                        </#list> 
340                                                        <#list sdata as d> 
341                                                            <#if (d.scrapedLabel?contains("APR for Balance Transfers") && (d.scrapedValue?has_content))>  
342                                                                             
343                                                                <h3 class="text-color-custom"><strong>Intro APR<sup>*</sup> for Purchases and Balance Transfers</strong></h3> 
344                                                                        <p>${d.scrapedValue} <a href="${oadURL_TC}?step=display&amp;offerId=${newOfferId}&amp;locationCode=${lc_used}"  class="text-color-default" target="_blank">Terms & Conditions</a> 
345                                                                        </p> 
346                                                                     
347                                                                    <#break> 
348                                                            </#if> 
349                                                        </#list> 
350                                                    <#else> 
351 
352                                                        <#if (fib.offerType == "115" || fib.offerType == "123")> 
353                                                            <h3 class="text-color-custom"><strong>APR for Purchases and Balance Transfers</strong></h3> 
354                                                        <#elseif (fib.offerType=="128" || fib.offerType=="143")> 
355                                                            <h3 class="text-color-custom"><strong>Annual Fee</strong></h3> 
356                                                        <#else> 
357                                                            <h3 class="text-color-custom"><strong>Intro APR<sup>*</sup> for Purchases and Balance Transfers</strong></h3> 
358                                                        </#if> 
359                                                        <#list sdata as d> 
360                                                            <#if (fib.offerType=="128" || fib.offerType=="143") > 
361                                                                <#if (d.scrapedLabel?contains("Annual Membership Fee") && (d.scrapedValue?has_content))> 
362                                                                    <#if (fiCardsData?size > 0)>  
363                                                                        <p>${d.scrapedValue} <a href="${oadURL_TC}?step=display&amp;offerId=${newOfferId}&amp;locationCode=${lc_used}" 
364                                                                                class="text-color-default" target="_blank">Terms & Conditions</a> 
365                                                                        </p> 
366                                                                                 
367                                                                    <#else> 
368                                                                        <p>${d.scrapedValue} <a href="${oadURL_TC}?step=display&amp;offerId=${newOfferId}&amp;locationCode=${lc_used}" 
369                                                                                    class="text-color-default" target="_blank">Terms & Conditions</a> 
370                                                                        </p> 
371                                                                    </#if> 
372                                                                    <#break> 
373                                                                </#if> 
374 
375                                                            <#else> 
376                                                                <#if (d.scrapedLabel?contains("Annual Percentage Rate") && (d.scrapedValue?has_content))>  
377                                                                             
378                                                                    <#if (fiCardsData?size > 0)>      
379                                                                        <p>${d.scrapedValue} <a href="${oadURL_TC}?step=display&amp;offerId=${newOfferId}&amp;locationCode=${lc_used}" target="_blank">Terms & Conditions</a> 
380                                                                        </p> 
381                                                                    <#else> 
382                                                                        <p>${d.scrapedValue} <a href="${oadURL_TC}?step=display&amp;offerId=${newOfferId}&amp;locationCode=${lc_used}"  class="text-color-default" target="_blank">Terms & Conditions</a> 
383                                                                        </p> 
384                                                                    </#if> 
385                                                                    <#break> 
386                                                                </#if> 
387                                                            </#if> 
388                                                        </#list> 
389 
390                                                    </#if> 
391                                                </div> 
392                                            </#if> 
393                                        </#if> 
394                                    </div> 
395                                    <div class="option"> 
396                                        ${additionalInfoGroupB.getData()}  
397                                        <#if pbu != "0892445"> 
398                                            <div> 
399                                                <#if (fiCardsData?size > 0)> 
400                                                    <#if (sdata?size > 0)> 
401                                                        <#if (fib.offerType=="128" || fib.offerType=="143")> 
402                                                            <h3 class="text-color-custom"><strong>Intro APR<sup>*</sup> for Purchases and Balance Transfers</strong></h3> 
403                                                        <#else> 
404                                                            <h3 class="text-color-custom"><strong>Annual Fee</strong></h3> 
405                                                        </#if> 
406                                                        <#list sdata as d> 
407                                                            <#if (fib.offerType=="128" || fib.offerType=="143")> 
408                                                                <#if (d.scrapedLabel?contains("Annual Percentage Rate") && (d.scrapedValue?has_content))>  
409                                                                     
410                                                                    <#if (fiCardsData?size > 0)>   
411                                                                        <p>${d.scrapedValue} <a href="${oadURL_TC}?step=display&amp;offerId=${newOfferId}&amp;locationCode=${lc_used}" 
412                                                                            class="text-color-default" target="_blank">Terms & Conditions</a> 
413                                                                        </p> 
414                                                                    <#else> 
415                                                                        <p>${d.scrapedValue} <a href="${oadURL_TC}?step=display&amp;offerId=${newOfferId}&amp;locationCode=${lc_used}" 
416                                                                            class="text-color-default" target="_blank">Terms & Conditions</a> 
417                                                                        </p> 
418                                                                    </#if> 
419                                                                    <#break> 
420                                                                </#if> 
421                                                            <#else> 
422                                                                <#if (d.scrapedLabel?contains("Annual Membership Fee") && (d.scrapedValue?has_content))> 
423                                                                     
424                                                                    <#if (fiCardsData?size > 0)>  
425                                                                    <p> 
426                                                                        <#if (fib.offerType == "123")> 
427                                                                        Annual Fee: ${d.scrapedValue} 
428                                                                        <#else> 
429                                                                        ${d.scrapedValue}  
430                                                                        </#if> 
431                                                                        <a href="${oadURL_TC}?step=display&amp;offerId=${newOfferId}&amp;locationCode=${lc_used}" target="_blank">Terms & Conditions</a> 
432                                                                    </p> 
433                                                                    <#else> 
434                                                                    <p> 
435                                                                        <#if (fib.offerType == "123")> 
436                                                                        Annual Fee: ${d.scrapedValue} 
437                                                                        <#else> 
438                                                                        ${d.scrapedValue}  
439                                                                        </#if> 
440                                                                        <a href="${oadURL_TC}?step=display&amp;offerId=${newOfferId}&amp;locationCode=${lc_used}" class="text-color-default" target="_blank">Terms & Conditions</a> 
441                                                                    </p> 
442                                                                    </#if> 
443                                                                    <#break> 
444                                                                </#if> 
445                                                            </#if> 
446                                                        </#list> 
447                                                    </#if> 
448                                                </#if> 
449                                            </div> 
450                                        </#if> 
451                                    </div> 
452                                </div> 
453                            </div> 
454                            <div class="banner-wrapper" title="${rollover_text!''}"> 
455                                <div class="banner bg-color-custom ${override}"> 
456                                    <div class="banner-cardArt"> 
457                                            <img src="${cardArtImage!''}" alt="${card_art_alt!''}" title="${card_art_alt!''}" srcset="" onerror="this.onerror=null;this.src='${cardArtImageAlt!''}'"> 
458                                    </div> 
459                                    <div class="banner-cta"> 
460                                        <div class="banner-cta-text text-color-white text-bold"> 
461                                            ${optionalCtaFeatureText.getData()} 
462                                        </div> 
463                                        <a id="oadSecButton" data-button-name="cta-button-bottom" title="Apply Now for ${rollover_text!'Credit Card'}" class="jn-button banner-cta-apply-button text-bold button-bg-color-white text-color-custom">${optionalCtaText.getData()}</a> 
464                                    </div> 
465                                </div> 
466                            </div>     
467                 
468 
469                        </#if> 
470                    </#list>                         
471 
472                    <script> 
473                            var reportingData = {}; 
474                        document.addEventListener('DOMContentLoaded', function() { 
475                            console.log('inside ready'); 
476                            var page = location.pathname.split('/')[location.pathname.split('/').length-1]; 
477                            var hostName = location.hostname; 
478                         
479                            function getDomainFromHostname(hostname) { 
480                                var parts = hostname.split('.'); 
481                                return parts.length === 3 ? parts[1] : parts[0]; 
482
483                            var domain = getDomainFromHostname(hostName); 
484                            var partnerName = "${partnerName!''}"; 
485 
486                            var ameriprise = '${ameriprise?string("yes", "no")}'; 
487                            var locationCode = "${rlc!lc}"; 
488                            var eidAmp = ""; 
489                            if (ameriprise == "yes") { 
490                                var bankercode_amp = '${bCode}'; 
491                                eidAmp = bankercode_amp.substring(3); 
492                                locationCode =""; 
493                            }                             
494 
495                            $('.jn-button').removeAttr('disabled'); 
496                            $('.jn-button').removeClass('jn-disabled'); 
497                            jQuery('#oadSecButton').on('click', function(e) { 
498                                jQuery('#BAAForm').submit(); 
499                            }); 
500                             
501                            jQuery('#BAAForm').on('submit', function(e){ 
502                                e.preventDefault(); 
503                                console.log('in custom submit'); 
504                                var xmlData; 
505                                if(ameriprise == "yes") { 
506                                    xmlData = '<?xml version="1.0"?>'+ 
507                                        "<prefillData>"+  
508                                        "<versionNumber>1.0</versionNumber>"+  
509                                        "<applicationData>"+  
510                                        "<referral>" +  
511                                        "<employeeId>" + eidAmp + "</employeeId>" + 
512                                        "<storeNumber>"+"${bName!'0'}"+"</storeNumber>"+ 
513                                        "<divisionNumber></divisionNumber>"+ 
514                                        "</referral>" +  
515                                        "<bankerInformation>"+  
516                                        "<locationCode>" + locationCode + "</locationCode>"+ 
517                                        "<originatingBranchNumber>"+"${bName!'0'}"+"</originatingBranchNumber>"+ 
518                                        "<employeeID>${boeid!0}</employeeID>"+ 
519                                        "<name>" + 
520                                        "<first>${bFName!'0'}</first>" + 
521                                        "<last>${bLName!'0'}</last>" + 
522                                        "</name>"+ 
523                                        "<phone>"+ 
524                                        "<areaCode>"+areaCode+"</areaCode>"+  
525                                        "<exchange>"+exchangeCode+"</exchange>"+ 
526                                        "<number>"+num+"</number>"+  
527                                        "</phone>"+  
528                                        "</bankerInformation>"+  
529                                        "</applicationData>"+  
530                                        "</prefillData>" 
531                                } else { 
532                                    xmlData = '<?xml version="1.0"?>'+ 
533                                        "<prefillData>"+  
534                                        "<versionNumber>1.0</versionNumber>"+  
535                                        "<applicationData>"+  
536                                        "<bankerInformation>"+  
537                                        "<locationCode>" + locationCode + "</locationCode>"+ 
538                                        "<originatingBranchNumber>"+"${bName!'0'}"+"</originatingBranchNumber>"+ 
539                                        "<employeeID>${boeid!0}</employeeID>"+ 
540                                        "<name>" + 
541                                        "<first>${bFName!'0'}</first>" + 
542                                        "<last>${bLName!'0'}</last>" + 
543                                        "</name>"+ 
544                                        "<phone>"+ 
545                                        "<areaCode>"+areaCode+"</areaCode>"+  
546                                        "<exchange>"+exchangeCode+"</exchange>"+ 
547                                        "<number>"+num+"</number>"+  
548                                        "</phone>"+  
549                                        "</bankerInformation>"+  
550                                        "</applicationData>"+  
551                                        "</prefillData>" 
552                                }                                 
553                                jQuery('#appDataBAA').val(xmlData); 
554                                var buttonName = jQuery('.jn-button').data('button-name'); 
555                                /* SiteCatalyst  onClick tracking */ 
556                                reportingData.apply_button = buttonName; 
557                                AUI().ready(function() { 
558                                    if (window.publisherFW) { 
559                                        window.publisherFW.publishEvent("onClick", reportingData); 
560
561                                }); 
562 
563                                this.submit(); 
564                            }); 
565                            var regex = /\d+/g; 
566                            var bdNumber = "${bPhone!''}"; 
567                            var phoneNum = bdNumber.match(regex); 
568                            var areaCode = ""; 
569                            var exchangeCode = ""; 
570                            var num = ""; 
571                            if(phoneNum != null) { 
572                                phoneNum = phoneNum.join(""); 
573                                areaCode = phoneNum.substring(0,3); 
574                                exchangeCode = phoneNum.substring(3,6); 
575                                num = phoneNum.substring(6,10); 
576
577                            var product = ""; 
578                            switch(page) { 
579                                case "consumer-platinum2103": 
580                                    product="Platinum Card" 
581                                    break; 
582                                case "real-rewards": 
583                                    product="Real Rewards Card" 
584                                    break; 
585                                case "secured": 
586                                    product="Secured Card" 
587                                    break; 
588                                case "business-cashback": 
589                                    product="Business Cash Card" 
590                                    break; 
591                                case "business-real-rewards": 
592                                    product="Business Real Rewards Card" 
593                                    break; 
594                                case "business-rewards-plus": 
595                                    product="Business Rewards PLUS Card" 
596                                    break; 
597                                case "premier-visa-signature": 
598                                    product="Premier Visa Signature Card" 
599                                    break; 
600                                case "business-platinum2103": 
601                                    product="Business" 
602                                    break; 
603                                case "visa-signature": 
604                                    product="Visa Signature Card" 
605                                    break;                                     
606                                default:   
607                                    product = "All Cards";                           
608                            }                                  
609                                 
610                            /* update SiteCatalyst data object */ 
611                            reportingData.current_page = "microsite:${partnerName}:" + domain + ':' + page.replace('-',' '); 
612                            reportingData.location_code = '${rlc!0}'; 
613                            reportingData.product = product; 
614                            reportingData.site_section = 'credit cards'; 
615                            reportingData.platform = 'microsite'; 
616                            reportingData.partner_name = "${partnerName}"; 
617                            reportingData.Banker_id = '${boeid}'; 
618                            reportingData.Banker_code = '${bCode}'; 
619                            reportingData.visitor_type = 'prospect'; 
620                            reportingData.text_to_apply_source = '${text_to_apply_source}'; 
621                            reportingData.page_type = 'product';  
622                            reportingData.campaign_id = '${campaignId}';  
623 
624                                 
625                            }); 
626                    </script> 
627                    <script async> 
628                        function learnmore(e) { 
629                            e.preventDefault(); 
630                            var element = document.getElementById("more"); 
631                            element.scrollIntoView({behavior: 'smooth'}); 
632
633                    </script>                     
634                <#else> 
635                    <script> 
636                        console.log("FI Cards Data empty"); 
637                        //location.href = '${url404}'; 
638                    </script> 
639                </#if>   
640            <#else> 
641                <script> 
642                    console.log("not Tier1 Fi"); 
643                    //location.href = '${url404}'; 
644                </script> 
645            </#if>                   
646        <#else> 
647            <script> 
648                console.log("Fi opt-out"); 
649                //location.href = '${url404}'; 
650            </script> 
651        </#if>        
652    <#else> 
653        <script> 
654            console.log("client profile empty"); 
655            //location.href = '${url404}'; 
656        </script> 
657    </#if>   
658 
659</#if> 

Webcontent weergeven

Er trad een fout op tijdens de verwerking van het sjabloon.
Expression qstringmap["bankercode"] is undefined on line 5, column 17 in 10153#10191#6590077.
1<#assign url = request.attributes.CURRENT_URL > 
2<#assign qstringmap = httpUtil.getParameterMap(httpUtil.getQueryString(url))> 
3<#assign utilServ = serviceLocator.findService("crc-utilities-portlet", "com.elan.crc.utilities.service.CRCRemoteServiceService")> 
4 
5<#assign bCode= qstringmap["bankercode"]?first> 
6<#assign bData = utilServ.makeCall('crcDDCBankerAssistedAppDetail','0&'+bCode)> 
7<#list bData as b>      
8    <#assign lc = b.locationcode > 
9    <#assign rLC = b.reallocationcode > 
10    <#assign mappedLC = b.mappedLocationCode > 
11</#list>  
12<#if mappedLC?has_content && !(url?contains("11t1m"))> 
13    <#assign lc = mappedLC > 
14</#if> 
15<#if lc?has_content> 
16    <#assign prefix = "00000" > 
17    <#assign lcWithPrefix = prefix + lc > 
18    <#assign withPrefixLength = lcWithPrefix?length > 
19    <#assign startHere = withPrefixLength - 5> 
20    <#assign lc = lcWithPrefix?substring(startHere)> 
21    <#assign clientProfileService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcClientProfileLocalService") > 
22    <#assign clientProfileList = clientProfileService.findByLocationCode(lc)> 
23 
24    <#assign clientProfile = clientProfileList?first>  
25    <#assign partnerName=clientProfile.getMarketingNameLong()> 
26</#if> 
27 
28<div class="content-container" title="${partnerName!''} - Disclaimer"> 
29    <div class="jn-disclaimer tier3-disclaimer-${class.getData()}"> 
30        ${content.getData()} 
31    </div> 
32</div> 

Webcontent weergeven

Er trad een fout op tijdens de verwerking van het sjabloon.
Expression qstringmap["bankercode"] is undefined on line 6, column 17 in 10153#10191#6590291.
1<#assign url = request.attributes.CURRENT_URL > 
2<#assign qstringmap = httpUtil.getParameterMap(httpUtil.getQueryString(url))> 
3<#assign utilServ = serviceLocator.findService("crc-utilities-portlet", "com.elan.crc.utilities.service.CRCRemoteServiceService")> 
4<#assign url404 = '/error/404.html'> 
5 
6<#assign bCode= qstringmap["bankercode"]?first> 
7<#assign bData = utilServ.makeCall('crcDDCBankerAssistedAppDetail','0&'+bCode)> 
8<#list bData as b>      
9    <#assign lc = b.locationcode > 
10    <#assign rLC = b.reallocationcode > 
11    <#assign mappedLC = b.mappedLocationCode > 
12</#list>  
13 
14<#if bCode?starts_with("amp") && (url?contains("11t1m"))> 
15    <#assign ameriprise = true> 
16<#else> 
17    <#assign ameriprise = false> 
18</#if> 
19<#if mappedLC?has_content && !ameriprise> 
20    <#assign lc = mappedLC > 
21</#if> 
22 
23<#if lc?has_content> 
24 
25    <#assign prefix = "00000" > 
26    <#assign lcWithPrefix = prefix + lc > 
27    <#assign withPrefixLength = lcWithPrefix?length > 
28    <#assign startHere = withPrefixLength - 5> 
29    <#assign lc = lcWithPrefix?substring(startHere)> 
30    <#assign clientProfileService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcClientProfileLocalService") > 
31    <#assign clientProfileList = clientProfileService.findByLocationCode(lc)> 
32 
33    <#assign clientProfile = clientProfileList?first> 
34    <#assign pbu = clientProfile.getPbu()> 
35    <#assign subbu = clientProfile.getSUBBRANDBUNBR()>   
36    <#assign partnerName=clientProfile.getMarketingNameLong()> 
37    <#assign clientDataService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcPbuLocalService") > 
38    <#assign clientProfileDataList = clientDataService.getByPbuAndSubBu(pbu,subbu)> 
39    <#assign partnerUrl = clientProfileDataList.getPartnerMainUrl()> 
40    <#if partnerUrl?has_content && !partnerUrl?matches(r"(?i)^https?\:\/\/.*") && !partnerUrl?matches(r"(?i)^https?\:&#x2F;&#x2F;.*")> 
41        <#-- add protocal if missing  --> 
42        <#assign partnerUrl = 'https://' + partnerUrl> 
43    </#if> 
44    <footer class="footer bg-color-black text-color-white"> 
45        ${footerContent.getData()} 
46    </footer> 
47    <#if url?contains("11t1m")> 
48        <script>                 
49            document.querySelector('.footer .copyright').classList.add("ecdma-footer-client-name-copyright"); 
50            document.querySelector('.footer .fdic').innerHTML='<a class="text-color-white" href="https://login.elancreditcard.com/onlineCard/publicPrivacyPolicy.do?loc=18598" target="_blank">Privacy and Security</a>'; 
51        </script> 
52    <#else> 
53        <script>                 
54            document.querySelector('.footer .copyright').classList.add("ecdma-footer-client-name-copyright"); 
55            document.querySelector('.footer .fdic').innerHTML='<a class="text-color-white" href="https://www.myaccountaccess.com/onlineCard/publicPrivacyPolicy.do?loc=${lc!0}" target="_blank">Privacy and Security</a>'; 
56            var newNode = document.createElement("div");  
57             newNode.classList.add("member-agreement"); 
58            newNode.innerHTML='<a class="text-color-white" href="https://online1.elancard.com/oad/cmas.controller?locationCode=${lc!0}&preparerType=customer&isNewRequest=false" target="_blank">Cardmember Agreements</a>'; 
59            var fdicNode = document.querySelector('.footer .fdic'); 
60            var parent = fdicNode.parentNode; 
61            parent.insertBefore(newNode, fdicNode); 
62        </script> 
63    </#if> 
64 
65    <#if partnerUrl?has_content> 
66        <script> 
67            document.querySelector('.copyright .homelink').innerHTML="<a class='text-color-white' href='${partnerUrl!''}' title='${partnerName!''}' target='_blank'>Home</a>"; 
68        </script> 
69    </#if> 
70</#if>