Forums / Addon Payment Modules / Purchase order module

Purchase order module

Locked

Started by seanscully on 17 May 2006, 3:38 AM · Views: 20,292

Results 1 to 20 of 46
This thread is locked. New replies are disabled.
17 May 2006, 3:38 AM
#1
seanscully avatar

seanscully

Zen Follower

Join Date:
Apr 2006
Location:
Largo, Florida USA
Posts:
99
Plugin Contributions:
0

Purchase order module

Does anyone know where I can get the purchase order module?

17 May 2006, 3:59 AM
#2
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Purchase order module

https://www.camelot-hosting.com
hit the downloads link

Zen cart PCI compliant Hosting

30 Aug 2006, 10:12 PM
#3
flakrat avatar

flakrat

New Zenner

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

Re: Purchase order module

Do you know if there's any problem using the PO module (I'm using PO-MOD-1.3) with PHP 5?

I had it working on my system, but it stopped functioning earlier this month. I believe that is when I upgraded from PHP 4 to 5.

What I'm seeing is, when the user fills out their PO info, clicks the Continue button to confirm the order, the following displays:
Payment Method
Purchase Order
Purchase Order
Account name:Account Number: Purchase Order Nr:

After they submit the order, the po fields in the zen_orders table do not get any data, the only related field that does get filled in is payment_method, which shows "Purchase Order".

Any ideas where to look in the po php files?

Thanks, Mike

5 Sep 2006, 9:40 PM
#4
flakrat avatar

flakrat

New Zenner

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

Re: Purchase order module

Ok, I believe I've fixed it

You need to change each occurrence of the following in file ./includes/modules/payment/po.php

HTTP_POST_VARS

with

_POST

Hope this helps,

Mike

5 Sep 2006, 10:13 PM
#5
flakrat avatar

flakrat

New Zenner

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

Re: Purchase order module

One thing that still isn't working is, in the email message sent to the customer and to the store admin (following a purchase), the Payment Method section looks like:

**Payment Method **
Purchase Order
with the following information:

It's missing the actual Account Name, PO number info.

Any ideas? This used to work, so it must be another issue with PHP 5 or Register Globals being off.

7 Sep 2006, 5:39 PM
#6
flakrat avatar

flakrat

New Zenner

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

Re: Purchase order module

Ok, I've fixed the issue with the email not displaying the PO number. Apparently, in the previous version of my store, I had added code to add PO number and Account name to the emails.

Here's the code for Zen v1.3.5 that will do just that.

Modify ./includes/classes/order.php

Replace the text email line:
$email_order .= ($GLOBALS[$payment_class]->email_footer) ? $GLOBALS[$payment_class]->email_footer . "\n\n" : '';

with
$email_order .= ($GLOBALS[$payment_class]->email_footer) ? $GLOBALS[$payment_class]->email_footer . "\n" . "Account: " . $this->info['account_name'] . "\n" . "PO #: " . $this->info['po_number'] . "\n\n" : '';

And replace the html email line:
$html_msg['PAYMENT_METHOD_FOOTER'] = (is_object($GLOBALS[$_SESSION['payment']]) ? $GLOBALS[$payment_class]->email_footer :

With the following if statement
if ($GLOBALS[$payment_class]->title == 'Purchase Order') {
$html_msg['PAYMENT_METHOD_FOOTER'] = (is_object($GLOBALS[$_SESSION['payment']]) ? $GLOBALS[$payment_class]->email_footer . "<br>" . "Account: " . $this->info['account_name'] . "<br>" . "PO #: " . $this->info['po_number'] : '');
} else {
$html_msg['PAYMENT_METHOD_FOOTER'] = (is_object($GLOBALS[$_SESSION['payment']]) ? $GLOBALS[$payment_class]->email_footer : $this->info['cc_type'] );
}

20 Jun 2007, 5:44 PM
#7
rmullaney77 avatar

rmullaney77

New Zenner

Join Date:
Mar 2007
Location:
Lakeland, FL, US
Posts:
44
Plugin Contributions:
1

Re: Purchase order module

I have installed this module for 1.3.7 and it worked fine. That is until we noticed it was automatically setting order status to "Production" (not our default) without any option to change the default order status for this payment method.

I have looked through the modified code and cannot find out where the problem is located. Any help would be greatly appreciated since we cannot use the module in it's current state.

Since ANYBODY can select PO as the payment method when it's enabled, it should default to "Pending" or at least the store's default status. Primarily because if someone selects PO and nevers actually submits their physical PO, the order would not be valid.

Thanks in advance.

27 Jun 2007, 7:16 AM
#8
domox avatar

domox

New Zenner

Join Date:
Jun 2007
Posts:
2
Plugin Contributions:
0

Re: Purchase order module

Sorry for the silly question, but beyond "upload all files in current structure." where do you install the files in order to use them? Thanks.

Domingo
Tucson, AZ

28 Jun 2007, 2:37 PM
#9
domox avatar

domox

New Zenner

Join Date:
Jun 2007
Posts:
2
Plugin Contributions:
0

Re: Purchase order module

Bump.

Does anyone have a suggestion? I'm obviously new to Zen Cart and I like it. I'm using it for my store that I'm building up but I'm in need of the purchase order payment module. Can someone help out here? Thanks.

29 Jun 2007, 4:21 PM
#10
rmullaney77 avatar

rmullaney77

New Zenner

Join Date:
Mar 2007
Location:
Lakeland, FL, US
Posts:
44
Plugin Contributions:
1

Re: Purchase order module

It's pretty straight-forward but I'll try to assist.

Everything in the admin folder of the provided module should be place in the admin folder of your ZC installation.

Everything in the includes folder of the provided module should be place in the includes folder of your ZC installation.

Just make sure that you update 'includes/templates/YOUR TEMPLATE/templates' where **YOUR TEMPLATE** is the name of the template you selected in your current ZC configuration.

Once all that is done, apply the SQL patch as indicated.

This is pretty much the same as the instructions provided in read me.txt but may be a bit more specific to new users. Hope it helps.

31 Aug 2007, 5:11 AM
#11
scvinodkumar avatar

scvinodkumar

New Zenner

Join Date:
Jul 2007
Posts:
6
Plugin Contributions:
0

Re: Purchase order module

flakrat:

Ok, I believe I've fixed it

You need to change each occurrence of the following in file ./includes/modules/payment/po.php

HTTP_POST_VARS

with

_POST

Hope this helps,

Mike
hai,
i need the purchase order module, can you tell me the link where i can download the po please help me.

31 Aug 2007, 5:14 AM
#12
scvinodkumar avatar

scvinodkumar

New Zenner

Join Date:
Jul 2007
Posts:
6
Plugin Contributions:
0

Re: Purchase order module

seanscully:

Does anyone know where I can get the purchase order module?
hai,
could you please send me the link where i can download the Purchase Order for zen cart. I needed urgently please help me.

31 Aug 2007, 5:15 AM
#13
scvinodkumar avatar

scvinodkumar

New Zenner

Join Date:
Jul 2007
Posts:
6
Plugin Contributions:
0

Re: Purchase order module

ebspromo:

It's pretty straight-forward but I'll try to assist.

Everything in the admin folder of the provided module should be place in the admin folder of your ZC installation.

Everything in the includes folder of the provided module should be place in the includes folder of your ZC installation.

Just make sure that you update 'includes/templates/YOUR TEMPLATE/templates' where **YOUR TEMPLATE** is the name of the template you selected in your current ZC configuration.

Once all that is done, apply the SQL patch as indicated.

This is pretty much the same as the instructions provided in read me.txt but may be a bit more specific to new users. Hope it helps.
hai ebspromo,
could you please send me the link where i can download the Purchase Order for zen cart. I needed urgently please help me.

31 Aug 2007, 5:45 AM
#14
scvinodkumar avatar

scvinodkumar

New Zenner

Join Date:
Jul 2007
Posts:
6
Plugin Contributions:
0

Re: Purchase order module

Merlinpa1969:

https://www.camelot-hosting.com
hit the downloads link
hi Merlin,
i couldn't find the download link for purchase order. If you dont mind can you tell me the link where i can download the purchase order module.
please.........

2 Jul 2008, 9:41 PM
#15
rmullaney77 avatar

rmullaney77

New Zenner

Join Date:
Mar 2007
Location:
Lakeland, FL, US
Posts:
44
Plugin Contributions:
1

Re: Purchase order module

I have not used this module since finding the "order status" problem and do not know what the real difference between these 2 contributions since the 1.3.7 should have worked for 1.3.8 without any changes.

http://www.zen-cart.com/index.php?main_page=index&cPath=40_48&sort=20a&page=4

Purchase Module
Last Updated by: Slabadoo on Apr 12 2007 v1.3.7

purchase module
Last Updated by: Knuckle-101 on Feb 20 2008 v1.3.8

29 Sep 2008, 1:52 PM
#16
davidvanderhoff avatar

davidvanderhoff

New Zenner

Join Date:
Sep 2008
Posts:
2
Plugin Contributions:
0

Re: Purchase order module

Wondering if I can auto populate the Purchase Order fields with static information.

We are only using ZenCart for one customer so the account number, account name, and purchase order number are always the same.

Thanks

30 Sep 2008, 5:39 PM
#17
rmullaney77 avatar

rmullaney77

New Zenner

Join Date:
Mar 2007
Location:
Lakeland, FL, US
Posts:
44
Plugin Contributions:
1

Re: Purchase order module

If the information never changes it eliminates the purpose of the add-on. Just tell them to select check/money order and your sales staff can handle the rest.

11 Oct 2008, 8:23 PM
#18
patrick_mathews avatar

patrick_mathews

New Zenner

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

Re: Purchase order module

Merlinpa1969:

https://www.camelot-hosting.com
hit the downloads link

Is there an update to this? I've searched the site and can't find the downloads link - I noticed this is from a few years ago - is there an updated location for this module?

Thanks
Patrick

13 Oct 2008, 3:07 PM
#19
davidvanderhoff avatar

davidvanderhoff

New Zenner

Join Date:
Sep 2008
Posts:
2
Plugin Contributions:
0

Re: Purchase order module

The problem is there are several hundred people all ordering from the same company. Using the same Purchase Order method. It is very difficult to convey that they would need to select Check/Money Order instead of Purchase Order.

What I think I'm looking for is something like the Check/Money Order module where it doesn't ask for any information. But instead of saying Check/Money Order it would say Purchase Order. Any help you could offer would be greatly appreciated.

8 May 2009, 4:17 AM
#20
frankderosa avatar

frankderosa

New Zenner

Join Date:
Jan 2009
Location:
Charlottesville, VA
Posts:
51
Plugin Contributions:
0

Re: Purchase order module

Has anybody found any place to get this module? My client is interested in this functionality. Alternatives are good too - they just need a way to accept purchase orders.

Thanks,
Frank