This will be a very quick tutorial today but I bet that it’s helpful to you. As you know, some orders have status of pending payment and by default, Magento doesn’t show them on frontend. It makes customers unable to view details of their orders. However, you can configure to display these orders on frontend by adding the code below to the configuration file (config.xml) of any active module.
<config> <global> <sales> <order> <states> <pending_payment> <visible_on_front>1</visible_on_front> </pending_payment> </states> </order> </sales> ... </global> ... </config>
Similarly, you can totally disable showing any order status by setting the status’s attribute visible_on_front to 0. For example:
<config> <global> <sales> <order> <states> <processing> <visible_on_front>0</visible_on_front> </processing> </states> </order> </sales> ... </global> ... </config>
Enjoy your code!
Revisions
- May 19, 2015 @ 14:44:03 [Current Revision] by admin
- May 19, 2015 @ 14:44:03 by admin
- May 19, 2015 @ 14:41:08 by admin
No comments yet.