I was working with a friend yesterday who was working on a website that used a lot of grouped products, but also had the need to be able to edit orders in Magento. The bummer thing about Magento and editing orders: You can’t fully do it with configurable, grouped, or bundled products. It will let you edit the order, but it will not transfer the products over to the new order. If you try to edit the orders, you will see a warning similar to:
This order contains (grouped) items and therefore cannot be edited through the admin interface at this time, if you wish to continue editing the (grouped) items will be removed, the order will be canceled and a new order will be placed.
Now here’s the interesting part that we discovered: If you add one simple line to app/code/core/Mage/Adminhtml/etc/config.xml, you can kind of get it to work. Search that file for ‘available_product_types’. Within that tag, you’ll find simple and virtual tags. Add ‘
Now, refresh the order in the admin. When you click edit, you will no longer receive the same warning, and the products will come over to the duplicated order. Interesting!
This begs the question: Why doesn’t Magento have any other product types enabled for editing products besides simple and virtual? I wonder if there is good reason behind it. Perhaps adding ‘
I have tried this with all three product types. Here is what I discovered:
Grouped Products: It seems to work perfectly. The products come over, and there doesn’t seem to be any difference in the original order and the duplicated order.
Configurable & Bundled Products: It works, but only partially. The products get transferred to the new order, but the options do not. The price is accurate, but you are missing the selections made by the user.
Unfortunately, this post is not a solution, but merely a sharing of a discovery. I wish I had a solid solution to offer. Configurable, Grouped, and Bundled products are pretty common among the numerous Magento websites that I have seen and developed. Why Magento hasn’t yet made editing orders with these product types is a huge question for a lot of Magento users out there. I can only assume that Magento hasn’t implemented it yet for a good reason. Hopefully they will add this functionality soon.
As always, I would never suggest editing core files directly. If you want to experiment making these changes other than just a quick experiment, then create a proper module to do so.