Simple Create Order module – Zen cart
Friday January 16, 2009 by Ivan Kristianto
I have created a simple module in zen-cart. This module called Simple Create Order v1.0. I created this module because i can’t find any module for create order from the admin back end.
After did some search on google and looking in Zen-Cart forum. I found that there are 2 modules related to mine: those are super order 2.0 and edit order v1.5.3.
I thought i can use super order 2.0, but i did found that the developer of this module discontinued the project and there are many bugs and many complicated patch in the forum, after that i decided to not use that module.
And then i come up for the second choice that is edit order v1.5.3, i think this module is the one i looking for, but this module only edit existing order made by the customer, not create a new one.
And then i have an idea, how about if i create my own module by recode the edit order module? After a several hours i did have my own module that is “Simple Create Order v1.0″.
My idea is really simple, i did join 2 modules (edit order v1.5.3 and add customer v1.02) with a little modifications and create my own create order module. You can download it here.
HOW TO INSTALL:
===============
1. Download Simple Create Order.
2. Upload files to your store directory; the directory structure design for zen cart 1.3.8a, if you still have standard installation you can just upload files in modifications folder, if not please refer to instruction manual include in zip file.
HOW TO USE:
===============
For create an order: In ADMIN->CUSTOMERS->Create Order
For create an customer: In ADMIN->CUSTOMERS->Add customer
For edit an Order: In ADMIN->CUSTOMERS->ORDERS->EDIT make necessary changes to customer’s order (i.e. to delete a product, change quantity to 0) and then click UPDATE.
PATCH:
===============
5 Agustus 2010: Fixed Cannot Delete Order… Finally ![]()
18 Sep 2009: Update add customer from admin module to v1.06
11 May 2009: Add resent invoice as request by Melissa.
29 April 2009: Fixed for anyone using prefix database table name. (Thanks to Brandy)
SCREENSHOT (click to enlarge):
=======================
Found any bugs or a suggestion please post here. Enjoy…
If you find my coding tips, plugins, or tutorials then buy me a cup of coffee or leave a comment.



iReboot, Most Efficient Way To Boot Another OS
Scan All The Computer IP Addresses Inside Your Network In One Click
Useful Firefox Shortcut Keys
Zen Cart v1.3.9c Released
[HowTo] Install Windows 7 From USB Flashdrive
Apple’s App Store doesn’t support iOS 2.X apps anymore
[HowTo] Make Your Windows XP Faster Part 1
URL Shortener Service Comparison Criteria
Windows Phone 7: Would It Be Android Or iOS Killer?
[HowTo] Broadcast Radio With Winamp + SHOUTcast to Ubuntu with IceCast2
[Tutorial] Convert Xvid or Avi to DVD Format in Ubuntu
Check Virus Online With VirusTotal.com
[HowTo] Extract Database Information From Information_schema Table in Mysql



