Results 1 to 6 of 6

Hybrid View

  1. #1

    help question Customized payment modules based on shipping address?

    Fellow Zencarters,

    I have been searching the forums but could not yet find the answer I am looking for. I need your help.

    We are planning to sell from two different countries. For tax reasons, if a customer's payment is *received* at country A, then the shipment must be send from country A (sounds stupid to me but it's the law). We are building a single, multi-language zencart website, but I could not be sure how to implement such a mechanism.

    I am really hoping there is a way to customize the payment options screen, which directs the payment to the correct country's gateway, depending on the shipping address (not the registered address). Any suggestions will be very much appreciated!

    Thanks in advance :)

  2. #2
    Join Date
    Jan 2010
    Posts
    2
    Plugin Contributions
    0

    Default Re: Customized payment modules based on shipping address?

    hello:

    for different types of shipping i use the module flatclone2, if you need more that 1, you can edit the module and change the variables (change the 2 for the 3, for example) and the title.

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,268
    Plugin Contributions
    3

    Default Re: Customized payment modules based on shipping address?

    What payment modules are you using?
    20 years a Zencart User

  4. #4

    Default Re: Customized payment modules based on shipping address?

    Quote Originally Posted by schoolboy View Post
    What payment modules are you using?
    Not using any payment modules at the moment. I will not be able to start using one until I solve this problem

  5. #5
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,268
    Plugin Contributions
    3

    Default Re: Customized payment modules based on shipping address?

    Are you selling ONLY in the countries that the two stores serve?

    I mean - let's say your countries are FRANCE and SPAIN

    Customers in FRANCE will pay using FRENCH payment modules.

    Customers in SPAIN will pay using SPANISH payment modules.

    But what about customers in GERMANY? ...

    ... and Portugal
    ... and Holland
    ... and Italy
    ... and...... (etc)

    Or will you ONLY be selling into FRANCE and only selling into SPAIN?
    20 years a Zencart User

  6. #6
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,268
    Plugin Contributions
    3

    Default Re: Customized payment modules based on shipping address?

    If you are only selling to customers in the countries specified (and NOT to people in any other country) then you need:

    1. a payment module for people in country 1. (eg: France)

    2. a payment module for people in country 2. (eg: Spain)

    Then, when people checkout and show that they are in FRANCE, only payment module 1 is offered.

    When people checkout and show that they are in SPAIN, only payment module 2 is offered.

    The selection of payment module is then controlled by a CONDITIONAL statement in the code...

    eg:
    if COUNTRY ID = (France Country ID) then ENABLE module 1 only.
    if COUNTRY ID = (Spain Country ID) then ENABLE module 2 only.

    Your challenge comes in where you might decide to use (for example) PayPal...

    You will have to see if it is possible to create a CLONE of the paypal module, so you have 2 unique paypal modules that offer identical functionality, but one processes payments for FRENCH customers and the other one processes payments for SPANISH customers.

    I have CLONED the check/moneyorder module to behave in this way, but I don't know if it is possible to CLONE some of the more sophisticated payment gateway modules.

    You will need a better brain than mine to tell you... but my logic here is probably appropriate...
    20 years a Zencart User

 

 

Similar Threads

  1. v150 Any way to show/hide payment modules dynamically based on order total?
    By Limitless in forum Addon Payment Modules
    Replies: 2
    Last Post: 27 Sep 2012, 03:22 PM
  2. Customized shipping modules not working after upgrade
    By BlackOrchidCouture in forum Built-in Shipping and Payment Modules
    Replies: 27
    Last Post: 30 May 2011, 04:59 PM
  3. how to restrict payment modules by shipping address zone?
    By fakeDecoy in forum Built-in Shipping and Payment Modules
    Replies: 12
    Last Post: 10 Mar 2011, 08:14 PM
  4. Changing shipping modules based on weight of the order?
    By tracyfloyd in forum Built-in Shipping and Payment Modules
    Replies: 17
    Last Post: 14 Sep 2006, 06:01 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