This topic has 6 replies, 3 voices, and was last updated 9 years, 2 months ago ago by Jack Richardson
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
Hello,
Sorry, but we don’t provide support for 3rd party plugins.
Regards,
Robert Hall.
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.
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.
Perfect!!! Thanks a lot!!!
Hello,
You’re welcome.
Best regards,
Jack Richardson.
Tagged: button click, customization, hide cart, javascript, top menu, woocommerce, wordpress
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