Forums / General Questions / Manual orders using check/moneyorder

Manual orders using check/moneyorder

Views: 2,087

Results 1 to 13 of 13
29 Feb 2012, 2:39 PM
#1
bpoilspill avatar

bpoilspill

New Zenner

Join Date:
Jul 2011
Posts:
72
Plugin Contributions:
0

Manual orders using check/moneyorder

Currently our store uses PayPal to process payments, but we also have a merchant account we use for telephone orders and stuff. I know about Master Password, but my question is, how would I get past the checkout process without charging?:lookaroun

29 Feb 2012, 2:43 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Manual orders using check/moneyorder

You could use the Check/Money Order moneyorder ... or clone that for something like instore payment or whatever you are trying to do ...

You could also customize it further in some manner to only work for you and not show to other customers but you are not giving enough details to tell you ...

There is also a Purchase Order add on if I am not mistaken in the Free Software Add ons that might work for you ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

29 Feb 2012, 2:52 PM
#3
bpoilspill avatar

bpoilspill

New Zenner

Join Date:
Jul 2011
Posts:
72
Plugin Contributions:
0

Re: Manual orders using check/moneyorder

I guess I could clone the Free Order payment module, and edit it somehow to only be used by the admin account. I know nothing of PHP and databases though, I've only worked with entry Python, C++, and JAVA.

29 Feb 2012, 3:01 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Manual orders using check/moneyorder

Let's say you wanted to only show the Check/Money Order moneyorder payment module for your IP Address ...

You could use:

      $this->enabled = ((MODULE_PAYMENT_MONEYORDER_STATUS == 'True') ? true : false);

// bof: only show for one ip address
if (!IS_ADMIN_FLAG) {
  if ($_SESSION['customers_ip_address'] != 'XXX.XXX.XXX.XXX') {
    $this->enabled = false;
  }
} 
// eof: only show for one ip address

where XXX.XXX.XXX.XXX is your IP Address ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

29 Feb 2012, 3:16 PM
#5
bpoilspill avatar

bpoilspill

New Zenner

Join Date:
Jul 2011
Posts:
72
Plugin Contributions:
0

Re: Manual orders using check/moneyorder

That would work, however would it be possible to add multiple IP's by using an OR operator? If anything possible just by my admin account?

29 Feb 2012, 3:26 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Manual orders using check/moneyorder

  if ($_SESSION['customers_ip_address'] != 'XXX.XXX.XXX.XXX' || $_SESSION['customers_ip_address'] != 'XXX.XXX.XXX.XXX' || $_SESSION['customers_ip_address'] != 'XXX.XXX.XXX.XXX') {

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

29 Feb 2012, 4:03 PM
#7
bpoilspill avatar

bpoilspill

New Zenner

Join Date:
Jul 2011
Posts:
72
Plugin Contributions:
0

Re: Manual orders using check/moneyorder

When I add an || in, and another IP, the money order option does not come up anymore. It did work with just my IP.

Here's code:

	  // bof: only show for one ip address
	  if (!IS_ADMIN_FLAG) {		if ($_SESSION['customers_ip_address'] != '98.208.140.119' || $_SESSION['customers_ip_address'] != '97.100.83.23'){		
	  $this->enabled = false;			
		}		
	  } 		
	  // eof: only show for one ip address
29 Feb 2012, 4:06 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Manual orders using check/moneyorder

Silly me ... should use && rather than || ...

I was just following along with your OR question and not the reality of how to do this ... :lamo:

if ($_SESSION['customers_ip_address'] != 'XXXXXX' && $_SESSION['customers_ip_address'] != 'XXXXXXXX') {

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

29 Feb 2012, 4:15 PM
#9
bpoilspill avatar

bpoilspill

New Zenner

Join Date:
Jul 2011
Posts:
72
Plugin Contributions:
0

Re: Manual orders using check/moneyorder

Lol, that did the trick though. I get those AND's and OR's mixed up sometimes too :oops:

Thanks for the code!!

29 Feb 2012, 4:25 PM
#10
bpoilspill avatar

bpoilspill

New Zenner

Join Date:
Jul 2011
Posts:
72
Plugin Contributions:
0

Re: Manual orders using check/moneyorder

One last thing. Where would I change the output for payment type in this code? Basically where it says Payment Method: Check/Money Order on the invoice and in the e-mail, I basically want to change to manual order.

29 Feb 2012, 4:29 PM
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Manual orders using check/moneyorder

Look in the language files:
/includes/languages/english/modules/payment

and use your templates and overrides:
/includes/languages/english/modules/payment/your_template_dir

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

29 Feb 2012, 4:41 PM
#12
bpoilspill avatar

bpoilspill

New Zenner

Join Date:
Jul 2011
Posts:
72
Plugin Contributions:
0

Re: Manual orders using check/moneyorder

Ajeh:

Look in the language files:
/includes/languages/english/modules/payment

and use your templates and overrides:
/includes/languages/english/modules/payment/your_template_dir

Ok, changed that. One last thing I promise.

When the invoice is made and sent, it shows the "manual order" under the shipping and billing address, how do I remove them?

PRP
Manual Order
123 xxx
orlando, FL 32856
United States

29 Feb 2012, 4:47 PM
#13
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Manual orders using check/moneyorder

You would need to customize the:
/admin/invoice.php

to block out the things you do not want to show ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!