Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Oct 2007
    Posts
    132
    Plugin Contributions
    0

    Default Payment based on shipping method?

    Hi,

    Is there any setting that would allow changing the payment method based on the shipping method?

    We have pick-up or delivery & cash or CC (offline processing)

    We would like to show only cash (possibly with a modifed message) if the order is for pickup. There is no need for the customer to enter CC info online if they are coming into the store.

    I have not looked at the code yet where I'm sure it could be done, but would like to know if there is some setting before I go there.

    Thanks,
    Jeff

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

    Default Re: Payment based on shipping method?

    You could add a condition to the Payment methods by controlling the $this->enabled and testing with the value of:
    $_SESSION['shipping']['id']
    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
    Oct 2007
    Posts
    132
    Plugin Contributions
    0

    Default Re: Payment based on shipping method?

    Good timing. I was just working on this when you replied.

    The only place I could find to add this was tpl_checkout_payment_default.php.

    This is what I came up with and it seems to work. Is there a better place to put this?
    PHP Code:
      $selection $payment_modules->selection();
        
    //jsg
        
    if ($_SESSION['shipping']['id'] == 'storepickup_storepickup') {  
            
    $selection '';
            
    $selection[0]['id'] = 'cod';
            
    $selection[0]['module'] = 'Please pay when picking up order.';
        } 
    Thanks,
    Jeff
    Last edited by Jeff G; 23 Nov 2008 at 06:50 AM.

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

    Default Re: Payment based on shipping method?

    You could customize the Payment modules you are using to control when they show or do not show with something similar ...
    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. v151 Apply a discount based on Payment method
    By pewe in forum General Questions
    Replies: 18
    Last Post: 5 Feb 2015, 06:58 PM
  2. Payment method based on Master Password?
    By wirefram in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 17 Aug 2011, 07:49 PM
  3. shipping method based on payment method?
    By psr racing in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 27 Apr 2011, 01:25 PM
  4. Payment method based on shipping type?
    By celticwebsolutions in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 12 Dec 2010, 11:25 AM
  5. Shipping based on payment method
    By Prorad in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 30 Oct 2009, 01:43 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