Thanks for the Link.. I actually found something even better (I wanted a button ) and I'm almost happy now... the only problem I have is placing the button in the right place!
I used this code
//add back to store button after cart
add_action('woocommerce_single_product_summary', 'themeprefix_back_to_store');
function themeprefix_back_to_store() { ?>
<a class="button wc-backward" href="<?php echo get_permalink( wc_get_page_id( 'shop' ) ); ?>"><?php _e( 'Return to Store', 'woocommerce' ) ?></a>
<?php
}
Maybe putting it where I want is an easy thing for you? (see screenshot)
Using a textlink for that puts it in the right place: add_action( 'woocommerce_single_product_summary', create_function( '', 'echo "<a href=\"YOUR_SHOP_PAGE_URL\">Continue Shopping</a>";' ), 35 );
Sorry for late reply, I must have missed your answer :-S
Change this code from your original code add_action('woocommerce_single_product_summary', 'themeprefix_back_to_store'); to add_action('woocommerce_single_product_summary', 'themeprefix_back_to_store', 35);
Comments
You can try solution from woocommerce support https://wordpress.org/support/topic/add-continue-shopping-button-to-product-pages/
With kind regards.
Thanks for the Link.. I actually found something even better (I wanted a button ) and I'm almost happy now... the only problem I have is placing the button in the right place!
I used this code Maybe putting it where I want is an easy thing for you? (see screenshot)
Using a textlink for that puts it in the right place:
add_action( 'woocommerce_single_product_summary', create_function( '', 'echo "<a href=\"YOUR_SHOP_PAGE_URL\">Continue Shopping</a>";' ), 35 );
Thank you
Pascal
Change this code from your original code
add_action('woocommerce_single_product_summary', 'themeprefix_back_to_store');
to
add_action('woocommerce_single_product_summary', 'themeprefix_back_to_store', 35);
It should work ;-)
With kind regards.
Thanks.. that worked like a charm )