If this is your first visit, check our documentation. To post, register or login.
Forums / All Other Contributions/Addons / Drop Shipping Purchase Orders Module for v1.3.8

Drop Shipping Purchase Orders Module for v1.3.8

Started by keepsake on 23 Jan 2008, 11:33 PM · Views: 135,308

Results 181 to 200 of 524
18 Jun 2008, 2:17 PM
#181
dscott1966 avatar

dscott1966

Zen Follower

Join Date:
Apr 2005
Posts:
298
Plugin Contributions:
0

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.

19 Jun 2008, 9:00 AM
#182
srturner47 avatar

srturner47

Zen Follower

Join Date:
Oct 2007
Posts:
385
Plugin Contributions:
0

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:

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;
}
19 Jun 2008, 12:13 PM
#183
mustang394 avatar

mustang394

Zen Follower

Join Date:
Jun 2008
Location:
Colorado
Posts:
146
Plugin Contributions:
0

Re: Drop Shipping Purchase Orders Module for v1.3.8

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.

19 Jun 2008, 12:21 PM
#184
mustang394 avatar

mustang394

Zen Follower

Join Date:
Jun 2008
Location:
Colorado
Posts:
146
Plugin Contributions:
0

Re: Drop Shipping Purchase Orders Module for v1.3.8

That took care of the error, but there is still no file attachment.

19 Jun 2008, 3:43 PM
#185
srturner47 avatar

srturner47

Zen Follower

Join Date:
Oct 2007
Posts:
385
Plugin Contributions:
0

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.

20 Jun 2008, 12:18 AM
#186
mustang394 avatar

mustang394

Zen Follower

Join Date:
Jun 2008
Location:
Colorado
Posts:
146
Plugin Contributions:
0

Re: Drop Shipping Purchase Orders Module for v1.3.8

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.

20 Jun 2008, 12:25 AM
#187
srturner47 avatar

srturner47

Zen Follower

Join Date:
Oct 2007
Posts:
385
Plugin Contributions:
0

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.

20 Jun 2008, 12:48 AM
#188
mustang394 avatar

mustang394

Zen Follower

Join Date:
Jun 2008
Location:
Colorado
Posts:
146
Plugin Contributions:
0

Re: Drop Shipping Purchase Orders Module for v1.3.8

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?

20 Jun 2008, 2:26 PM
#189
djjase avatar

djjase

New Zenner

Join Date:
Jun 2008
Posts:
29
Plugin Contributions:
0

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?

Whats to Buy - The Biggest Online Shopping Site
**Grab a Bargain Now**

20 Jun 2008, 3:04 PM
#190
djjase avatar

djjase

New Zenner

Join Date:
Jun 2008
Posts:
29
Plugin Contributions:
0

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.

Whats to Buy - The Biggest Online Shopping Site
**Grab a Bargain Now**

20 Jun 2008, 10:29 PM
#191
srturner47 avatar

srturner47

Zen Follower

Join Date:
Oct 2007
Posts:
385
Plugin Contributions:
0

Re: Drop Shipping Purchase Orders Module for v1.3.8

Mustang394 - Sorry, I don't understand your last question.

The more I thought about your question the more I realized that these symptoms sound like someone who is updating and did not install the SQL update. Is that possible?

djjase - Glad to hear it works!

20 Jun 2008, 10:35 PM
#192
mustang394 avatar

mustang394

Zen Follower

Join Date:
Jun 2008
Location:
Colorado
Posts:
146
Plugin Contributions:
0

Re: Drop Shipping Purchase Orders Module for v1.3.8

srturner47:

Mustang394 - Sorry, I don't understand your last question.

The more I thought about your question the more I realized that these symptoms sound like someone who is updating and did not install the SQL update. Is that possible?

No it was a new install, everything seems to be working except the pdf file is not attached.

Was wondering where in the code it tells it to attach the file to the email.

I get the same error as everyone else if turn mime on, but neither text or html give me the file attachment.

21 Jun 2008, 1:49 AM
#193
oznet avatar

oznet

New Zenner

Join Date:
Apr 2008
Posts:
10
Plugin Contributions:
0

Re: Drop Shipping Purchase Orders Module for v1.3.8

Hi

This mod seems to be really great. However, I am trying to set up for use in Australia, so some features don't work for me.

I would like help on 2 issues:
How can I change the date format in the packing list to dd/mm/yyyy format (I have changed this for my site as a whole but this date is not formating as I would like.

In the packing list I am getting this error appearing at the bottom of the packing slip: Shipping Option: <img src=includes/templates/template_default/images/icons/austpos t_logo.jpg alt=AustPost /> (<font color="#FF0000">ERROR:</font> - where can I edit out this?

I am not using the Ty tracking module although I have it installed.
I am using the Aust Post shipping module

Thanks

21 Jun 2008, 9:04 PM
#194
srturner47 avatar

srturner47

Zen Follower

Join Date:
Oct 2007
Posts:
385
Plugin Contributions:
0

Re: Drop Shipping Purchase Orders Module for v1.3.8

OzNet - That makes sense. If you have a picture for part of your shipping option it won't show up right on the pdf packing list. To take this out, just change these lines from send_pos.php:

if ($countproductsonpo != $countproducts)
$pdf->addNotes(SHIPPING_OPTION.": ".$tmpt[0][7]."\n\n".PO_PARTIALSHIP_PACKINGLIST."\n".$_POST[plistcomments]);
else
$pdf->addNotes(SHIPPING_OPTION.": ".$tmpt[0][7]."\n\n".PO_FULLSHIP_PACKINGLIST."\n".$_POST[plistcomments]);

change to:

if ($countproductsonpo != $countproducts)
$pdf->addNotes("\n\n".PO_PARTIALSHIP_PACKINGLIST."\n".$_POST[plistcomments]);
else
$pdf->addNotes("\n\n".PO_FULLSHIP_PACKINGLIST."\n".$_POST[plistcomments]);

To change the date format find this line in send_pos.php and send_pos_nc.php:

$invdate=date("m-d-Y");

Change it to whatever date format you want.

Enjoy!

Mustang - Sorry. I really don't know what is wrong. My best advice would be to hire someone to take a look at it. If you want to hire me, PM me, but anyone who knows what they are doing should be able to troubleshoot this. It is also possible that your server is somehow having problems attaching things. The file is attached using the function zen_mail. You can search for it in send_pos and send_pos_nc. Good luck!

23 Jun 2008, 3:26 AM
#195
srturner47 avatar

srturner47

Zen Follower

Join Date:
Oct 2007
Posts:
385
Plugin Contributions:
0

Re: Drop Shipping Purchase Orders Module for v1.3.8

Just uploaded v3.12. Usually it takes a day or two to show up. Enjoy!


V3.12 CHANGELOG


  1. HTML emails fixed.
  2. Added {customers_comments} field for email header.
  3. Added a list of fields to readme file.

Link

23 Jun 2008, 1:32 PM
#196
gabstero avatar

gabstero

Zen Follower

Join Date:
Nov 2007
Posts:
342
Plugin Contributions:
0

Re: Drop Shipping Purchase Orders Module for v1.3.8

Mustang394:

No it was a new install, everything seems to be working except the pdf file is not attached.

Was wondering where in the code it tells it to attach the file to the email.

I get the same error as everyone else if turn mime on, but neither text or html give me the file attachment.

Mustang: What version of ZenCart you have? If it is v1.3.7.1, it is known that the pdf is knot attaching - not sure why.

thanks,
Gabstero

23 Jun 2008, 6:36 PM
#197
mustang394 avatar

mustang394

Zen Follower

Join Date:
Jun 2008
Location:
Colorado
Posts:
146
Plugin Contributions:
0

Re: Drop Shipping Purchase Orders Module for v1.3.8

gabstero:

Mustang: What version of ZenCart you have? If it is v1.3.7.1, it is known that the pdf is knot attaching - not sure why.

thanks,
Gabstero

Running Zen Cart 1.3.8a

25 Jun 2008, 2:57 AM
#198
mustang394 avatar

mustang394

Zen Follower

Join Date:
Jun 2008
Location:
Colorado
Posts:
146
Plugin Contributions:
0

Re: Drop Shipping Purchase Orders Module for v1.3.8

http://www.zen-cart.com/forum/showthread.php?t=76632

According to DRBYTE in this thread Zen Cart no longer supports email file attachments.

wonder why they took that out.

A special thank to all those who tried to help, I really do appreciate it.

25 Jun 2008, 5:53 AM
#199
srturner47 avatar

srturner47

Zen Follower

Join Date:
Oct 2007
Posts:
385
Plugin Contributions:
0

Re: Drop Shipping Purchase Orders Module for v1.3.8

You are correct, Zen Cart does not support file attachments as far as I know. However, if you look at the zen_mail function in 1.3.8, you will see that this ability has been added to Zen Cart, though as far as I know, it has not been utilized other than to add the ability to the zen_mail function. I believe this is why the attachments don't work with 1.3.7...but that is just speculation as I don't have a 1.3.7 install to look at.

UPDATE: Just noticed this from that thread:

If you were hoping to have the uploaded file included as an attachment to the contact-us email, you should note that as of Zen Cart v1.3.7, there is no support for emailing attachments. That may change in future releases.

That would explain why PDF attachments don't work with 1.3.7. They must have added that ability in 1.3.8.

Again, I highly recommend you hire someone to help you out Mustang. I am fairly confident your problem can be resolved. Good luck!

25 Jun 2008, 6:04 AM
#200
mustang394 avatar

mustang394

Zen Follower

Join Date:
Jun 2008
Location:
Colorado
Posts:
146
Plugin Contributions:
0

Re: Drop Shipping Purchase Orders Module for v1.3.8

I may have to down load the install package and look at the un moded files. I wonder if anyone has this installed on 1.3.8 and has the attachments working.

Might try it on a fresh install just to make sure one of my mods isn't causing the problem.

PM Sent.