Zen Cart Logo
Forums / All Other Contributions/Addons / Drop Shipping Purchase Orders Module for v1.3.8

Drop Shipping Purchase Orders Module for v1.3.8

Views: 135,057

Results 161 to 180 of 524
3 Jun 2008, 12:45 AM
#161
minshop_no avatar

minshop_no

New Zenner

Join Date:
May 2008
Posts:
56
Plugin Contributions:
0

Drop Shipping Purchase Orders Module for v1.3.8

minshop.no:

Hi, this sounds like a brilliant mod. :clap:
I have 2 questions I need to ask:

Did anyone install this without this tracker module? What is the result? Please tell me your versions also.

Is there a live demosite whit this module installed, so that I can see it live before installing it on my zen.

Thanks ppl..:smile:

and now i read that i need super orders to install ty tracker?
looks like im not getting sleep until sunday :smile::shocking:

3 Jun 2008, 4:35 AM
#162
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 don't need super orders to install TY tracker. Sorry, as far as I know there is no live demo site. That costs money, and no one is making any money off this contribution.

Don't fret. You must be relatively new to Zen. You should be able to install TY tracker and this mod in about 30-40 minutes. Things are confusing at first, but the more you work and tinker with Zen Cart the easier it gets. Good luck!

3 Jun 2008, 8:26 AM
#163
minshop_no avatar

minshop_no

New Zenner

Join Date:
May 2008
Posts:
56
Plugin Contributions:
0

Re: Drop Shipping Purchase Orders Module for v1.3.8

srturner47:

You don't need super orders to install TY tracker. Sorry, as far as I know there is no live demo site. That costs money, and no one is making any money off this contribution.

Don't fret. You must be relatively new to Zen. You should be able to install TY tracker and this mod in about 30-40 minutes. Things are confusing at first, but the more you work and tinker with Zen Cart the easier it gets. Good luck!

ok, great. I think I got the install process clear. I´ll just backup and give it a go.
You are correct, 1 week in Zen now.(but its a 14 hrs a day week ) :blink:
Thanks for your reply.

9 Jun 2008, 3:46 PM
#164
gabstero avatar

gabstero

Zen Follower

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

Re: Drop Shipping Purchase Orders Module for v1.3.8

Gang - really quick:

Are the customer's comments (entered during checkout in the "Special Instructions or Comments About Your Order" box) forwarded in the POs?

Thanks!

Gabstero

10 Jun 2008, 5:06 AM
#165
srturner47 avatar

srturner47

Zen Follower

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

Re: Drop Shipping Purchase Orders Module for v1.3.8

gabstero - no, they are not. But, you can easily add them by either using the "Comments for Purchase Orders" or by using the "Review E-mail Before Sending" feature.

However, comments ARE added to the packing lists when you choose to do so.

10 Jun 2008, 2:28 PM
#166
gabstero avatar

gabstero

Zen Follower

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

Re: Drop Shipping Purchase Orders Module for v1.3.8

srturner47:

gabstero - no, they are not. But, you can easily add them by either using the "Comments for Purchase Orders" or by using the "Review E-mail Before Sending" feature.

However, comments ARE added to the packing lists when you choose to do so.

SrTurner!

Fantastic! Thanks a lot! I installed the mod on my Zencart v1.3.7.1 and it works marvellously! SOOOO much better than the previous version!!!

The only thing I had to change (and this comes as a suggestion also) was the path to my admin folder in confirm_track_sub.php to the name I currently have in lines 25 to 28:

require('admin/includes/extra_datafiles/tracker.php');
require('admin/includes/extra_datafiles/purchaseorders.php');
require('admin/includes/languages/english/extra_definitions/confirm_tracking.php');
require('admin/includes/languages/english/orders.php');

For next releases you might want to use a variable to that admin folder since a lot of stores have several different names for it for security reasons.

And now back to my original question. I was able indeed to write comments in the "Comments for purchase order" and they were passed along in the email.
However, is there a way to add the value of "Add Customers Comments to Packing Lists" check box to the PO email as well?

Thanks so so much!!!

Gabstero.

10 Jun 2008, 2:31 PM
#167
gabstero avatar

gabstero

Zen Follower

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

Re: Drop Shipping Purchase Orders Module for v1.3.8

Aaa.. and another one ---

there was no PDF packing slip attached to the PO email... Should I configure fpdf somehow?

I didn't find any instructions in the readme concerning fpdf config...

thanks!

Gabstero.

10 Jun 2008, 3:28 PM
#168
gabstero avatar

gabstero

Zen Follower

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

Re: Drop Shipping Purchase Orders Module for v1.3.8

Sorry gang - another one (I am just discovering these as I am testing)

When one does "Send for Unknown Customer", should the latest order (and PO #) be considered to add in the "PO & Order Number" field? Or anything can be entered there?

For example, my latest online order/po number was #16-50. Should I enter #17-51 in that field?

Thanks again!
Gabstero

10 Jun 2008, 9:40 PM
#169
mlangone avatar

mlangone

New Zenner

Join Date:
Feb 2008
Posts:
5
Plugin Contributions:
0

Re: Drop Shipping Purchase Orders Module for v1.3.8

has anyone figured out how to have the po's email automatically once a day?

11 Jun 2008, 6:05 AM
#170
srturner47 avatar

srturner47

Zen Follower

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

Re: Drop Shipping Purchase Orders Module for v1.3.8

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.

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.

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.

mlangone - No, sorry.

11 Jun 2008, 2:19 PM
#171
gabstero avatar

gabstero

Zen Follower

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

Re: Drop Shipping Purchase Orders Module for v1.3.8

srturner47:

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

12 Jun 2008, 5:23 AM
#172
srturner47 avatar

srturner47

Zen Follower

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

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:

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

12 Jun 2008, 1:46 PM
#173
gabstero avatar

gabstero

Zen Follower

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

Re: Drop Shipping Purchase Orders Module for v1.3.8

srturner47:

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:

$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?

> **srturner47:**
>
> 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.
12 Jun 2008, 4:20 PM
#174
cowboyfred avatar

cowboyfred

Zen Follower

Join Date:
Dec 2005
Location:
colorado
Posts:
84
Plugin Contributions:
0

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.

13 Jun 2008, 5:12 AM
#175
srturner47 avatar

srturner47

Zen Follower

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

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! :cool:

13 Jun 2008, 3:56 PM
#176
gabstero avatar

gabstero

Zen Follower

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

Re: Drop Shipping Purchase Orders Module for v1.3.8

srturner47:

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

18 Jun 2008, 2:27 AM
#177
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'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

18 Jun 2008, 5:12 AM
#178
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 - 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.

18 Jun 2008, 11:52 AM
#179
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 - 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.

18 Jun 2008, 1:40 PM
#180
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

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;
}