Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Jul 2006
    Posts
    308
    Plugin Contributions
    0

    Default how to restrict payment modules by shipping address zone?

    zc 1.3.8a

    The payment modules all seem to be restricted according to the billing address zone. I want to restrict it by the shipping address zone. I don't care where the customer is from. I only care where the shipment is going in determining what payment methods I will accept. How do I change this?

  2. #2
    Join Date
    Jun 2007
    Posts
    474
    Plugin Contributions
    2

    Default Re: how to restrict payment modules by shipping address zone

    Did you check out the Shipping modules?

    They have that Zone part at the bottom. So if you set up your zones first you can then go ahead and restrict by zone.

    If you need more info thatn that, come back with more detail on how you need it to work. What areas get what types of shipping, etc.

    -lindasdd

  3. #3
    Join Date
    Jul 2006
    Posts
    308
    Plugin Contributions
    0

    Default Re: how to restrict payment modules by shipping address zone?

    Right, I've pretty much got my shipping methods and zone restrictions ironed out. The only issue is when the billing and shipping addresses are different.

    For example, a customer with a billing address in Alaska wants to ship to California and pay by credit card. I want to allow credit card payments for orders shipping to California, and I don't care where his billing address is. But he isn't allowed to select credit card, because credit card isn't a payment option for Alaska.

    As a reverse example, a customer with a billing address in California wants to ship to Alaska. He is able to checkout and pay by credit card, but I want Alaska shipments to only have the option of a "Request for Quote" payment method I have set up. I don't care where his billing address is.

  4. #4
    Join Date
    Jun 2007
    Posts
    474
    Plugin Contributions
    2

    Default Re: how to restrict payment modules by shipping address zone?

    Hmm...... are you sure about that. My site is set up to restrict based on zone and it works based on shipping address.

    Have you compared your shipping files to the standard Zen files to see if there are any diffs?

    -lindasdd

  5. #5
    Join Date
    Jul 2006
    Posts
    308
    Plugin Contributions
    0

    Default Re: how to restrict payment modules by shipping address zone?

    Ok, something is screwed up with how my cart handles ths zones and payment methods. Every time I start checkout with a given address, I get a different result based on whether I modify the billing address or shipping address during checkout or not, and whether I log off and log on again, etc. It's definitely inconsistent in the sense that some process in having to do with cookies or a change during the checkout process doesn't cause the intended result.

    For example, I just logged on and had a California address selected as my shipping and billing address, and I got one result for payment methods. Then I switched the billing and shipping addresses a couple times, started checkout again, setting both addresses to California again, and I got a different result of payment methods.

    So while before it seemed consistent to be using only the billing address zone in determining payment methods, now it's just plain buggy.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: how to restrict payment modules by shipping address zone?

    Then something's wrong in your files, either your addons or your customizations.
    A clean uncustomized install of the latest version of Zen Cart doesn't exhibit the symptoms you posted; or, at least, I can't find a way to do it.

    As lindasdd suggested earlier, go find out what's broken: http://www.zen-cart.com/wiki/index.p...Obscure_Issues
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Jul 2006
    Posts
    308
    Plugin Contributions
    0

    Default Re: how to restrict payment modules by shipping address zone?

    Does anyone have a store set up that doesn't exhibit these symptoms? I'll create a new install of zc if I have to to test it, but it's been a long time since I've done so, so it will probably take me hours.

    I'm looking specifically for any configuration that has a payment method selection that differs at all based on zone and also allows different billing and shipping addresses. I will go to the last step of checkout a few times to check its behavior in presenting payment methods.

  8. #8
    Join Date
    Jun 2007
    Posts
    474
    Plugin Contributions
    2

    Default Re: how to restrict payment modules by shipping address zone?

    You can see mine, although it is set up to restrict shipping types, not payment types.

    You should really only have to look at a couple files to compare them and sort it out.

    Rather than doing a reinstall, try downloading a free version of Beyond Compare, unzipping a fresh version of the Zen files on your computer and then comparing the fresh version to you site version.

    -lindasdd

  9. #9
    Join Date
    Jul 2006
    Posts
    308
    Plugin Contributions
    0

    Default Re: how to restrict payment modules by shipping address zone?

    Can someone point me to their store so I can test this out? I've confirmed over and over again that what I described is correct for my store. I need to test another store with:

    - multiple shipping zones
    - payment methods restricted by zone (please tell me what zones)

  10. #10
    Join Date
    Jul 2006
    Posts
    308
    Plugin Contributions
    0

    Default Re: how to restrict payment modules by shipping address zone?

    Today I fresh installed a default installation of zc 1.3.9h and tested this issue with no mods nor code edits involved.

    I configured it as follows.

    Zones: California, Florida
    Payment Methods: Check (zone restriction: CA), Charge Card (zone restriction: FL)

    I set up a user with a three alternate addresses: CA, FL, and NY.

    By testing I have confirmed that the default behavior of zc in the following scenarios with the noted results. I returned to the shopping cart page in each instance to begin checkout again and re-select the shipping and billing addresses.


    Billing address CA, Shipping address CA
    Payment method: Check (expected behavior)

    Billing address CA, Shipping address FL
    Payment method: Check (it's basing the restriction on the billing address)

    Billing address CA, Shipping address NY
    Payment method: Check (it's basing the restriction on the billing address)

    Billing address NY, Shipping address NY
    Payment method: None (expected behavior)

    Billing address NY, Shipping address CA
    Payment method: None (it's basing the restriction on the billing address)

    So I have to insist that my original assertion in this thread was correct that zc bases the payment method zone restriction on the billing address only.

    How can I modify this to have it use the shipping address for the payment zone restriction?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v139h Restrict some shipping modules to wholesale users
    By ilmarchez in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 21 May 2015, 05:47 AM
  2. v139h Restrict QTY Discounts To Same Shipping Address
    By sparrowce in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 2
    Last Post: 18 Feb 2015, 12:51 AM
  3. v139h Can I restrict certain shipping modules for different customers
    By dre in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 26 Mar 2013, 09:06 AM
  4. Zone rates & MZMT shipping modules, how to make it work properly?
    By langtu123 in forum Addon Shipping Modules
    Replies: 14
    Last Post: 13 May 2011, 09:47 AM
  5. Customized payment modules based on shipping address?
    By MemooMeM in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 24 Jan 2010, 12:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg