Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Return To Shop Next to Update Cart

Home / Forums / Virtue Theme / Return To Shop Next to Update Cart

This topic is: Not Resolved
[Not Resolved]
Posted in: Virtue Theme
May 2, 2015 at 12:41 pm

Hi,

Based on the response in one of the support requests here ( I have the suggestion from Ben an have updated by Functions.php and Custom CSS as below..

Updated in Functions.php
=======================

/* add button, Return to Shop, on cart page */
add_action( ‘woocommerce_proceed_to_checkout’, ‘kad_keepshopping’, 4 );
function kad_keepshopping() {
echo ‘‘.__(‘Return To Shop’, ‘woocommerce’ ).’‘;
}

My custom css
=============
table.cart .wc-backward {
padding: 8px 12px;
font-size: 14px;
margin-top:1px;
float:left;
}

I am looking for three changes

a. I need the “Return to Shop” button move next to the “Update Cart” as in the reference link below. Can this be done ?
b. When I press “Return to Shop” it goes to the standard “Shop” page. I need to go to the page from which the customer has come. My shop page is custom shop page and I have use Woocommerce short codes to display specific items in a page. I need the customer to go the custom shop page from where he has come to the cart.
c. The color of the button should be same as that of “Update Cart”

Reference link Modified Return to Shop

Thanks

  • The forum ‘Virtue Theme’ is closed to new topics and replies.