how can i set the payment modules to use linkpoint payment only for the download products and paypal for the other products
how can i set the payment modules to use linkpoint payment only for the download products and paypal for the other products
You can use the function in the functions_lookups.php and test if there are Downloads in the Products with:
So, you can build a function to check the order contents and see if all products are downloads ...Code://// // check if Product is set to use downloads // does not validate download filename function zen_has_product_attributes_downloads_status($products_id) {
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!
Bookmarks