[Solved] Want to return to 'shopurl' from cart summary
Checkout is a great plugin.
Once an item has been added to the cart, the order summary appears. Two buttons are the bottom of the summary. 'Continue Shopping' and 'View Shopping Cart'.
The 'Continue Shopping' link goes nowhere. Looking at the code in views/default/cart_summary.php, line 95 we have
<pre lang="php">
<?php echo $wpcoHtml -> link(__('Continue Shopping', $this -> plugin_name), '', array('onclick' => "jQuery.colorbox.close(); return false;", 'class' => $this -> pre . "button")); ?>
</pre>
How do I change this so the 'continue shopping' button takes me to the 'shopurl' setting, i.e. the main shop page?
Once an item has been added to the cart, the order summary appears. Two buttons are the bottom of the summary. 'Continue Shopping' and 'View Shopping Cart'.
The 'Continue Shopping' link goes nowhere. Looking at the code in views/default/cart_summary.php, line 95 we have
<pre lang="php">
<?php echo $wpcoHtml -> link(__('Continue Shopping', $this -> plugin_name), '', array('onclick' => "jQuery.colorbox.close(); return false;", 'class' => $this -> pre . "button")); ?>
</pre>
How do I change this so the 'continue shopping' button takes me to the 'shopurl' setting, i.e. the main shop page?
Comments
I've replaced line 95 in cart_summary.php with:
<pre lang="php">
<?php echo $wpcoHtml -> link(__('Continue Shopping »', $this -> plugin_name), $wpcoHtml -> shop_url(), array('class' => $this -> pre . "button")); ?>
</pre>
It now takes me back to the shop front.