문제

My customers place orders, and when they go to the My Orders section of their account, the orders do not show up until it has been invoiced and entered a processing state.

This is a problem because we like to review orders before capturing payment and they are contacting us thinking the orders did not go through

도움이 되었습니까?

해결책

It sounds like your incoming orders are assigned a state of pending_payment until the invoice is added. If you take a look at

/app/code/core/Mage/Sales/etc/config.xml

<config>
    <global>
        <sales>
            <order>
                <states>
                    <new translate="label">
                        <label>New</label>
                        <statuses>
                            <pending default="1"/>
                        </statuses>
                        <visible_on_front>1</visible_on_front>
                    </new>
                    <pending_payment translate="label">
                        <label>Pending Payment</label>
                        <statuses>
                            <pending_payment default="1"/>
                        </statuses>
                    </pending_payment>

you will notice this state does not have a <visible_on_front>1</visible_on_front> node

Your options here are to either use another state for the incoming orders or to allow this state to be shown. For the second option you can use the following:

<config>
    <global>
        <sales>
            <order>
                <states>
                    <pending_payment translate="label">
                        <visible_on_front>1</visible_on_front>
                    </pending_payment>
                </states>
            </order>
        </sales>
    </global>
</config>

in your own custom extension's etc/config.xml file.

다른 팁

In Magento 2, we could change the column visible_on_front from 0 to 1 in table sales_order_status_state like below.

enter image description here

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top