PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 12/28/2020 11:54 AM by  Scippy
Strange behaviour on checkout _Login.cshtml
 3 Replies
 1 Subscribed to this topic
 1 Subscribed to this forum
Sort:
You are not authorized to post a reply.
Author Messages





Advanced Member






--
12/22/2020 1:21 PM
    I've a strange behaviour around "new user/login/guest" selection in my e-shop checkout process. The function delegated to this work is ChooseLoginTab in Checkout.js, it is responsible for the login mode displayed adding or removing a class from corresponding #id element, but in my website it seems no able to perform correctly the function in the DOM.
    Looking at the page in debug mode it look able to find right the #id elements to show/hide but it seems that it fails to change the element in the DOM without changing anything.
    I've also tried to modify the function from jquery to javascript but the result does not change, also changing the function with jquery .hide/show don't take effect. The strangest thing is that if I add a line on that function to modify an #id element outside the start/end of Module_1410 in my page it work for it! You can see this strangest behaviour on element #linea that I've added to testing purpose. I'm going crazy without being able to understand why it doesn't work...yet it should be a simple thing!
    The checkout page is visible here: https://www.duetecno.it/e-shop/checkout but to see it you must before add an item to your cart.
    To see debug details see the stackoverflow post at this link:
    https://stackoverflow.com...nd-jquery-id-element
    Thanks for any help!





    Veteran Member






    --
    12/23/2020 1:32 PM
    It sounds like you might be dealing with an upgraded instance of Hotcakes Commerce. If that's true, you should first merge in the code changes from recent releases. :)
    Will Strohl, Upendo Ventures Hotcakes Cloud | Get Support | Code Support Official Cloud & Support provider for Hotcakes





    Advanced Member






    --
    12/23/2020 3:33 PM
    Hi Will, thanks for your reply.
    It is latest HCC release 3.5.0.
    What you mean with merge the code? you refer to hotcakesviews?
    The checkout.js is modified by me to semplify debug problem and better see and understand the problem. I've others website in the same DNN install and all work fine with HCC for them. I've tried all new HCC views and even what they are in use from other ecommerce in this DNN instance but the problem remains there for this e-shop.
    Beyond what can be a problem on HCC, I would like to understand how javascript can behave this way on DOM.





    Advanced Member






    --
    12/28/2020 11:54 AM
    I've solved! It was a Skin problem!
    Inexplicably the skin hid a second instance of HCC_checkout creating all the problems and the inability to control the objects in the DOM by their ID.
    Change the skin with other allowed me to see the problem. Once I deleted one of the two HCC_Checkout modules and restored the initial skin it solved all the problems.
    You are not authorized to post a reply.


    Loading
    • Sign-up for the Hotcakes Community Newsletter: