See the picture -- That's where to find it. If it is not there make sure your files are in the right place and that your SQL patch has been installed.
Printable View
See the picture -- That's where to find it. If it is not there make sure your files are in the right place and that your SQL patch has been installed.
This is the second website I'm installing this. First time wenst smooth but this time I'm getting this error while trying to send orders to my contractor:
Warning: fopen(packinglist.pdf) [function.fopen]: failed to open stream: Permission denied in /home/bachelor/public_html/admin/fpdf/fpdf.php on line 1046
FPDF error: Unable to create output file: packinglist.pdf
Someone can help please?
It seems it has something to do with the permissions of your admin directory. This mod will create a packing slip and then email it. The file is first created in your admin directory. After it emails it, the mod deletes this file. The script's packing list creation is being denied by your server. Try changing the permissions of your admin folder to 777. See if that fixes your problem. If it does, you know this is a permission problem. DO NOT leave your permissions as 777, as this is dangerous. Find a more secure setting that works for you. Hope that helps.
By the way, this is a questions for anyone who would be interested: I added an extra feature to this mod. It is extremely useful for me, but I am not sure if it would be valuable for others. It takes a lot of work to package up a mod for general consumption by Zen Cart users, so I wanted to see if anyone was interested in the changes. If not, I won't bother releasing it. Basically, this new version has a page where you can send POs for customers who did not buy through Zen Cart. So, for example, if you have a customer who places a phone order, buys through ebay, etc.... you can fill in a few details about them, choose the products from your database you want to send, and then it will email a PO with a Packing List attachment to a subcontractor of your choice. Nothing is recorded to the database for these customers, so tracking would still have to be handled by hand for these customers. This was extremely difficult to write, and I use it all the time, but I wasn't sure if there was the demand from anyone else for something like this. Let me know if you are interested. If people are, it will probably take a few weeks for me to get around to packaging it up, but I can do it. The only negative of this approach is that I didn't include all of the possible fields on this page, so fields like phone number are ignored. It would be quite cluttered to make a page with all these fields, and I don't use most of them anyway. It just uses the basics: Ship address, bill address, shipping method, PO Number, comments for PO and packing list, and all the products stuff: quantity, model, description, and attributes.
Ok, I have it up and working like a charm. My drop shipper gets the orders thru cUrl and I need to modify the send_pos.php to send the cUrl statement.
Allot of the notes are in a foreign language. Any thoughts where I should include the code?
Steve
It's funny -- I know the code back and forth for this mod and I still have no idea what the notes mean! :) Is that Polish?
Anyway, the email and packing list get sent on line 475, so if want to change the way they are sent, just replace the zen_mail function with whatever you like.
$addressdo = email address of subcontractor
$tematk = Email Title
$newzawartosc = Email Body
The rest is in English, so I think you'll figure it out. Good luck!
I have it partially working now, Thanks... What other variables are open at that point? I need to load the order to send out. If the order# is loaded I could use that for the query??
Steve
Thanks srturner47
Changing admin's premissions to 777 did the work. But I don't want to leave it like that.
Where can I change the destintion where the e-mail is being created? I couldn't find it in the files...
Thank you for this great module!
fotofx - As the order is being sent, the orderid is $tm1. All the variables are already queried, so I wouldn't bother redoing that. Just find them and use them how you like. The main query happens early on, and it immediately uses some of the variables, and then passes a few of the variables on through the script using two arrays: first is $wielowymiar the second is $tmpt. Handling variables can be a little complicated because the script will only send one PO if it is the same order sent to the same subcontractor, no matter how many items are picked. Just follow the pattern with the $wielowymiar array and the $tmpt array, and it will work ok.
YairOz - It is on line 473. Just change it to:
$pdf->Output("../packinglist.pdf", "F");
This will put it in your root directory. You can figure it out from there if you want to put it somewhere else. By the way, you shouldn't need to do 777 to make this work. Try 755 for your admin directory. That should fix your problem and it is much safer.
Any reason why this plug would slow the checkout process down?
I am now having serious hesitation during checkout steps 1 and again after 3 "confirm order" and am at a loss as to what is involved in this plug that has anything to do with this flow. Could be my host but they seem to be OK
Any advise would be great.
OK, I have everything working properly but need to make 1 change. I modified the send_pos to send my order thru cURL to the drop shipper. We only use 1 drop shipper for everthing and the way I have it set up the order goes out once with all the items. I do not need a seperate PO for each item. Is there a way to make it so if I check send PO on any item within an order it will mark all items in that order as sent? Or not generate multiple PO's for each item on an order?
It has to be sent out as I did it on 1 PO becase the drop shippers sytem will generate multiple orders (and multiple shipping) if sent on a per item basis.
Again, it is functioning perfect, except I will always have unsent PO's on any multiple item order unless I can figure out how to group them or at least make all sent.
Thanks
Steve