I want to add an anchor link as "Return to Cart" just beside "Next" button on checkout page shipping address form. I have added an anchor tag in
file just above the Next button.
What I want to know is how to get checkout cart URL in href to redirect to cart page on clicking anchor tag?
Code is something like below,
<div class="actions-toolbar" id="shipping-method-buttons-container"> <div class="primary"> <a class="checkout-return-cart" href="#"><span translate="'Return to cart'" /></a> <button data-role="opc-continue" type="submit" class="button action continue primary"> <span translate="'Next'" /> </button> </div> </div>