Page 18 of 53 FirstFirst ... 8161718192028 ... LastLast
Results 171 to 180 of 524
  1. #171
    Join Date
    Nov 2007
    Posts
    342
    Plugin Contributions
    0

    Default Re: Drop Shipping Purchase Orders Module for v1.3.8

    Quote Originally Posted by srturner47 View Post
    gabstero - I see your point about adding comments from the customer, but I must admit I am not highly motivated to add this feature. I kind of like being able to write comments from my perspective when I am sending a PO.
    It makes sense. Although I missed some important things to pass along to the SC that were mentioned by the customer in the checkout comments. What I can do is check if there are any important comments from the client, and copy/paste them in the PO's email while reviewing before sending - which I have to add it is a SUPERB addition and thanks a lot for that!

    I was wondering is it possible that the customer comments are wrapped in a similar variable like the others you have in the email templates? Example:

    {products_quantity}
    {products_name}
    {manufacturers_name}

    Where are these variable set? Is there a list by any chance?


    I think you misunderstand the send for unknown customer feature. You can enter anything you want for the PO number -- these POs are not tracked. The send for unknown customer feature is for phone orders, ebay orders, etc... that are not within the Zen Cart system. It is just an easy way to send an email PO with an attached packing list. These orders are not tracked within zen cart, because they are not in zen cart to begin with! Hence -- Unknown Customer. So, you probably want to use a PO # that makes sense for whatever you are doing. For example, if you have an ebay order, you might want to use E followed by the last 4 digits of the auction number. For a phone order, you might want to use P and the first 4 letters of their last name. Etc, etc, etc... Whatever makes sense to remember your POs, use it. You can put anything you want in for the PO # when using the unknown customer feature.
    AHA!!! Okay - not it is clear! Thanks again!

    I think someone mentioned before that the packing lists don't attach correctly with Zen Cart 1.3.7. I'd update to 1.3.8 if I were you, that should probably fix your problem. No need to setup fpdf - it should work.
    Thanks again. Although I am so reluctant to upgrade. I have quite a bit of mods on it and I am afraid I will break it. It will happen, I am sure but since the store has traffic, I am reluctant to make the upgrade now. I can live without the attachment. Is there any support thread for the FPDF thing?

    Thanks!
    Gabstero

  2. #172

    Default Re: Drop Shipping Purchase Orders Module for v1.3.8

    No, there isn't a tag for customer comments, but I like the idea! I'll include it in my next version of the mod...but, unless I find any new bugs that could be awhile as I am very happy with how things are working right now. Here's the code you need to add to send_pos.php on line 236 right below the {po_comments} line:

    Code:
    $oatmeal = $db->Execute("select comments from " . TABLE_ORDERS_STATUS_HISTORY . " WHERE orders_id = '" . zen_db_input($row4[31]) . "' order by date_added");
    $catmeow = nl2br(zen_db_output($oatmeal->fields['comments']));
    $catmeow=strip_tags($catmeow);
    $zawartosc2[$i]=str_replace("{customers_comments}",$catmeow,"$zawartosc2[$i]");
    You'll want to add {customers_comments} somewhere in email_header.txt after making this change. I haven't tested this, but it should work fine. Let me know if it doesn't work and I will fix it.

    By the way, there is no documentation that lists the tags, but there are many to choose from that are not in the example email. Just look around send_pos - you'll find them.

    Again, you don't need support for fpdf. It is working fine if you installed my mod correctly. You can even check it -- find the last pdf file in your admin directory and you'll see that it works. The problem is with attaching to the email in 1.3.7.1, not creating the pdf file.

  3. #173
    Join Date
    Nov 2007
    Posts
    342
    Plugin Contributions
    0

    Default Re: Drop Shipping Purchase Orders Module for v1.3.8

    Quote Originally Posted by srturner47 View Post
    No, there isn't a tag for customer comments, but I like the idea! I'll include it in my next version of the mod...but, unless I find any new bugs that could be awhile as I am very happy with how things are working right now. Here's the code you need to add to send_pos.php on line 236 right below the {po_comments} line:

    Code:
    $oatmeal = $db->Execute("select comments from " . TABLE_ORDERS_STATUS_HISTORY . " WHERE orders_id = '" . zen_db_input($row4[31]) . "' order by date_added");
    $catmeow = nl2br(zen_db_output($oatmeal->fields['comments']));
    $catmeow=strip_tags($catmeow);
    $zawartosc2[$i]=str_replace("{customers_comments}",$catmeow,"$zawartosc2[$i]");
    You'll want to add {customers_comments} somewhere in email_header.txt after making this change. I haven't tested this, but it should work fine. Let me know if it doesn't work and I will fix it.

    By the way, there is no documentation that lists the tags, but there are many to choose from that are not in the example email. Just look around send_pos - you'll find them.
    Worked like a charm! THANKS A TON!!!

    One funny thing I observed, is that the mode sends double emails. For example I sent one to myself (as a fictious SC) and I received two copies. I reviewed the PO emails before sending it, so can that be the problem?

    Quote Originally Posted by srturner47 View Post
    Again, you don't need support for fpdf. It is working fine if you installed my mod correctly. You can even check it -- find the last pdf file in your admin directory and you'll see that it works. The problem is with attaching to the email in 1.3.7.1, not creating the pdf file.
    AHA!!! Discovered the pdf and it is indeed correctly created. Any suggestion on where should I look why it isn't attached to the PO emails?

    Thanks so much for all your generous help!!

    Gabstero.

  4. #174
    Join Date
    Dec 2005
    Location
    colorado
    Posts
    108
    Plugin Contributions
    0

    Default 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.

  5. #175

    Default Re: Drop Shipping Purchase Orders Module for v1.3.8

    gabstero - never had a problem with it sending two emails before. Reviewing an email shouldn't make it do this...is it possible you refreshed the page after sending an email? This would cause this behavior -- see the warning on the send PO page. Try again and make sure you don't use the refresh button on your browser - let me know if that fixes the problem.

    cowboyfred - I changed the delivery method from the function mail() to zen_mail() so that I could make this mod work with attachments. This is obviously causing problems for some people, but I have been unable to reproduce this problem on my end, so I have been unable to troubleshoot it. Some people have reported that changing from HTML emails to text emails fixes this problem, but I tried both on my end, and it always seems to work fine. Unless someone will grant me access to their admin and ftp that has this problem, I don't forsee a solution for this. If you'd be willing to do this, just PM me the details. If not, I understand -- I wouldn't let someone do this on my site, so I can't blame you!

  6. #176
    Join Date
    Nov 2007
    Posts
    342
    Plugin Contributions
    0

    Default Re: Drop Shipping Purchase Orders Module for v1.3.8

    Quote Originally Posted by srturner47 View Post
    gabstero - never had a problem with it sending two emails before. Reviewing an email shouldn't make it do this...is it possible you refreshed the page after sending an email? This would cause this behavior -- see the warning on the send PO page. Try again and make sure you don't use the refresh button on your browser - let me know if that fixes the problem.
    Thanks! You are right - it does not happen upon reviewing. But I also didn't refresh the page (I saw the warning). It is still sending duplicate emails. And check this. I added some text in the "Comments for Purchase Orders:" field, and in one of the emails the word "it's" is shown "it's" and in the other one shows "it/'s" (with the escape character).

    I was trying to see if there is a redundant file from the previous PO install that might do this but I wasn't sure where to look for. Would you have any suggestions on where the emailing of the POs is hadled?

    OK - I THINK I FOUND IT: I had two different emails set for each subcontractor. Example - the SCs email and mine also - only so I can get a copy of the PO email in my inbox. That actually caused the system to send it twice. Here is how I had the emails set in the SCs:

    [email protected], [email protected]

    I wonder if the system checks for the numbers of emails in the SC and loops through that many times.

    Anyway - I removed my emails for now - I trust that the POs are going out correctly - hehehe...

    Thanks again!

    Gabstero

  7. #177
    Join Date
    Jun 2008
    Location
    Colorado
    Posts
    145
    Plugin Contributions
    0

    Default Re: Drop Shipping Purchase Orders Module for v1.3.8

    I'm getting this error at the top when I click send. Everything seems to work ok!
    except the email does not have the PDF file attached.


    Warning: Division by zero in /admin/pdfpack.php on line 77

    Can anyone help?

    Thanks

    Running Zen Cart 1.3.8a

  8. #178

    Default Re: Drop Shipping Purchase Orders Module for v1.3.8

    Mustang394 - Your store has no name defined in Zen Cart. You need a name defined so that it can put this name on you packing lists -- hence the error. See your admin-configuration-my store-Store Name and give it a name.

  9. #179
    Join Date
    Jun 2008
    Location
    Colorado
    Posts
    145
    Plugin Contributions
    0

    Default Re: Drop Shipping Purchase Orders Module for v1.3.8

    Quote Originally Posted by srturner47 View Post
    Mustang394 - Your store has no name defined in Zen Cart. You need a name defined so that it can put this name on you packing lists -- hence the error. See your admin-configuration-my store-Store Name and give it a name.
    Checked it retype and saved the store name still getting the same error. Happens for both send po and send unkown.

  10. #180
    Join Date
    Jun 2008
    Location
    Colorado
    Posts
    145
    Plugin Contributions
    0

    Default Re: Drop Shipping Purchase Orders Module for v1.3.8

    Don't know if this help but her is the function that seems to be causing the error.
    I not a programmer so it is like reading Chinese to me. :)

    // public functions
    function sizeOfText( $texte, $largeur )
    {
    $index = 0;
    $nb_lines = 0;
    $loop = TRUE;
    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;
    }

 

 
Page 18 of 53 FirstFirst ... 8161718192028 ... LastLast

Similar Threads

  1. v151 Drop Shipping Purchase Orders w/ PDF Packing List (v3.22)
    By Danielle in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 16 Nov 2015, 01:48 PM
  2. Can I change the dates in Drop Shipping Purchase Orders Module?
    By unlucky-pete in forum Customization from the Admin
    Replies: 0
    Last Post: 23 Feb 2013, 09:08 PM
  3. Drop Shipping Purchase Order Module
    By jderrers in forum All Other Contributions/Addons
    Replies: 86
    Last Post: 9 Jul 2009, 09:30 AM
  4. Drop Shipping Purchase Order Module?
    By Zis in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 14 Jan 2008, 02:57 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR