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");
Set and get cookies without refreshing page.
setcookie('cookie_id', $cookie_value, time() + (86400 * 13)); $_COOKIE['cookie_id'] = $cookie_value;
Replace only text inside a div/label using jquery
$('selector').html($('selector').html().replace('text','replaced text'));
Change coupon amount html of wocommerce
Adding cross icon insteade of remove text function filter_woocommerce_cart_totals_coupon_html( $coupon_html, $coupon, $discount_amount_html ) { // Change text $coupon_html = ' <a href="' . esc_url( add_query_arg( 'remove_coupon', rawurlencode( $coupon->get_code() ), defined(…
Change coupon label of Woocommerce
Adding coupon removing icon to coupon label function filter_woocommerce_cart_totals_coupon_label( $label, $coupon ) { $label .= ' <a href="' . esc_url( add_query_arg( 'remove_coupon', rawurlencode( $coupon->get_code() ), defined( 'WOOCOMMERCE_CHECKOUT' ) ? wc_get_checkout_url() :…
Add script into woocommerce checkout page
We can easily add our custom script in woocomerce checkout page by adding the following fuction in function.php of active theme folder function add_checkout_script() { ?> <script type="text/javascript"> jQuery(document).on( "updated_checkout",…
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আমার অভিজ্ঞতা, গত মাসে রিস্ক ১ করতে ক্লাসে ঢুকলাম তারপর তিন ঘন্টা হা করে বসে শুনলাম টিচার কি বলে, ভাগ্যিস মুখে মাক্স ছিল তাই মশা মাছি…