Re: Drop Shipping Purchase Orders Module for v1.3.8
Has anyone figured out why the emails sent show the "
$EMAIL_MESSAGE_HTML" and not the text that is suppose to show. i used the older version and it worked great. i just did the upgrade to the newest version and everything works great except the email comes with the
$EMAIL_MESSAGE_HTML instead of the drop shipping text order into.
I see some have the same problem, but no solution. or did i miss it.
Re: Drop Shipping Purchase Orders Module for v1.3.8
dscott1966 - Yes. I've fixed it and will be releasing the fix soon.
Mustang394 - There must be some other variable that has zero characters...I couldn't figure out any other reason why this could happen. Try to figure out what that is. If you can't here is a workaround -- replace the function sizeOfText with this function:
Code:
function sizeOfText( $texte, $largeur )
{
$index = 0;
$nb_lines = 0;
$loop = TRUE;
if ($largeur != 0) {
while ( $loop )
{
$pos = strpos($texte, "\n");
if (!$pos)
{
$loop = FALSE;
$ligne = $texte;
}
else
{
$ligne = substr( $texte, $index, $pos);
$texte = substr( $texte, $pos+1 );
}
$length = floor( $this->GetStringWidth( $ligne ) );
$res = 1 + floor( $length / $largeur) ;
$nb_lines += $res;
} }
return $nb_lines;
}
Re: Drop Shipping Purchase Orders Module for v1.3.8
Quote:
Originally Posted by
srturner47
dscott1966 - Yes. I've fixed it and will be releasing the fix soon.
Mustang394 - There must be some other variable that has zero characters...I couldn't figure out any other reason why this could happen. Try to figure out what that is. If you can't here is a workaround -- replace the function sizeOfText with this function:
Thanks I will give that a try, I have been looking for what might be blank and can't find any thing. Let you know if the new code works.
Re: Drop Shipping Purchase Orders Module for v1.3.8
That took care of the error, but there is still no file attachment.
Re: Drop Shipping Purchase Orders Module for v1.3.8
Hmmmmm.... Strange. Is it possible that you have turned off pdf attachments? Check Admin-Configuration-Purchase Orders-POs - send packing lists and see if they are turned on.
If they are and the problem persists, go to your admin directory and see if the last packing list is there. If it is there, you know your problem has to do with email delivery. If it isn't you know it has something to do with pdf creation.
Try creating a file with the same name as your packing lists. Put it in your admin directory and see if it attaches when you send a PO.
Re: Drop Shipping Purchase Orders Module for v1.3.8
Quote:
Originally Posted by
srturner47
Hmmmmm.... Strange. Is it possible that you have turned off pdf attachments? Check Admin-Configuration-Purchase Orders-POs - send packing lists and see if they are turned on.
If they are and the problem persists, go to your admin directory and see if the last packing list is there. If it is there, you know your problem has to do with email delivery. If it isn't you know it has something to do with pdf creation.
Try creating a file with the same name as your packing lists. Put it in your admin directory and see if it attaches when you send a PO.
The pdf is is the admin directory but email is not picking it up, I am using the stand zen-cart php email module could that be the problem?
BTW thanks for the quick reply's and help.
Re: Drop Shipping Purchase Orders Module for v1.3.8
Hmmm... I really don't know what could be your problem if you are using 1.3.8. PHP is fine, that is what I use too. Are you sure packing lists are enabled? The mod will create a packing list when packing lists are disabled, it just won't send them. That is really the only thing I can think of. I still think it is weird that you had that error, but I don't see how attaching a file to an email should be affected by an error in the creation of that file when you can confirm that the file is there.
Re: Drop Shipping Purchase Orders Module for v1.3.8
Quote:
Originally Posted by
srturner47
Hmmm... I really don't know what could be your problem if you are using 1.3.8. PHP is fine, that is what I use too. Are you sure packing lists are enabled? The mod will create a packing list when packing lists are disabled, it just won't send them. That is really the only thing I can think of. I still think it is weird that you had that error, but I don't see how attaching a file to an email should be affected by an error in the creation of that file when you can confirm that the file is there.
Yeh the created file seems to have all the right info in it. Any idea will file tell it to attach to the email?
Re: Drop Shipping Purchase Orders Module for v1.3.8
Hi, I have just installed this, and I am getting this error when I go to /admin/customers/po-send/resend
Warning: fopen(packinglist.pdf) [function.fopen]: failed to open stream: Permission denied in /mounted-storage/home54c/sub002/sc35494-IXGL/xxxx.com/zencart/admin/fpdf/fpdf.php on line 1046
FPDF error: Unable to create output file: packinglist.pdf
What directory is is looking for?
Re: Drop Shipping Purchase Orders Module for v1.3.8
Its ok, I got it working - I had to change /admin to 777 and then back to 755 and now it works. --- looking great.