Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Restrict a Shipping/Payment Module for all but one customer

Restrict a Shipping/Payment Module for all but one customer

Locked

Views: 1,737

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
12 Nov 2006, 11:59 PM
#1
samad64 avatar

samad64

Totally Zenned

Join Date:
May 2006
Location:
Texas
Posts:
554
Plugin Contributions:
2

Restrict a Shipping/Payment Module for all but one customer

Hi everyone,

Every now and then I have people who would like to locally pick up their order and pay cash. I have created a "Local Pickup" account because most of these people either a) don't want to sign up or b) don't want to use a credit card/paypal. I would like for the local pickup account to have access two the "Store Pickup" shipping module, while nobody else does. Also, I would like to be able to choose "Check/Money Order" module and allow it again only for this customer. The reason for this is that I have seen competitors' employees or affiliates sign up, choose absolutely everything in the store, and check out with check/money order. Unfortunately theres no type of validation scheme set up for checks since its not electronic.

So, with that said, how would I go about doing this? Would it be one gigantic if statement on each of the modules I mentioned? (check/money order, store pickup) to where if the customer's ID = local pickup's ID, then show it.. if not.. don't show it?

Thanks for the help in advance

//EDIT: Another option would be zones for my zip code only.. I guess I'll start reading up on zones :). If the above can be accomplished as well, that would be great

13 Nov 2006, 12:24 AM
#2
ben avatar

ben

New Zenner

Join Date:
Aug 2006
Location:
Melbourne, Australia
Posts:
30
Plugin Contributions:
0

Re: Restrict a Shipping/Payment Module for all but one customer

You may want to look at the invoice payment module.

http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_48&products_id=230

This module gives customers you nominate the option of paying on an invoice.

You may be able to transfer the same logic to a shipping module.

13 Nov 2006, 1:18 AM
#3
samad64 avatar

samad64

Totally Zenned

Join Date:
May 2006
Location:
Texas
Posts:
554
Plugin Contributions:
2

Re: Restrict a Shipping/Payment Module for all but one customer

interesting.. thank you for the link to that module :)

17 Nov 2006, 7:21 AM
#4
samad64 avatar

samad64

Totally Zenned

Join Date:
May 2006
Location:
Texas
Posts:
554
Plugin Contributions:
2

Re: Restrict a Shipping/Payment Module for all but one customer

update on this:

the module worked BEAUTIFULLY, thank you very much! with a little bit of editing i got it to say cash instead of invoice, and look for the cash group instead of invoice group.

Regarding the shipping thing.. instead of installing a new module which restricted delivery to a single zip code.. I decided to go the route of a discount coupon which allows free shipping. It would probably look better on the receipt to say "Local Pickup" instead of something like "First Class Mail".. but since I'm the only one to see it right now I don't really care much about it. Plus.. if someone from my zipcode was to go through the checkout system and not know that I am in their same zip code.. they would see the local pickup option and would probably choose that instead of a shipping option. This way.. i don't have to worry about someone not paying for shipping (unless, of course, they figure out the code!)

20 Nov 2006, 10:50 AM
#5
ben avatar

ben

New Zenner

Join Date:
Aug 2006
Location:
Melbourne, Australia
Posts:
30
Plugin Contributions:
0

Re: Restrict a Shipping/Payment Module for all but one customer

Glad to hear it work. You've made my day :smile:

20 Nov 2006, 11:48 AM
#6
dogtags avatar

dogtags

Totally Zenned

Join Date:
Nov 2003
Posts:
876
Plugin Contributions:
1

Re: Restrict a Shipping/Payment Module for all but one customer

getyourgameshere.com:

with a little bit of editing i got it to say cash instead of invoice, and look for the cash group instead of invoice group.

This is very interesting. How did you do it? Would you mind posting how you did it?

Many thanks :-)

21 Nov 2006, 9:03 AM
#7
samad64 avatar

samad64

Totally Zenned

Join Date:
May 2006
Location:
Texas
Posts:
554
Plugin Contributions:
2

Re: Restrict a Shipping/Payment Module for all but one customer

sure

if you're looking to just change the word "invoice" on the checkout screen to say something else, look inside this file:

includes/languages/english/modules/payment/invoice.php

change line 25 & 27 to suit your needs

If you're looking to actually change it so that in the admin panel when you define the custom group it has a different name.. go in this file:

includes/modules/payment/invoice.php

Line 54 reads: $invoice_prefix = "invoice";

change to whatever you'd like. I changed mine to say: $invoice_prefix = "local"; so anyone in the "local" group would be able to choose this option