link text not updating

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sunil Patidar
    New Member
    • Dec 2011
    • 1

    link text not updating

    Hi Guys,

    I am facing a problem in which the basket link text is not getting updated on adding products into the cart. I have checked the item size, price and currency are correct in the catminibasket.i nc.js.jsp . One problem is that "basketForm " element is not visible in the catalog area or catminibasket.i nc.js.jsp. That is why the flow is not going into the if else loop. Could you please help me sort out what is causing the problem because of which the text in the link is not updating & the "basketForm " element is not visible in the jsp.
    The code segment in header.jsp for basketForm element is like this :

    Code:
    <form id="basketForm" name = "basketForm" action="javascript:show_basket();">
    			<div>
    				<input name="miniBasket" value="<isa:translate key="b2b.header.minibasket.default"/>" />
    			</div>
    		</form>


    Also the code segment in the catminibasket.i nc.js.jsp is :

    Code:
    if (isaTop().header.document.forms("basketForm")) {
               	
               <% if ("negotiatedContract".equals(mb_doctype)) { %>
                       isaTop().header.setBasketLinkText("<%=itemSize%> <isa:translate key="b2b.header.minibasket.ncontract"/>");
               <% }
                  else {
                    //note: used for all sales documents except 'negotiated contracts'
                    if ("-1".equals(itemSize) && "-1".equals(netValue)) { %>
                             isaTop().header.setBasketLinkText("<isa:translate key="b2b.header.minibasket.default"/>");
                     } 
                      else {
                        
                        isaTop().header.setBasketLinkText("<%=itemSize%> <isa:translate key="b2b.header.minibasket.l1"/> <%=
                             netValue %> <%= JspUtil.encodeHtml(currency) 
    					%>");
    					
                   <% } 
                    }

    Thanks & Regards,
    Sunil Patidar
    Last edited by Dormilich; Dec 21 '11, 01:00 PM. Reason: please use [CODE] [/CODE] tags when posting code
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    what is the JavaScript as received by the browser?

    Comment

    Working...