How to add custom Javascript to my site, hide cart in top menu on button click

This topic has 6 replies, 3 voices, and was last updated 9 years, 2 months ago ago by Jack Richardson

  • Avatar: groubee
    groubee
    Participant
    September 23, 2015 at 21:50

    Hi

    I have got this code from the QuickCheckout plugin, the following code will hide the cart when the user clicks on the QuickCheckout button:

    jQuery(document).ready(function($){
        $('button.quick-checkout-product').click(function() {
        $('.shopping-cart-widget').hide();
    });
    });

    Where or how can I add the code?

    Best regards
    Tonny

    5 Answers
    Avatar: Robert Hall
    Robert Hall
    Support staff
    September 23, 2015 at 22:00

    Hello,

    Sorry, but we don’t provide support for 3rd party plugins.

    Regards,
    Robert Hall.

    Avatar: groubee
    groubee
    Participant
    September 23, 2015 at 22:05

    ok? but is it really difficult to tell me where I should add the Javascript? I know you dont support the plugin – but my costumer wants this plugin.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    September 24, 2015 at 08:59

    Hello,

    Try to add the code in footer.php file before </body> tag inside of <script type="text/javascript">your code here</script> tags.

    Best regards,
    Jack Richardson.

    Avatar: groubee
    groubee
    Participant
    September 24, 2015 at 12:35

    Perfect!!! Thanks a lot!!!

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    September 24, 2015 at 15:09

    Hello,

    You’re welcome.

    Best regards,
    Jack Richardson.

  • Viewing 6 results - 1 through 6 (of 6 total)

The issue related to '‘how to add custom Javascript to my site, hide cart in top menu on button click’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.