Title: Continue Shopping Button
Last modified: August 31, 2016

---

# Continue Shopping Button

 *  Resolved [Jods](https://wordpress.org/support/users/jods/)
 * (@jods)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/continue-shopping-button/)
 * Hi, I have successfully put a “continue shopping” button in the cart of our website
   using this code:
    add_action( ‘woocommerce_after_cart_totals’, ‘tl_continue_shopping_button’);
   function tl_continue_shopping_button() { $shop_page_url = get_permalink( woocommerce_get_page_id(‘
   shop’ ) );
 *  echo ‘<div class=””>’;
    echo ‘ [Continue Shopping →](https://wordpress.org/support/topic/continue-shopping-button/'.$shop_page_url.'?output_format=md)‘;
   echo ‘</div>’;
 * }
 * I added the code to the function php file, it works very well.
 * My question is if I would like to move it’s position, what do I change in the
   code. At the moment it is under the “proceed to checkout” button or and under
   the cart totals, we would like it to be under the product or even better under
   the update cart or coupon buttons, could anyone help with how we could get it
   to move there please, if it is at all possible.
 * The theme we are using is Vantage with woo commerce and the website is:
 * [http://www.scrapbookingdelights.com.au](http://www.scrapbookingdelights.com.au)
   
   Thank You
 * [https://wordpress.org/plugins/woocommerce/](https://wordpress.org/plugins/woocommerce/)

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

 *  Plugin Contributor [Mike Jolley](https://wordpress.org/support/users/mikejolley/)
 * (@mikejolley)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/continue-shopping-button/#post-6956636)
 * It’s currently hooked into ‘woocommerce_after_cart_totals’, so to move position
   you’d need to use a different hook. You could try for example, woocommerce_before_cart_totals
 *  Thread Starter [Jods](https://wordpress.org/support/users/jods/)
 * (@jods)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/continue-shopping-button/#post-6956655)
 * Thank You, that worked great

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

The topic ‘Continue Shopping Button’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3640790)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Jods](https://wordpress.org/support/users/jods/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/continue-shopping-button/#post-6956655)
 * Status: resolved