Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Built-in Shipping and Payment Modules / how to set a unique type of payment for download product?

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

Locked

Started by don_yo on 4 Mar 2009, 6:44 AM · Views: 1,047

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
4 Mar 2009, 6:44 AM
#1
don_yo avatar

don_yo

New Zenner

Join Date:
Nov 2008
Posts:
3
Plugin Contributions:
0

Post #1 by don_yo

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

4 Mar 2009, 7:24 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #2 by kobra

DUPLICATE POSTING

Posting the same issue in multiple threads soes not speed up getting an answer and does cause confusion and is frowned upon

Other thread http://www.zen-cart.com/forum/showthread.php?t=121712

Zen-Venom Get Bitten

4 Mar 2009, 9:18 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #3 by ajeh

You can use the function in the functions_lookups.php and test if there are Downloads in the Products with:

////
// 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 ... :smile:

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!