A simple, powerful and independent e-commerce platform.
Sell anything with ease.

Add a ‘Back to Shop’ button on product page

To make it easier for customers to get back to the shop page from an individual product page use this code to add a button.

 * Add a 'back to shop' button on product page

add_action('woocommerce_single_product_summary', 'cc_back_to_shop_button', 35);

function cc_back_to_shop_button() { ?>
  <a class="button wc-backward" href="<?php echo get_permalink(wc_get_page_id('shop')); ?>"><?php _e('Back to shop', 'woocommerce') ?></a>
View Raw Code ID: 9874