Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2007
    Posts
    124
    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
    64,726
    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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  3. #3
    Join Date
    Oct 2007
    Posts
    124
    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
    64,726
    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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

 

 

Similar Threads

  1. Customizing Checkout Success Page Note based on Payment Method?
    By dcmall in forum Templates, Stylesheets, Page Layout
    Replies: 22
    Last Post: 18 Aug 2009, 07:06 PM
  2. Only show payment method when UPS shipping method chosen?
    By helen610 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 28 Aug 2008, 03:04 AM
  3. Set flat rates based on UPS shipping method?
    By 3hounddesign in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 23 Oct 2007, 10:34 AM
  4. Shipping based on zone, weight and method
    By ernmeg in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 7 May 2007, 04:56 PM

Bookmarks

Posting Permissions

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