Results 1 to 8 of 8
  1. #1
    Join Date
    Dec 2007
    Posts
    6
    Plugin Contributions
    0

    red flag payment by what choose in shipping section

    How can I get payment modules show by what choose customer takes in shipping section? (example. if cod is choosen then only invoice would show. etc.)
    I think that one change should come in: inludes/modules/payment/cod.php
    and line would be 79...
    I don't understand php code... help me!

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

    Default Re: payment by what choose in shipping section

    You might peek at this thread for a bit more info on idenitfying selected shipping and payment modules during checkout:
    http://www.zen-cart.com/forum/showth...pping%27%5D%2A
    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.5]
    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
    Dec 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: payment by what choose in shipping section

    I would need more accurate example, because I don't get it... So if you could help?

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

    Default Re: payment by what choose in shipping section

    The modules are controlled by whether or not the $this->enabled evaluates as true or false (or blank, which evaluates as false also) ...

    The settings:
    Code:
    $_SESSION['payment'] will tell you the payment such as: moneyorder
    
    $_SESSION['shipping']['id'] will come up as: item_item or flat_flat
    
    NOTE: UPS will show the module and type: ups_3DS
    Identify the current modules ...

    Let's say you want Check/Money Order to not show when Item Rate item is used for shipping ...

    In the module:
    /includes/modules/payment/moneyorder.php

    you would see the line:
    $this->enabled = ((MODULE_PAYMENT_MONEYORDER_STATUS == 'True') ? true : false);
    If you were to test for the shipping method selected you can block this:
    PHP Code:
    if ($_SESSION['shipping']['id'] != 'item_item') {
          
    $this->enabled = ((MODULE_PAYMENT_MONEYORDER_STATUS == 'True') ? true false);

    Now, if Item is selected then Check/Money Order will not show ...
    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.5]
    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!

  5. #5
    Join Date
    Dec 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: payment by what choose in shipping section

    Thanks you were very helpful!!!
    Good example...

  6. #6
    Join Date
    Aug 2004
    Posts
    112
    Plugin Contributions
    0

    Default Re: payment by what choose in shipping section

    Thanks Ajeh, I didn't think I could get it to work, however your example made it too easy, thanks again.

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

    Default Re: payment by what choose in shipping section

    You are most welcome ... glad this was of help to 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: v1.5.5]
    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!

  8. #8
    Join Date
    Aug 2004
    Posts
    112
    Plugin Contributions
    0

    Default Re: payment by what choose in shipping section

    Haha, sure m8, will never be able to forget such a great team as the ZC Team! ;)

 

 

Similar Threads

  1. Replies: 0
    Last Post: 13 Dec 2012, 11:36 AM
  2. Can I choose what goes inside Best Sellers
    By dermit in forum General Questions
    Replies: 1
    Last Post: 16 Nov 2010, 07:40 AM
  3. How to make featured products only what i choose?
    By mitbar in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 24 Mar 2010, 07:57 AM
  4. Comments Section on Shipping and Payment pages!
    By autoace in forum Customization from the Admin
    Replies: 1
    Last Post: 21 Aug 2009, 04:23 PM
  5. anyway to choose what is new ?
    By netuser in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 26 Jun 2008, 05:29 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR