Distraction-free Checkout

 /**

 * @snippet       Distraction-free Checkout
 * @how-to        Get CustomizeWoo.com FREE
 * @sourcecode    https://businessbloomer.com/?p=111758
 * @author        Rodolfo Melogli
 * @compatible    WooCommerce 3.5.4
 * @donate $9     https://businessbloomer.com/bloomer-armada/
 */
 
add_action( 'wp', 'bbloomer_nodistraction_checkout' );
 
function bbloomer_nodistraction_checkout() {
   if ( ! is_checkout() ) return;
   remove_action( 'storefront_header', 'storefront_social_icons', 10 );
   remove_action( 'storefront_header', 'storefront_secondary_navigation', 30 );
   remove_action( 'storefront_header', 'storefront_product_search', 40 );
   remove_action( 'storefront_header', 'storefront_primary_navigation', 50 );
   remove_action( 'storefront_header', 'storefront_header_cart', 60 );
   remove_action( 'storefront_footer', 'storefront_footer_widgets', 10 );
}

Secure payments” image @ Checkout Page

 

/**
 * @snippet       “Secure payments” image @ Checkout Page
 * @how-to        Get CustomizeWoo.com FREE
 * @sourcecode    https://businessbloomer.com/?p=111758
 * @author        Rodolfo Melogli
 * @compatible    WooCommerce 3.5.4
 * @donate $9     https://businessbloomer.com/bloomer-armada/
 */
 
add_action( 'woocommerce_review_order_after_submit', 'bbloomer_trust_place_order' );
  
function bbloomer_trust_place_order() {
    echo '<img src="https://www.paypalobjects.com/digitalassets/c/website/marketing/na/us/logo-center/9_bdg_secured_by_pp_2line.png" style="margin: 1em auto">';
}
Adding a secure badge on the WooCommerce Checkout page

Edit “Only 1 left in stock” @ Single Product Page

 

/**
 * @snippet       “Only 1 left in stock” @ Single Product Page
 * @how-to        Get CustomizeWoo.com FREE
 * @sourcecode    https://businessbloomer.com/?p=111758
 * @author        Rodolfo Melogli
 * @compatible    WooCommerce 3.5.4
 * @donate $9     https://businessbloomer.com/bloomer-armada/
 */
 
add_filter( 'woocommerce_get_availability_text', 'bbloomer_edit_left_stock', 9999, 2 );
 
function bbloomer_edit_left_stock( $text, $product ) {
   $stock = $product->get_stock_quantity();
     if ( $product->is_in_stock() && $product->managing_stock() && $stock <= get_option( 'woocommerce_notify_low_stock_amount' ) ) $text .= '. Get it today to avoid 5+ days restocking delay!';
   return $text;
}
Changing the scarcity message on the WooCommerce single product page

WooCommerce: Hide Coupon Code @ Cart & Checkout Page

 When you apply a coupon code programmatically, or when you really need it anyway, you may want to hide the coupon code on the cart page.

This is simply because you want to avoid that certain customers will know the coupon code and try to give it to someone else.

woocommerce-hide-coupon-code-cart-page
WooCommerce: hide coupon codes on the cart page

Snippet (PHP): Remove / Rename Coupon Code from Cart Totals – WooCommerce

/**
 * @snippet       Hide WooCommerce Coupon Code - WooCommerce Cart & Checkout
 * @how-to        Get CustomizeWoo.com FREE
 * @sourcecode    https://businessbloomer.com/?p=536
 * @author        Rodolfo Melogli
 * @compatible    WooCommerce 3.5.3
 * @donate $9     https://businessbloomer.com/bloomer-armada/
 */
 
add_filter( 'woocommerce_cart_totals_coupon_label', 'bbloomer_hide_coupon_code', 99, 2 );
 
function bbloomer_hide_coupon_code( $label, $coupon ) {
    return 'Coupon Applied!';
}

Free Shipping Threshold @ Cart Page