Skip to content

Instantly share code, notes, and snippets.

@herveguetin
Created June 4, 2014 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save herveguetin/0169a62746ea3e24da9b to your computer and use it in GitHub Desktop.
Save herveguetin/0169a62746ea3e24da9b to your computer and use it in GitHub Desktop.
Make Magento orders of a *state* (thus all attached statuses) visible / hidden on front
<!-- Update config node /config/global/sales/order/states like this: -->
<config>
<global>
<sales>
<order>
<states>
<[state_code]>
<!--
Available state_code are:
. new
. pending_payment
. processing
. complete
. closed
. canceled
. holded
. payment_review
-->
<!--
Set <visible_on_front> as required (1 is default).
@see app/code/core/Mage/Sales/etc/config.xml
-->
<visible_on_front>0</visible_on_front>
</[state_code]>
</states>
</order>
</sales>
</global>
</config>
<!-- Example to hide orders with "canceled" state: -->
<config>
<global>
<sales>
<order>
<states>
<canceled>
<visible_on_front>0</visible_on_front>
</canceled>
</states>
</order>
</sales>
</global>
</config>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment