Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2007
    Location
    The space between a blink & a tear.
    Posts
    18
    Plugin Contributions
    0

    help question Payment based upon shipping option

    Good Morning Everyone.

    I have looked but cannot seem to find an answer for this.

    Our site is set up and almost ready to launch. Last thing we want to do is set it up so that available payment options are asigned by the chosen shipping method.

    Example:
    - Store Pick up - No CC form to fill out.
    Someone comes to the site, and chooses store pickup, they are shown a screen saying what methods we accept, and can choose one, but do not fill out CC details.

    - Local Delivery - No CC form to fill out.
    Someone comes to the site, and chooses local delivery, they are shown a screen saying what methods we accept, and can choose one, but do not fill out CC details.

    - Shipping - CC form to fill out.
    Someone comes to the site, and chooses shipping, they are shown a screen saying what methods we accept, and can choose one, then must fill out CC details if they chose that method.

    Basically, the payment options shown, are designated by the shipping method.

    Thanks for any assistance.

    Myles

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Payment based upon shipping option

    You would need to customize your payment modules based on the setting of the shipping ...

    You can use:
    $_SESSION['shipping']['id']

    For example, to customize the Credit Card cc payment module:
    /includes/modules/payment/cc.php

    you can add below this line:
    Code:
        $this->enabled = ((MODULE_PAYMENT_CC_STATUS == 'True') ? true : false);
    To read:
    Code:
        $this->enabled = ((MODULE_PAYMENT_CC_STATUS == 'True') ? true : false);
    
        if ($_SESSION['shipping']['id'] == 'storepickup_storepickup') {
          $this->enabled = false;
        }
    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!

  3. #3
    Join Date
    Jul 2007
    Location
    The space between a blink & a tear.
    Posts
    18
    Plugin Contributions
    0

    Default Re: Payment based upon shipping option

    You Rock.

    Modified three processors to make it just right for what we need, and all done in 15 minutes.

    Should have posted sooner as I spent a couple hours looking for the answer, but never would have come up with that.

    Thanks!

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Payment based upon shipping option

    Glad that this worked for you ... remember us when you are rich and famous ...
    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!

 

 

Similar Threads

  1. v150 Display one payment option based on shipping
    By coopco in forum General Questions
    Replies: 9
    Last Post: 28 Jun 2013, 02:43 AM
  2. Replies: 41
    Last Post: 27 Feb 2011, 01:01 AM
  3. Shipping based upon Category
    By Stumpy74 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 20 Jan 2010, 05:52 PM
  4. Shipping based upon quantity
    By jtjohnston in forum Built-in Shipping and Payment Modules
    Replies: 17
    Last Post: 22 Feb 2008, 08:40 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