I would like to restrict the use of paypal for certain categories because the things im selling are against paypal policy.
I tried following the steps on on this website but with no luck.
Your help would be much appreciated.
Brent
I would like to restrict the use of paypal for certain categories because the things im selling are against paypal policy.
I tried following the steps on on this website but with no luck.
Your help would be much appreciated.
Brent
Are the Categories that you want to restrict from using PayPal the master_categories_id of the Products that are in them?
Which PayPal are you using?
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!
Bump... I have the same question. Any help would be great! Thanks!
Brent
rroutdoors.com
You can check the contents from a category if the categories_id is used as the master_categories_id for the Products with this code to turn off the module if 1 or more Products are in the cart from categories_id 10 and 15:
Code:if (!IS_ADMIN_FLAG) { global $cart; $chk_cat = 0; $chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','10'); $chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','15'); if ($chk_cat > 0) { $this->enabled = false; } }
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!
Well I got it working. I was editing the wrong file... paypal.php when I needed to edit paypalwpp.php.
Thanks for your help. I found this thread (which you contributed too) and it helped as well.
Thanks for the update that you have this working now and for posting the other thread that helped you out ...
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