I've combined my checkout page (OneStepCheckout) and cart page. The /checkout/cart (the cart page) is still accessible, and I wouldn't want my customer to accidentally access that page (reviewing your cart twice would be quite confusing).
Is there anyway I can redirect this page with magento to /checkout ?
Best Answer
In this case you need 301
redirection
fromcheckout/cart
to your checkout pageuse event
controller_action_predispatch_checkout_cart_index
fire an observerObserver code:
Full Module:
As per as your request, i have out full module and as per as customer will
redirect
tocheckout/cart
to contacts us using301 redirection
.config code:
location:
app\code\local\Stackexchange\Magento67150\etc\config.xml
code:
Observer code:
location:
app\code\local\Stackexchange\Magento67150\Model\Observer.php
Code:
Module file: app/etc/modules/StackExchange_Magento67150.xml
code is: