I want to allow customers to cancel their pending orders in "My Account" section.
I tried this tutorial, but it doesn't show 'cancel order' link in customer "My Orders" page.
How can I do this in Magento ?
Any assistance will be helpful.
Hope you know how to create the method in controller and how to access that method on front-end.
Create the simple link in my account page and create the method in your controller and and write the below code in your method that order Status Will be changed.
$orderId = YOUR_ORDER_ID; $order = Mage::getModel(‘sales/order’) ->load($orderId); $order->setState(Mage_Sales_Model_Order::STATE_CANCELED, true)->save();
I realise that it is generally frowned upon to simply recommend an extension as a solution, but the following extension is free and I have been using it on 18.104.22.168 without any problems (despite it being listed as only compatible with 1.4 and 1.5)