Title: Extra content hooks
Last modified: July 21, 2021

---

# Extra content hooks

 *  [fizzers](https://wordpress.org/support/users/fizzers/)
 * (@fizzers)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/extra-content-hooks/)
 * Hi Xootix,
 * I used the below “Spend x for delivery” snippet on the basket page and would 
   like to add this same snippet in the WC Side Cart (in the blank area below the
   basket/checkout CTAs). Is it possible?
 *     ```
       // Woocommerce - cart page notification
       add_action( 'woocommerce_before_cart_table', 'cart_page_notice' );
   
       function cart_page_notice() {
       	$min_amount = 20; //This is the amount of your free shipping threshold. Change according to your free shipping settings
       	$current = WC()->cart->subtotal;
       	if ( $current < $min_amount ) {
       		$added_text = '<div class="woocommerce-message">Spend  ' . wc_price( $min_amount - $current ) . ' more to get fast & free shipping<br/>'; // This is the message shown on the single product page
       		$return_to = wc_get_page_permalink( 'shop' );
       		$notice = sprintf( '%s<a href="%s">%s</a>', $added_text, esc_url( $return_to ), 'Continue shopping</div>' ); // This is the text shown below the notification. Link redirects to the shop page
       		echo $notice;
       	}
       }
       ```
   
    -  This topic was modified 4 years, 10 months ago by [fizzers](https://wordpress.org/support/users/fizzers/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [xootix](https://wordpress.org/support/users/xootix/)
 * (@xootix)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/extra-content-hooks/#post-14693632)
 * Hello,
 * You can use the action hook
    xoo_wsc_after_footer_btns
 *  Thread Starter [fizzers](https://wordpress.org/support/users/fizzers/)
 * (@fizzers)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/extra-content-hooks/#post-14693757)
 * Works perfectly, thanks so much.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Extra content hooks’ is closed to new replies.

 * ![](https://ps.w.org/side-cart-woocommerce/assets/icon-256x256.gif?rev=3217170)
 * [Side Cart Woocommerce | Woocommerce Cart](https://wordpress.org/plugins/side-cart-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/side-cart-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/side-cart-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/side-cart-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/side-cart-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/side-cart-woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [fizzers](https://wordpress.org/support/users/fizzers/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/extra-content-hooks/#post-14693757)
 * Status: not resolved