kylevorster Posted April 30, 2013 Share Posted April 30, 2013 We're having problems with the view cart page and the existing customer login form. When you click on the existing customer form it does not display the form but it does highlight the button when you click back to the new customer it changing the button to active and then brings up the form. I think its got something to do with the javascript not showing the form by adding the active class. JavaScript jQuery(document).ready(function(){ jQuery("#existingcust").click(function(){ if (jQuery(this).hasClass('active')!=true) { jQuery(".signuptype").removeClass('active'); jQuery(this).addClass('active'); jQuery("#signupfrm").fadeToggle('fast',function(){ jQuery("#loginfrm").fadeToggle('fast'); }); jQuery("#custtype").val("existing"); } }); jQuery("#newcust").click(function(){ if (jQuery(this).hasClass('active')!=true) { jQuery(".signuptype").removeClass('active'); jQuery(this).addClass('active'); jQuery("#loginfrm").fadeToggle('fast',function(){ jQuery("#signupfrm").fadeToggle('fast'); }); jQuery("#custtype").val("new"); } }); }); HTML - Login Form <div class="signupfields{if $custtype eq "existing" && !$loggedin}{else} hidden{/if}" id="loginfrm"> HTML - Existing Customer Form <div class="signupfields{if $custtype eq "existing" && !$loggedin} hidden{/if}" id="signupfrm"> We've made no modifications to the orderform templates. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.