Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2008
    Posts
    3
    Plugin Contributions
    0

    Default how to set a unique type of payment for download product?

    how can i set the payment modules to use linkpoint payment only for the download products and paypal for the other products

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

    Default Re: how to set a unique type of payment for download product?

    You can use the function in the functions_lookups.php and test if there are Downloads in the Products with:
    Code:
    ////
    // check if Product is set to use downloads
    // does not validate download filename
      function zen_has_product_attributes_downloads_status($products_id) {
    So, you can build a function to check the order contents and see if all products are downloads ...

    Then if that is true, disable a payment module by setting the:
    $this->enabled

    to false ...

    When that is false, then the Payment module does not show ...

    This is a simplified method here ... it would need to be much more detailed for actual use ...

    This is not hard to do, it is just time consuming code to write out and test ...

    Hope it points you in the right direction ...
    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!

 

 

Similar Threads

  1. Possible to set unique SKUs for product variants?
    By drs051 in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 15 May 2012, 06:23 PM
  2. v139h Can I set a Unique ID for each product?
    By palpalani in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 9 Feb 2012, 08:31 AM
  3. How can I set up unique shipping rate for each product?
    By ttmb33 in forum Customization from the Admin
    Replies: 2
    Last Post: 27 Jan 2010, 08:32 PM
  4. how to set a unique type of payment for download product
    By don_yo in forum Basic Configuration
    Replies: 1
    Last Post: 4 Mar 2009, 08:22 AM

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