Created
June 4, 2014 15:05
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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