Hello Ivan,
I would be more than willing to pay a donation to get you to edit/update for zencart 1.3.9h
- spam
- offensive
- disagree
- off topic
LikeDustinShayBurson I'm so sorry. i have decided to abandon this project. but you can look at the comment or the forum for more updates. i'm still waiting for zen cart team to update to v2.0 then i shall continue this project.
- spam
- offensive
- disagree
- off topic
LikeHi Ivan,
This is an amazing module which I used for 1.3.8 but now we have upgraded to 1.3.9 and I am having problems with it. Several bugs prevent me from editing an existing order, adding shipping or tax or deleting a product, etc. Any feedback? We would really appreciate it!
- spam
- offensive
- disagree
- off topic
LikeI would love to use this mod and make it work. I have zen cart 1.39h. Everything seems to work ok but when i go to add a product under create order it directs me back to the admin home page. I have merged you code with my core files using win merge and have double checked everything but i can not fix it. PLLLLLZZZ... help me
- spam
- offensive
- disagree
- off topic
Like@d6dc85d7d1725c4c600d1b5b531f310b:disqus @fbeece57e4dbe17f23bbe3630bf2d8bf:disqus It's been a while i haven't play with zencart anymore. THis plugin is unsupported anymore. Please follow the instructions from @DivaVocals:disqus at the comment below.
- spam
- offensive
- disagree
- off topic
Likehi while am trying to create order 'ADD PRODUCT'---> it redirects to admin index page, what is the prob... am using 1.3.9
- spam
- offensive
- disagree
- off topic
LikeIs the minimum version needed 1.3.8? Will this work on 1.3.7 (yes I know that's old and should be upgraded, but that's what the client is on right now)?
- spam
- offensive
- disagree
- off topic
LikeHi there,
I had this mod installed just fine fully working and all. But now for some reason I get this error when I've added a customer and am trying to create an order for this particular customer..
this is the error:
Server error
The website encountered an error while retrieving http://www.MY-WEBDOMAIN.co.uk/ADMIN/create_order.p.... It may be down for maintenance or configured incorrectly.
Here are some suggestions:
Reload this web page later.
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.
I need some help on what to do as I need our phone orders on the system. Thanks
- spam
- offensive
- disagree
- off topic
LikeHTTP Error 500 is because there is a problem with your web server. I cannot investigate it unless i have access to your system and read the log.
- spam
- offensive
- disagree
- off topic
LikeHi Ivan, nice module! I have it installed ok, but running into a small problem. When trying to add an order, and adding a product, if the product has attributes such as Checkbox, or Text field, they show up as dropdown options in your module. Any quick way to fix this? Thanks, Curt
- spam
- offensive
- disagree
- off topic
LikeAfter I installed this mod I tried to use other functions of my admin panel and it redirected me to the log in, screen. Any ideas or suggestions for files to look at?
- spam
- offensive
- disagree
- off topic
LikeI finally located a MAJOR issue I have been having in regards to Zone Definitions, to your mod. When one edits the /functions/general.php as the readme states, it prevents the Country and State dropdowns from showing options in the Zones Definitions area.
Because of this, zone settings do not work, flat rate shipping does not work, etc.. :[
- spam
- offensive
- disagree
- off topic
LikeAhhhhhh.. When you posted this issue in the Zen Cart forum, (I assume this is khopek from the Zen forums.. :) ) I realized that this is the likely reason why the shipping tables do not display correctly..
- spam
- offensive
- disagree
- off topic
LikeI am using zencart 1.3.8 and i have two problems.
1. there is not remove free shipping. actually i dn't want to that.
2. when i add product then shipping zone not change. if i increase weight but there is only one shipping shows me like Shipping to GB (1 x 3.00lb(s)) and Best Way is Rs.0.00 actully this all amount shows when i m order as customer from website.
i just overwrite admin folder to my zen cart 1.3.8 and also overwrite general.php and orders.php from modification folder.
is this correct or i do something wrong. please tell me.
Thanks a lot for create this module.
Thanks
Paresh
- spam
- offensive
- disagree
- off topic
LikeWell for shipping isssue. I have make a default "free shipping" as default shipping option because every system have a different shipping system. So i just add free shipping as default and later you can edit it manually.
i suggest you to use file compare and merge my code instead of overwriting.
- spam
- offensive
- disagree
- off topic
LikeExcept what he is speaking of the fact that this default entry shows on the order list as well as the order details.. If you edit the order to change the shipping method, the order details and invoices, and packingslips all show the NEW shipper.. However the order list still shows "Free Shipper" in the shipping method column.. and you CANNOT modify this..
- spam
- offensive
- disagree
- off topic
LikeSo I'm done with my testing, and have gotten this working with Edit Orders v 2.03. Details here:
http://www.zen-cart.com/forum/showpost.php?p=95477...
- spam
- offensive
- disagree
- off topic
LikeSo I've gotten the Create Orders add-on working with the latest version of Edit Orders.. Details of this can be found here: http://www.zen-cart.com/forum/showpost.php?p=95477... the process of testing both versions, I've discovered some behavior that occurs using both the package I put together (with Edit Orders v2.03) and the package available here on Ivan's site. (which uses Edit Orders v 1.53)<br><br>Occasionally clicking the "Re-Send Invoice" button and then clicking "Ok" on the confirmation popup window results in the Edit Orders page going blank.. It's like the re-display of the Edit Orders page is blocked after resending the invoice. Here are some examples of the various steps I took when this issue occurs:<br><br>~ Create Order<br>~ Select Existing Customer<br>~ Add Product<br>~ Send Update E-Mail (this is where the page goes blank)<br><br>~ Create Order<br>~ Add New Customer<br>~ Create Order<br>~ Select New Customer<br>~ Add Product<br>~ Send Update E-Mail (this is where the page goes blank)<br><br>~ Edit Order<br>~ Add Product<br>~ Update<br>~ Send Update E-Mail (this is where the page goes blank)<br><br>~ Edit Order<br>~ Add Product<br>~ Update<br>~ Send Update E-Mail<br>~ Send Update E-Mail (this is where the page goes blank)<br><br>~ Edit Order<br>~ Add Product<br>~ Send Update E-Mail<br>~ Add Product<br>~ Send Update E-Mail (this is where the page goes blank)<br><br>Again I have tested this both with the version of the add-on available here on this site and with the version I updated which uses the latest version of Edit Orders..<br><br>The issue is that I cannot consistently re-create this to establish a pattern of when it occurs.. Repeating some of the same steps I took when I saw this error occur do not always result in the same behavior..<br><br>Very strange indeed..
- spam
- offensive
- disagree
- off topic
LikeSo I'm still testing this.. Now that I've compared the version of this mod available here with the latest version of Edit Orders (v2.03) I'm going to see if I can figure out how to get this to work fully with the latest version of edit orders.. While I can create orders with the latest version of Edit Orders, what is missing is the ability to send an order confirmation e-mail to a customer and the shipping estimate data..<br><br>Also I noticed that regardless of which version of Edit Orders I use (the modified one that comes with this module or the latest version) the customer's street address comes through on the order without the state information. Very curious as I cannot see what in the code would cause this behavior..
- spam
- offensive
- disagree
- off topic
LikeHey Kevin thought I'd share my experience with this mod.. This mod is using a much older and buggier version of Edit Orders so I decided to upgrade to Edit Orders 2.03. I made a few modifications to Edit Orders to use the same comments code as the latest version of Zen Cart (1.3.9) along with a few other minor cosmetic/functional updates to Edit Orders.
Next I verified that this add-on was using the latest version of Add Customers.
Lastly if you downloaded this add-on from the Zen Cart downloads section, please note that there are two errors in the submitted files that need to be corrected. In /admin/create_orders.php look at line 42. It will say:
Code:
WHERE `customers`.`customers_id` = ".$customer_id;
Change it so it now says:
Code:
WHERE ".TABLE_CUSTOMERS." . `customers_id` = ".$customer_id;
The reason that everyone is having issues with the delete NOT working is that the code in the orders.php file is wrong. Follow the instructions for editing the orders.php file that comes with Edit Orders and that should resolve this issue..
- spam
- offensive
- disagree
- off topic
LikeOne last thing.. There is an issue with a missing function. I resolved it by creating a new extra functions file: Solution is posted here: http://www.zen-cart.com/forum/showpost.php?p=95258...
All of the changes I posted have gotten this add-on working fairly smoothly.. I like the fact that it while it uses Edit Orders to create the order, the module is apparently not being bound to any SPECIFIC version of Edit Orders..
The last thing I need to do is to check for PHP 5.3 comparability..
- spam
- offensive
- disagree
- off topic
LikeThank you very much, DivaVocals...I will download the Edit Orders mod and make the change you suggested...I'll let you know how it turns out...this mod will be very important for my business so thanks again! :)
- spam
- offensive
- disagree
- off topic
LikeDear Friend,
Have you included necessary changes for "Fixed Cannot Delete Order" in the file available for download?
I took it and still I'm unable to delete my orders. I'm using 1.3.9b
- spam
- offensive
- disagree
- off topic
LikeHi Ivan,
Further,
Since I have not made any other modifications to my admin/orders.php, I have just overwritten the file (orders.php) from your downloaded file.
Here is the 849th line;
$contents[] = array('align' => 'center', 'text' => '<br />' . zen_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . zen_href_link(FILENAME_ORDERS, zen_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id, 'NONSSL') . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
- spam
- offensive
- disagree
- off topic
LikeI do not use the orders.php that comes with this contribution.. Instead, follow the directions in the Edit Orders readme for the correct modifications that need to be made to orders.php and that will resolve this issue.
- spam
- offensive
- disagree
- off topic
LikeFor cannot delete orders, i patched a while ago. please download it in this blog.
- spam
- offensive
- disagree
- off topic
LikeUnderstood.. However, I tried this file from your download here on your blog on v1.3.9h.. The edits in the orders.php in your package seem different.. and it didn't work for me either.. However, following the directions for editing orders.php in the Edit Orders readme did fix this problem..
- spam
- offensive
- disagree
- off topic
LikeThis plugin is tested on zencart v.1.3.8.
haven't tried for 1.3.9f.
But i will take a look.
- spam
- offensive
- disagree
- off topic
LikeHi Ivan, thanks for creating this module, it's exactly what I need for my Zen Cart site (1.3.9f). I'm having an issue and was hoping you might provide some insight. I've uploaded all new files and modified all core files properly (and double checked). I can MANUALLY enter product info, pricing, tax, etc. and it seems to work fine as seen here:
http://www.antioxidantcure.com/images/add_order_1....
When i hit the "Add Products" button, though, it lets me add a product from my catalog just fine...but when i get back to the main order entry screen, everything below the "Resend Invoice" button disappears! (there is no longer Comments, Status, Append Comments, or Update button) As seen here:
http://www.antioxidantcure.com/images/add_order_2....
Can you help?
- spam
- offensive
- disagree
- off topic
LikeHello, I downloaded this module from here and folled the installation instructions. I can enter new orders and edit current orders however for downloaded products an entry isn't create in the orders_download table for cutomers to receive the email link. Is there an easy fix for this? Thanks
- spam
- offensive
- disagree
- off topic
LikeP.S. I did upload the files in modifications/admin after already uploading the ones in admin.
- spam
- offensive
- disagree
- off topic
LikeHi Motterj,
For cannot delete order bugs have been fixed. Please download the one from this article.
And for discounted price, i don't add that feature.
But you can add discount at the order total and put '-' (minus sign), for example:
disc 10% -320
it will calculate when you press save. Thanks.
- spam
- offensive
- disagree
- off topic
LikeI run Zen Cart 1.3.9f but had need of this functionality, so with great trepadation (and after backing everything up) I installed it. It let me create a customer and an order, but it pulled in the regular price rather than the discounted price. It also won't let me delete my old test orders, though it does let me reset all their money amounts to 0 so my reports will be accurate as far as showing profits goes. Do you plan to update this for Zen Cart 1.3.9?
- spam
- offensive
- disagree
- off topic
LikeHi, I was wondering if you can create a search for product box in the add product page instead of step1 2 etc?
Thanks
Love the mod by the way!
- spam
- offensive
- disagree
- off topic
LikeTo add that functionality for now is not an easy fix.
Because that's structure from the edit_orders module.
I have to rewrite that module to do so.
- spam
- offensive
- disagree
- off topic
LikeHey there Ivan. We've installed the module on our websites - it is a really great module. However, I've noticed a big problem for us. When I input the delivery address, it does not appear on the online invoice and the invoice print off which will cause a massive problem with our delivery company. Is there an easy solution?
Thanks so much,
Dan Jones
- spam
- offensive
- disagree
- off topic
LikeHey there, Was looking for opportunity to post here as it beats phoning! My group is extremely astounded by the actual contribution additional webmasters are making on your site and hope to chip in in addition any time i can. I agree with the particular preceding commentor and anticipate to check back now and again.
- spam
- offensive
- disagree
- off topic
LikeFor those who have problem with cannot delete the order.
Please download the latest patch from this post.
Just press download, and overwrite the order.php from modifications > admin > orders.php
or see around line 849 and 851 for the fixes.
Thanks.
- spam
- offensive
- disagree
- off topic
Likei wonder what is wrong with the delete order. because i fixed it long time ago.
But i will find what cause it.
Thanks.
- spam
- offensive
- disagree
- off topic
LikeHI Breda,
For the tax you need to add it manually and calculate it manually too,
Thanks
- spam
- offensive
- disagree
- off topic
LikeSame issue here. I have tried everything but cannot delete orders
- spam
- offensive
- disagree
- off topic
LikeHi,
I'm trying out this mod and I have a problem with the tax, it shows the product price net of text, and it shows the tax rate in the tax box but it does not add the tax rate to the total? I dont have any tax mods switched on, only the standard Zen cart tax. Any idea waht I need to do to get it to show the total including tax?
Regards
Breda
- spam
- offensive
- disagree
- off topic
LikeI love your post, thank you for sharing.
- spam
- offensive
- disagree
- off topic
LikeYes, I downloaded at the "Download" button linked above. The modifications orders.php file did not resolve my problem of not being able to delete.
Thanks!
- spam
- offensive
- disagree
- off topic
LikeDid you download the one from this blog?
- spam
- offensive
- disagree
- off topic
LikeHi Ivan, I am having the issue of not being able to delete orders, which I see that you've addressed by telling people to download the new orders.php file from your blog. firstly, this is your blog, no? I can't find the updated version of this file anywhere. I just downloaded the mod today from this page... so where EXACTLY can I find the new orders.php file?
Thank you!
- spam
- offensive
- disagree
- off topic
LikeHi Preston,
What is your shipping estimator?
i'm using usps and fedex.
Please checek your shipping module configuration from the admin.
- spam
- offensive
- disagree
- off topic
LikeIvan,
We're having trouble with our shopping cart's shipping estimator. As soon as we finished installing this module, the shipping estimator quit working. We donated $5, and would be happy to donate another $5 if you could help us fix it.
Thanks,
Preston Mitchell
Berridge Farms
- spam
- offensive
- disagree
- off topic
LikeHi Magnus, i'm afraid not.
Zencart 2.0 will release soon.
I'm wonder if this feature available on the new zencart or not.
Thanks
- spam
- offensive
- disagree
- off topic
LikeUse file comparer to compare my files and your orders.php.
And merge them.
Thanks
- spam
- offensive
- disagree
- off topic
Like