Refresh checkout summary regarding changing shipping option in Klarna checkout iframe
Suppos we would like to display cart summary such as product list, total shipping cost, product price , vat etc beside of klarna checkout by using Klarna checkout by woocommerce .…
Refresh checkout in woocommerce
Simply we can add the following code where need to refresh checkout updates jQuery(document.body).trigger("update_checkout");
Replace only text inside a div/label using jquery
$('selector').html($('selector').html().replace('text','replaced text'));
How to add “add to cart” button in woocommerce
For example we are going to implement add to cart button in product loop Step 1: At first we have to enable ajax in woocommerce dashboard then create add to…
Risk 1 and 2 for driving licence
Risk 1 and Risk 2আমার অভিজ্ঞতা, গত মাসে রিস্ক ১ করতে ক্লাসে ঢুকলাম তারপর তিন ঘন্টা হা করে বসে শুনলাম টিচার কি বলে, ভাগ্যিস মুখে মাক্স ছিল তাই মশা মাছি…
Add more memory in Digital ocean
I quickly checked this by $ free -m And the output suggested that there is no swap file provisioned. This is how the output looked - total used free shared…
Language regarding visitor ip for weglot wordpress
Creating function for tracking ip in function.php /* get user locations */ function ip_info($ip = NULL, $purpose = "location", $deep_detect = TRUE) { $output = NULL; if (filter_var($ip, FILTER_VALIDATE_IP) ===…
Woocommerce product gallery not working for Wp rocket
We need to add bellow urls in Excluded JavaScript files block in Delay Javascript execution /jquery-latest.min.js /jquery-?[0-9.](.*)(.min|.slim|.slim.min)?.js /jquery-migrate(.min)?.js /wp-content/plugins/ultimate-carousel-for-visual-composer/js/custom-tm.js /wp-content/plugins/ultimate-carousel-for-visual-composer/js/slick.js /woocommerce/(.*)/assets/js/zoom/jquery.zoom.min.js /woocommerce/(.*)/assets/js/photoswipe/ /woocommerce/(.*)/assets/js/flexslider/jquery.flexslider.min.js /woocommerce/(.*)/assets/js/frontend/single-product.min.js wc_single_product_params
Purge mysql log file in nginx
With MySQL8, they have turned on binary logging by default and the default purge (expiry/deletion) of binary logs is set to 30days. Once you are in your SSH and in…