Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Remove only certain Payment Options after selecting Shipping

Remove only certain Payment Options after selecting Shipping

Locked

Views: 1,335

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
10 Mar 2009, 6:45 AM
#1
rosscob avatar

rosscob

New Zenner

Join Date:
May 2007
Posts:
36
Plugin Contributions:
0

Remove only certain Payment Options after selecting Shipping

I want to remove the PAYPAL and CHEQUE/MONEY ORDER option from the Payment screen ONLY if "Store Pickup" is selected...

Can this be done?

Thanks
Ross.

10 Mar 2009, 10:05 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Remove only certain Payment Options after selecting Shipping

Don't know why?? As I would accept any payment method even if it were to be picked up in house....

But to do so one would have to add a few if/else cases/code to make this determination in the checkout sequence

15 Mar 2009, 11:22 PM
#3
rosscob avatar

rosscob

New Zenner

Join Date:
May 2007
Posts:
36
Plugin Contributions:
0

Re: Remove only certain Payment Options after selecting Shipping

The reason being, is if someone selects STORE PICKUP and then pays using PAYPAL.... the customer can contact PAYPAL "AFTER" picking up the item and tell them they never received it, and PAYPAL will REFUND them their money with no investigation.

So if anyone can help out, that would be awesome!

Thanks

16 Mar 2009, 3:53 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Remove only certain Payment Options after selecting Shipping

You can check the shipping method selected with:
$_SESSION['shipping']['id']

Then control the:
$this->enabled

in the module you want to enable or disable ...

$this->enabled when true, the module will show ...

$this->enabled when false, the module will not show ...

17 Mar 2009, 1:07 AM
#5
rosscob avatar

rosscob

New Zenner

Join Date:
May 2007
Posts:
36
Plugin Contributions:
0

Re: Remove only certain Payment Options after selecting Shipping

Actually, I still have very little Zen-Cart knowledge.....

I understand what you are saying, but have no idea which file I am to update, or where to insert the code your talking about.......

I'm sorry if this sounds easy to some people.... for me, I'm still learning....
A step-by-step process on how to do this with as much detail as possible would be very helpful....

Thanks
Ross.

17 Mar 2009, 1:55 AM
#6
rosscob avatar

rosscob

New Zenner

Join Date:
May 2007
Posts:
36
Plugin Contributions:
0

Re: Remove only certain Payment Options after selecting Shipping

Disregard my last reply....
I did some research through some other threads.... and combined what you just told me with something else I found... and it worked!!!!

THANK YOU :smile:

17 Mar 2009, 3:24 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: Remove only certain Payment Options after selecting Shipping

Glad to hear that you were able to get this working ...

What did you end up using to customize the code? :smile: