开发者

Magento checkout slooooow [closed]

Closed. This question is off-topic. It is not currently accepting answers.
开发者_运维知识库

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 11 years ago.

Improve this question

I've got a huge problem with my Magento webshop. It runs good except for the last step when placing a new order. Especially if the customer wants to order lots of products.

Each product adds ~5 seconds to the checkout process (after the customer pushed the Place Order button).

A lot of customers orders 20+ products at a time so this is a huge problem for us.

The site is hosted at Properhost.net.

Nothing seems to help, is there anyone with some kind of solution here?


this is indeed kind of a solution here, as it involves editing core xml files (it's my understanding there is no way to override those files by a custom module: someone please correct me if I'm wrong), but here it is.
See edit.
Acording to these guys (I haven't try it myself) there are 3 observers that add a lot of execution time in order process. Their solution is to remove/comment those lines:
In app/code/core/Mage/Downloadable/etc/config.xml:

<sales_order_item_save_after>
    <observers>
        <downloadable_observer>
            <class>downloadable/observer</class>
            <method>saveDownloadableOrderItem</method>
        </downloadable_observer>
    </observers>
</sales_order_item_save_after>

And in app/code/core/Mage/Rss/etc/config.xml:

<sales_order_item_save_after>
    <observers>
        <notifystock>
            <class>rss/observer</class>
            <method>salesOrderItemSaveAfterNotifyStock</method>
        </notifystock>
    </observers>
</sales_order_item_save_after>
<sales_order_item_save_after>
    <observers>
        <ordernew>
            <class>rss/observer</class>
            <method>salesOrderItemSaveAfterOrderNew</method>
        </ordernew>
    </observers>
</sales_order_item_save_after>

Maybe you can check if you can go without them and give a try. Remember that at next upgrade those changes will probably be lost.
Hope That Helps
Edit: At inchoo they found a solution to disabled events without editing core files, it won't be difficult to apply it in this case.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