Visa artiklar

Visa artiklar

Fel uppstod under bearbetning av mallen.
Expression bankercode is undefined on line 44, column 6 in 10154#10192#153411711.
1<#assign utilServ = serviceLocator.findService("crc-utilities-portlet", "com.elan.crc.utilities.service.CRCRemoteServiceService") > 
2<#assign url404 = '/error/404.html' > 
3<#assign oadURL = propsUtil.get('elan.oad.url') > 
4<#assign url = request.attributes.CURRENT_URL > 
5<#assign qstringmap = httpUtil.getParameterMap(httpUtil.getQueryString(url))> 
6 
7<#if qstringmap["ecid"]?has_content> 
8    <#assign ecidExt="&ecid="+qstringmap["ecid"]?first> 
9<#else> 
10    <#assign ecidExt=""> 
11</#if> 
12 
13<#if qstringmap["bankercode"]?has_content> 
14    <#assign bankercode= qstringmap["bankercode"]?first> 
15 
16    <#assign fiData= utilServ.makeCall('crcDDCBankerAssistedApp','0&'+bankercode)> 
17    <#if fiData?first?has_content> 
18        <#assign fi = fiData?first> 
19        <#if ((fi.projectId == "12") || (fi.projectId == "13") || (fi.projectId == "14"))> 
20            <#assign subbu_special = fi.offerId> 
21        </#if> 
22    </#if>  
23 
24    <#assign bData = utilServ.makeCall('crcDDCBankerAssistedAppDetail','0&'+bankercode)> 
25    <#list bData as b>         
26      <#assign rLC = b.reallocationcode > 
27      <#assign lc = b.locationcode > 
28      <#assign mappedLC = b.mappedLocationCode > 
29    </#list>     
30<#else> 
31    <script> 
32        console.log("MainProductBcode missing"); 
33        //location.href = '${url404}'; 
34    </script> 
35</#if> 
36 
37<#if url?contains('12t1')> 
38    <#assign tier = '12t1'> 
39<#elseif url?contains('11t1')> 
40    <#assign tier = '11t1'> 
41<#elseif url?contains('11t2')> 
42    <#assign tier = '11t2'> 
43</#if> 
44<#if bankercode?starts_with("amp") && (url?contains("11t1m"))> 
45    <#assign ameriprise = true> 
46<#else> 
47    <#assign ameriprise = false> 
48</#if> 
49<#if ameriprise> 
50    <#assign tier = '11t1m'> 
51</#if> 
52<#assign environment = url?replace('/${tier}.*','','r')> 
53 
54 
55<#if mappedLC?has_content && !ameriprise> 
56    <#assign lc = mappedLC > 
57</#if> 
58 
59<#if lc?has_content> 
60    <#assign prefix = "00000" > 
61    <#assign lcWithPrefix = prefix + lc > 
62    <#assign withPrefixLength = lcWithPrefix?length > 
63    <#assign startHere = withPrefixLength - 5> 
64    <#assign lc = lcWithPrefix?substring(startHere)> 
65    <#assign clientProfileService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcClientProfileLocalService") > 
66    <#assign clientProfileList = clientProfileService.findByLocationCode(lc)> 
67 
68    <#assign clientProfile = clientProfileList?first> 
69    <#assign partnerName = clientProfile.getMarketingNameLong()> 
70    <#assign logoFileName = clientProfile.getLogoBFormat1()?replace(".", "-")?replace("-([^-]*)$", ".$1", "r")?lower_case> 
71    <#assign cdnLogoUrl = propsUtil.get('rackspace.cdn.web.url')> 
72      
73    <#assign pbu = clientProfile.getPbu()> 
74    <#assign subbu = clientProfile.getSUBBRANDBUNBR()> 
75    <script> 
76        console.log('pbu', '${pbu!''}'); 
77        console.log('subbu', '${subbu!''}'); 
78        console.log('url', '${url!''}'); 
79        console.log('environ', '${environment!''}'); 
80        console.log('tier', '${tier!''}'); 
81    </script>       
82    <#assign optoutData = utilServ.makeCall('crc_DDCSAAOptOut',pbu+'&'+subbu)> 
83    <#if (optoutData?size == 0)> 
84        <#if (subbu_special?has_content)> 
85            <#assign fiCardsData = utilServ.makeCall('crcTier3GetPbuData','0&' + pbu + '&' + subbu_special)>  
86            <script> 
87                console.log('new subbu', '${subbu_special!''}'); 
88            </script>  
89        <#else> 
90            <#assign fiCardsData = utilServ.makeCall('crcTier3GetPbuData','0&' + pbu + '&' + subbu)>  
91        </#if> 
92        <#assign clientDataService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcPbuLocalService") > 
93        <#assign clientProfileDataList = clientDataService.getByPbuAndSubBu(pbu,subbu)> 
94        <#assign partnerUrl = clientProfileDataList.getPartnerMainUrl()> 
95        <#if partnerUrl?has_content && !partnerUrl?matches(r"(?i)^https?\:\/\/.*")>             
96            <#assign partnerUrl = 'https://' + partnerUrl> 
97        </#if> 
98        <#if (fiCardsData?size > 0)> 
99            <#assign temp = []> 
100            <#assign offerTypeList = []>        
101            <#assign index = 0> 
102            <#list fiCardsData as fib> 
103                <#if (fib.offerType?has_content && !(offerTypeList?seq_contains(fib.offerType)))>  
104                    <#assign offerTypeList = offerTypeList + [fib.offerType]>                   
105                    <#assign temp = temp + fiCardsData[index..index]>  
106                </#if>  
107                <#assign index = index + 1> 
108            </#list>  
109            <#assign fiCardsData = temp> 
110            <#if !(fiCardsData?size > 0)>  
111                <script> 
112                    console.log("empty card/offerType List"); 
113                    //location.href = '${url404}'; 
114                </script> 
115            </#if> 
116            <#if ameriprise> 
117                <#assign lc_used = mappedLC>  
118            <#else> 
119                <#assign lc_used = lc>  
120            </#if>             
121            <div class="content-container content-container-main" title="${partnerName!''}"> 
122                <header class="jn-header"> 
123                    <div class="back-overview hide-desktop">  
124                        <a  href="${environment}/${tier}/index?bankercode=${bankercode}&ecdma-lc=${lc_used}${ecidExt}">Home</a> 
125                    </div>   
126                    <div class="header-main-logo" title="${partnerName!''}"> 
127                        <#if partnerUrl?has_content> 
128                            <a href="${partnerUrl!''}" title="${partnerName!''}"> 
129                            <img src="${cdnLogoUrl!''}/${logoFileName!''}" alt="${partnerName!''}">  
130                            </a> 
131                        <#else> 
132                            <a title="${partnerName!''}"> 
133                            <img src="${cdnLogoUrl!''}/${logoFileName!''}" alt="${partnerName!''}"> 
134                            </a> 
135                        </#if> 
136                    </div> 
137                     
138                    <div class="styled-select slate"> 
139                        <select> 
140                            <#list fiCardsData as fib> 
141                                <#if ameriprise> 
142                                    <#if (fib.offerType=="101")> 
143                                        <#assign productURL="premier-visa-signature"> 
144                                        <#assign productName="Ameriprise Premier Visa Signature"> 
145                                    <#elseif (fib.offerType=="103")>      
146                                        <#assign productURL = "visa-signature"> 
147                                        <#assign productName = "Ameriprise Visa Signature">                              
148                                    </#if> 
149                                <#else> 
150                                    <#if (fib.offerType=="108" || fib.offerType=="109")> 
151                                        <#assign productURL="consumer-platinum2103"> 
152                                        <#assign productName="Platinum Card"> 
153                                    <#elseif (fib.offerType=="104")> 
154                                        <#assign productURL = "max-cash"> 
155                                        <#assign productName = "Max Cash Preferred Card"> 
156                                    <#elseif (fib.offerType=="101" || fib.offerType=="103")> 
157                                        <#assign productURL = "real-rewards"> 
158                                        <#assign productName = "Real Rewards Card"> 
159                                    <#elseif fib.offerType == "115"> 
160                                        <#assign productURL = "secured"> 
161                                        <#assign productName = "Secured Card" > 
162                                    <#elseif fib.offerType == "144"> 
163                                        <#assign productURL = "smart-business-rewards"> 
164                                        <#assign productName = "Smart Business Rewards Card" >                                             
165                                    <#elseif fib.offerType == "128"> 
166                                        <#assign productURL = "business-cashback"> 
167                                        <#assign productName = "Business Cash Card" > 
168                                    <#elseif fib.offerType == "143"> 
169                                        <#assign productURL = "business-real-rewards"> 
170                                        <#assign productName = "Business Real Rewards Card" > 
171                                    <#elseif fib.offerType == "121"> 
172                                        <#assign productURL = "business-platinum2103"> 
173                                        <#assign productName = "Business Card" > 
174                                    </#if> 
175                                </#if> 
176                                <#if url?matches(".*/${productURL}.*")> 
177                                    <option value="${environment}/${tier}/${productURL}?bankercode=${bankercode}&ecdma-lc=${lc_used}${ecidExt}" selected="selected">${productName}</option>                                             
178                                <#else> 
179                                    <option value="${environment}/${tier}/${productURL}?bankercode=${bankercode}&ecdma-lc=${lc_used}${ecidExt}">${productName}</option> 
180                                </#if> 
181                            </#list> 
182                        </select> 
183                        <div class="styled-select__dropdown"> 
184                            <div class="back-overview hide-mobile">  
185                                <a  href="${environment}/${tier}/index?bankercode=${bankercode}&ecdma-lc=${lc_used}${ecidExt}">Home</a> 
186                            </div>   
187                            <div class="dropdown-select"> 
188                                <span class="selected-option"></span>  
189                                <div class="jn-arrow arrow arrow-right"></div> 
190                            </div> 
191                        </div> 
192                        <div class="jn-hamburger hamburger"> 
193                            <div class="first-line transform transformed1"></div> 
194                            <div></div> 
195                            <div class="transform transformed2"></div> 
196                            <div></div> 
197                        </div> 
198                        <ul> 
199                            <#list fiCardsData as fib> 
200                                <#if ameriprise> 
201                                    <#if (fib.offerType=="101")> 
202                                        <#assign productURL="premier-visa-signature"> 
203                                        <#assign productName="Ameriprise Premier Visa Signature"> 
204                                    <#elseif (fib.offerType=="103")>      
205                                        <#assign productURL = "visa-signature"> 
206                                        <#assign productName = "Ameriprise Visa Signature">                              
207                                    </#if> 
208                                <#else> 
209                                    <#if (fib.offerType=="108" || fib.offerType=="109")> 
210                                        <#assign productURL="consumer-platinum2103"> 
211                                        <#assign productName="Platinum Card"> 
212                                    <#elseif (fib.offerType=="104")> 
213                                        <#assign productURL = "max-cash"> 
214                                        <#assign productName = "Max Cash Preferred Card"> 
215                                    <#elseif (fib.offerType=="101" || fib.offerType=="103")> 
216                                        <#assign productURL = "real-rewards"> 
217                                        <#assign productName = "Real Rewards Card"> 
218                                    <#elseif fib.offerType == "115"> 
219                                        <#assign productURL = "secured"> 
220                                        <#assign productName = "Secured Card" > 
221                                    <#elseif fib.offerType == "144"> 
222                                        <#assign productURL = "smart-business-rewards"> 
223                                        <#assign productName = "Smart Business Rewards Card" >                                             
224                                    <#elseif fib.offerType == "128"> 
225                                        <#assign productURL = "business-cashback"> 
226                                        <#assign productName = "Business Cash Card" > 
227                                    <#elseif fib.offerType == "143"> 
228                                        <#assign productURL = "business-real-rewards"> 
229                                        <#assign productName = "Business Real Rewards Card" > 
230                                    <#elseif fib.offerType == "121"> 
231                                        <#assign productURL = "business-platinum2103"> 
232                                        <#assign productName = "Business Card" > 
233                                    </#if> 
234                                </#if> 
235                                <#if url?matches(".*/${productURL}.*")> 
236                                    <li class="selected" data-value="${productName}"><a href="javascript:void(0)">${productName}</a></li>  
237                                <#else> 
238                                    <li class="dropdown-item" data-value="${productName}"><a href="${environment}/${tier}/${productURL}?bankercode=${bankercode}&ecdma-lc=${lc_used}${ecidExt}" title="${productName}">${productName}</a></li> 
239                                </#if> 
240                            </#list> 
241                        </ul> 
242                    </div> 
243                </header> 
244            </div>  
245            <script> 
246                var page = location.pathname.split('/')[location.pathname.split('/').length-1]; 
247                var partnerName = "${partnerName!0}"; 
248                var metaDesc = ""; 
249                switch (page) { 
250                    case "consumer-platinum2103": 
251                        document.title = "The purchasing power of Zero | "+partnerName+" Platinum Card"; 
252                        metaDesc = "Apply Today for a "+partnerName+" Credit Card. Limited Time Offer. 0% Intro APR on Purchases and Balance Transfers for 20 Billing Cycles Consolidate your Balances with the "+partnerName+" Intro APR Card."; 
253                        break; 
254                    case "max-cash": 
255                        document.title = "Earn a $150 Bonus and 5% cash back | "+partnerName+" Max Cash Preferred Card"; 
256                        metaDesc = "Apply Today for a "+partnerName+" Credit Card. Earn a $150 Bonus and 5% cash back on the two categories you select"; 
257                        break; 
258                    case "real-rewards": 
259                        document.title = "Sign up and earn bonus points | "+partnerName+" Real Rewards Card"; 
260                        metaDesc = "Apply Today for a "+partnerName+" Credit Card. Take home 2,500 bonus points after your first purchase."; 
261                        break; 
262                    case "secured": 
263                        document.title = "Strengthen your finances | "+partnerName+" Secured Card"; 
264                        metaDesc = "Apply Today for a "+partnerName+" Credit Card. Use this card as a solid foundation to build your credit."; 
265                        break; 
266                    case "smart-business-rewards": 
267                        document.title = "2X rewards in your top 2 spend categories | "+partnerName+" Business Smart Business Rewards Card"; 
268                        metaDesc = "Apply Today for a "+partnerName+" Credit Card. More choices. More value for your business. Earn a $200 Bonus and 2x Rewards on your top 2 spend categories each month with the "+partnerName+" Credit Card."; 
269                        break; 
270                    case "business-cashback": 
271                        document.title = "Flexible rewards for your business | "+partnerName+" Business Cash Card"; 
272                        metaDesc = "Apply Today for a "+partnerName+" Credit Card. Earn Cash back on common business expenses."; 
273                        break; 
274                    case "business-real-rewards": 
275                        document.title = "Earn up to 3X points with no caps | "+partnerName+" Business Real Rewards Card"; 
276                        metaDesc = "Apply Today for a "+partnerName+" Credit Card. Get more rewards in the categories you spend the most on." ; 
277                        break; 
278                    case "business-platinum2103": 
279                        document.title = "Pay down your other credit card balances faster | "+partnerName+" Business Card"; 
280                        metaDesc = "Apply Today for a "+partnerName+" Business Card. 0% Intro APR on Purchases and Balance Transfers for 15 Billing Cycles"; 
281                        break; 
282                    case "premier-visa-signature": 
283                        document.title = "Exclusively for Ameriprise clients | Ameriprise® Premier Visa Signature® Card"; 
284                        metaDesc = "Apply Today for an Ameriprise Financial Credit Card. Earn Rewards Points worth $375 cash value when deposited into an eligible account after spending $3,000 in eligible net purchases within the first 90 days of account opening."; 
285                        break; 
286                    case "visa-signature": 
287                        document.title = "Exclusively for Ameriprise clients | Ameriprise® Visa Signature® Card"; 
288                        metaDesc = "Apply Today for an Ameriprise Financial Credit Card. Earn Rewards Points worth $250 cash value when deposited into an eligible Ameriprise account after spending $2,000 in eligible net purchases within the first 90 days of account opening."; 
289                        break;                                                                                                 
290
291                if (metaDesc.length > 0) { 
292                    var m = document.createElement('meta');  
293                    m.name = 'description';  
294                    m.content = metaDesc;  
295                    document.head.appendChild(m); 
296
297 
298                document.addEventListener('DOMContentLoaded', function() { 
299                    var pageSelected = $('.selected').attr('data-value'); 
300                    $('.jn-hamburger, .dropdown-select').click(function () { 
301                        $('.styled-select').toggleClass('show-select'); 
302                    }); 
303                    $('.selected-option').text(pageSelected); 
304                }); 
305            </script> 
306         
307        <#else> 
308            <script> 
309                console.log("FI Cards Data empty"); 
310                location.href = '${url404}'; 
311            </script> 
312        </#if>   
313    <#else> 
314        <script> 
315            console.log("FI opt out"); 
316            //location.href = '${url404}'; 
317        </script> 
318    </#if>  
319<#else> 
320    <script> 
321        console.log("location code empty"); 
322        //location.href = '${url404}'; 
323    </script> 
324</#if> 

Visa artiklar

Visa artiklar

Visa artiklar

Visa artiklar

Fel uppstod under bearbetning av mallen.
Expression qstringmap["bankercode"] is undefined on line 5, column 17 in 10154#10192#153411723.
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 bCode?starts_with("amp") && (url?contains("11t1m"))> 
13    <#assign ameriprise = true> 
14<#else> 
15    <#assign ameriprise = false> 
16</#if> 
17<#if mappedLC?has_content && !ameriprise> 
18    <#assign lc = mappedLC > 
19</#if> 
20 
21<#assign prefix = "00000" > 
22<#assign lcWithPrefix = prefix + lc > 
23<#assign withPrefixLength = lcWithPrefix?length > 
24<#assign startHere = withPrefixLength - 5> 
25<#assign lc = lcWithPrefix?substring(startHere)> 
26<#assign clientProfileService = serviceLocator.findService("crc-clientprofile-portlet", "com.elan.crc.servicebuilder.crcclientprofile.service.CrcClientProfileLocalService") > 
27<#assign clientProfileList = clientProfileService.findByLocationCode(lc)> 
28 
29<#assign clientProfile = clientProfileList?first>  
30<#assign partnerName=clientProfile.getMarketingNameLong()> 
31 
32 
33<div class="content-container" title="${partnerName} - Disclaimer"> 
34    <div class="jn-disclaimer tier3-disclaimer-${class.getData()}"> 
35        ${content.getData()} 
36    </div> 
37</div> 

Visa artiklar

Fel uppstod under bearbetning av mallen.
Expression qstringmap["bankercode"] is undefined on line 6, column 17 in 10154#10192#154187598.
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>