Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2008
    Posts
    42
    Plugin Contributions
    0

    Default want to restrict paypal and paypal express from speicific products

    I was following this thread (http://www.zen-cart.com/showthread.p...products/page3) and a am a little lost

    I want to disable products
    ID:682
    ID:706

    the Master category is 86

    from what I am reading I only see the entire category being excempted not a speciific product.

    is it even possible or should I create a New category with only those items?

    any assistance will be appreciated

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

    Default Re: want to restrict paypal and paypal express from speicific products

    You could customize it with the code in RED:
    Code:
        $this->enabled = (MODULE_PAYMENT_PAYPALWPP_STATUS == 'True');
    if (!IS_ADMIN_FLAG) {
      $chk_product = 0;
      $chk_product += $_SESSION['cart']->in_cart_check('products_id', 682);
      $chk_product += $_SESSION['cart']->in_cart_check('products_id', 706);
      if ($chk_product > 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!

  3. #3
    Join Date
    Sep 2008
    Posts
    42
    Plugin Contributions
    0

    Default Re: want to restrict paypal and paypal express from speicific products

    I edited the includes/modules/payment/paypaldp.php

    that did the trick!

    The paypal express logo still shows but when you click on the paypal logo to make payment it send you to an ERROR 505 page not found

    thanks !!

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

    Default Re: want to restrict paypal and paypal express from speicific products

    You should get no errors ...

    On that file the code in RED goes below the line:
    Code:
        $this->enabled = (MODULE_PAYMENT_PAYPALDP_STATUS == 'True');
    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
    Sep 2008
    Posts
    42
    Plugin Contributions
    0

    Default Re: want to restrict paypal and paypal express from speicific products

    I am aware of where the code goes

    the paypal express logo will not disappear, the user clicks on the paypal logo for express it send to a Error 505 http page

    here is a copy/paste
    PHP Code:
    $this->enabled = (MODULE_PAYMENT_PAYPALWPP_STATUS == 'True');
    if (!
    IS_ADMIN_FLAG) {
      
    $chk_product 0;
      
    $chk_product += $_SESSION['cart']->in_cart_check('products_id'682);
      
    $chk_product += $_SESSION['cart']->in_cart_check('products_id'706);
      if (
    $chk_product 0) {
        
    $this->enabled false;
      }

    Last edited by letsmod; 3 May 2012 at 01:04 AM.

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

    Default Re: want to restrict paypal and paypal express from speicific products

    If you mean on the shopping_cart page ... then you will need to customize your shopping cart template using your templates and overrides to determine when to hide the button ...
    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. Change from PayPal Standard to PayPal Express
    By Forum5 in forum PayPal Express Checkout support
    Replies: 1
    Last Post: 14 Apr 2011, 06:52 AM
  2. Changing from Paypal IPN to Paypal Express
    By nigelt74 in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 27 Apr 2010, 01:16 AM
  3. How to switch from Paypal Website Standards to Paypal Express?
    By mlbacher in forum PayPal Express Checkout support
    Replies: 2
    Last Post: 25 Sep 2009, 06:39 PM
  4. Change from Paypal Express to Paypal Standard
    By Bikerdave in forum PayPal Express Checkout support
    Replies: 1
    Last Post: 13 Jul 2008, 04:01 AM
  5. I'm using PayPal Express and PayPal IPN, should I remove PayPal IPN?
    By tj1 in forum PayPal Express Checkout support
    Replies: 3
    Last Post: 3 Nov 2007, 05:20 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