Magento. Experienced. | by sneako

Feb/10

18

Change Link In “My Cart” Sidebar To Go To Shopping Cart Instead Of Onepage Checkout

If you wish to allow the “Checkout” button within the sidebar (“My Cart”) to go to the Shopping Cart instead of the onepage checkout, thus allowing the customer to enter coupons and see estimated shipping perform the following steps:

——————————————-

1) Open for edit: app/design/frontend/blank/theme075/template/checkout/cart/sidebar.phtml

——————————————-

2) Find the following line:

<button type="button" onclick="setLocation('<?php echo $this->getCheckoutUrl() ?>')"><span><span><span><?php echo $this->__('Checkout') ?></span></span></span></button>

——————————————-

3) Change to:

<button type="button" onclick="setLocation('http://www.YOURDOMAIN.com/index.php/checkout/cart/')"><span><span><span><?php echo $this->__('Checkout') ?></span></span></span></button>

——————————————-

4) Save, (upload if not editing through FTP)

——————————————-

5) Refresh the cache via the Magento Admin (I assume I had to do this, can’t remember)

——————————————-

Now when you add a product to your cart and it shows up in the sidebar (“My Cart”) and you then click on “Checkout” you should be taken to your chopping cart instead of the onepage checkout process!

This helps to solve issues where customers get frustrated because on the onepage checkout they don’t see anywhere to estimate shipping and/or enter coupons.

RSS Feed

No comments yet.

Leave a comment!

<<

>>

Find it!

Theme Design by devolux.org