Welcome to our Magento blog!

This will be a very quick Magento 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!

Our Magento blog is a good source for you to get Magento tutorials for developing Magento Plugins and Magento 2 Plugins

Author

Why Magestore? We believe in building a meaningful & long-term relationship with you.

7 Comments

  1. hi,I have a problem,when customer ordered but dont pay ;the order states will be pending;the customer can see pending order;but how can he pay this pending order?

    • Hi guy,
      Your customer should contact with you then you can create a payment for him. Another way is that you can cancel that order then your customer reorder and make payment.
      Hope it helpful!

  2. Can you change the ordering process so they have to put in there card details before they complete the order?

    • Hi Mat,
      Could you explain in more details whether you want to put card details in order after it is checkout or before checkout?

  3. let’s say a customer calls over the phone and you manually create an order for them on the backend. The problem is you only accept paypal for payments. The user never completed the checkout process on the front end. Is it possible to route a pending payment order back through the checkout process?

    thx

    • Hello Philip,

      About your question, in front end, in order to be able to checkout through PayPal, you have to reorder. Hope this helps.

      Thanks for following us!

Write A Comment