thangbom9o
Forum Replies Created
-
Forum: Plugins
In reply to: [WPC Fly Cart for WooCommerce] stop scroll optin when fly cart openTry this!
<script type="text/javascript"> /* stop body from scrolling while openning flycart */ (function($) { $(document).ready(function(event) { const body = document.querySelector("body"); $(document.body).on('woofc_hide_cart', function(){ if (body.classList.contains("woofc-show")) { // Disable scroll body.style.overflow = "hidden"; } else { // Enable scroll body.style.overflow = "auto"; } }); $(document.body).on('woofc_show_cart', function(){ if (body.classList.contains("woofc-show")) { // Disable scroll body.style.overflow = "hidden"; } else { // Enable scroll body.style.overflow = "auto"; } }); }); })(jQuery); </script>
- This reply was modified 2 years, 6 months ago by thangbom9o.
Forum: Plugins
In reply to: [WPC Fly Cart for WooCommerce] stop scroll optin when fly cart openUpdate! The code not work on mobile or pc if user resize the screen.
Forum: Plugins
In reply to: [WPC Fly Cart for WooCommerce] stop scroll optin when fly cart openWork like a charm, thank man!
OK, I see the problem now. I should remove entire the old lines of code instead of duplicating it as in the instruction because I think what is inside “/*” ….. */” not affect anything.
I would like to say a big thank you to the WPC support team!I have followed your instruction to modify the Min Max Quantity & Step Control for WooCommerce plugin but It does not work. It broke my site so I can’t access my site until I reset these lines of code to default.
Could you please find the exact solution so I can contact the author of Min Max Quantity & Step Control for WooCommerce to update their plugin?The problem was solved perfectly. Thank you so much!