WooCommerce: Add A Shipping Notice on the Checkout Page

If you need to display a custom message on the checkout page of your WooCommerce site, you can place the following code into your functions.php file. Be sure to make your own styling and text changes:


/* Add Shipping Notice Below Shipping Notes on Checkout Page */
add_action( 'woocommerce_after_order_notes', 'custom_shipping_notice' );

function custom_shipping_notice() {
echo '<div style="padding: 10px; background: #ffe498; border: solid 1px #d49f0b;">PLACE YOUR CUSTOM MESSAGE HERE.</div>';
}

Other Helpful Articles

Choosing A Domain Name

Selecting a domain name for your website is one of the first things a website needs and probably one of the most difficult. The domain name is what someone types into the URL box on a browser to get to a site. Think of it as an unique location identifier

Read More »
Smart Web Creative - Knowledge Base Article - How To Flush DNS Cache Locally

How To Flush DNS Cache Locally

Troubleshooting website issues can be challenging, especially when you’re unsure where to begin. One common issue is a corrupt local DNS cache, which can prevent your computer from reaching specific websites or servers. In this guide, Smart Web Creative will show you how to clear or flush DNS cache locally

Read More »

Disable Product Pages in WooCommerce

Add the following code to your functions.php file to disable users from accessing product pages within WooCommerce: /* Remove Links to Access Product Pages */ remove_action( ‘woocommerce_before_shop_loop_item’, ‘woocommerce_template_loop_product_link_open’, 10 ); remove_action( ‘woocommerce_after_shop_loop_item’, ‘woocommerce_template_loop_product_link_close’, 5 ); /* Prevent Users from Accessing Product Pages by Displaying the 404 Page */ function prevent_access_to_product_page(){

Read More »

What Do You Need Done?:

(Please check all that apply)

Tell Us About You

Almost Done!

Let's Get Some Info

Let's Get Some Info

Let's Get Some Info

Let's Get Some Info

Let's Get Some Info

Let's Get Some Info