Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 47
  1. #11
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Enable PayPal but Only when Product ID 1234 is in cart?

    Are you having an issue of seeing PayPal in the checkout or on the shopping cart?

    This only works in the checkout not the shopping cart ...
    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!

  2. #12
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Enable PayPal but Only when Product ID 1234 is in cart?

    Quote Originally Posted by Ajeh View Post
    Are you having an issue of seeing PayPal in the checkout or on the shopping cart?

    This only works in the checkout not the shopping cart ...
    It's PayPal Express but the issue is on both the login page (where the PPE button appears) and on the order confirmation page where the PP radio button appears. So, it's as though the code is not doing anything at all.

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

    Default Re: Enable PayPal but Only when Product ID 1234 is in cart?

    Are you trying to make PayPal work when products_id 1395 is the ONLY product in the cart? Or, when this is one of several Products in the cart?
    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!

  4. #14
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Enable PayPal but Only when Product ID 1234 is in cart?

    Quote Originally Posted by Ajeh View Post
    Are you trying to make PayPal work when products_id 1395 is the ONLY product in the cart? Or, when this is one of several Products in the cart?
    Ideally, when it's the only product in cart. So, if any other product was in the cart, PayPal would not be an option.

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

    Default Re: Enable PayPal but Only when Product ID 1234 is in cart?

    Aha! a clue ...

    Try this code instead so it checks against the total quantity of Products in the cart to ensure they are all products_id 1395 ...
    Code:
    if (!IS_ADMIN_FLAG) {
      // disable, (even when admin has it switched on):
      $this->enabled = false;
      if ($_SESSION['cart']->in_cart_check('products_id','1395') > 0 && $_SESSION['cart']->count_contents() == $_SESSION['cart']->in_cart_check('products_id','1395')) {
        $this->enabled = 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!

  6. #16
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Enable PayPal but Only when Product ID 1234 is in cart?

    Hi Linda,

    Getting there. It works on main_page=checkout as it takes away the PayPal radio buttonh for all products except 1395. It' s not working on main_page=shopping_cart or main_page=login though. These still give the PayPal Express yellow button. Is there a simple way to apply the same logic to these pages?

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

    Default Re: Enable PayPal but Only when Product ID 1234 is in cart?

    Customize the shopping cart template using your templates and overrides with similar code to hide the button based on a similar check ...
    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!

  8. #18
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Enable PayPal but Only when Product ID 1234 is in cart?

    Quote Originally Posted by Ajeh View Post
    Customize the shopping cart template using your templates and overrides with similar code to hide the button based on a similar check ...
    Thanks Linda. I'll get a look at that later on but thank you for the coding as it's really useful to me.

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

    Default Re: Enable PayPal but Only when Product ID 1234 is in cart?

    Thanks for the update ... let us know the final results on this ...
    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!

  10. #20

    Default Re: Enable PayPal but Only when Product ID 1234 is in cart?

    Quote Originally Posted by RodG View Post
    Please follow any and all suggestions provided by Ajeh

    Ajeh on the other hand is the real expert in this type of modification and her advice and suggestions usually produce something fully functional :)
    Thanks for the suggestion, I have been following this thread because I have exactly the same problem ... or rather I need to do exactly the same ...

    I hope Ajeh can help us...

    Thanks and regards!

 

 
Page 2 of 5 FirstFirst 1234 ... LastLast

Similar Threads

  1. disable flat rate shipping for paypal only (but enable for googlecheckout)
    By btman in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 14 Jul 2009, 05:51 AM
  2. When I enable Featured products, only one product is displayed.
    By creativearc in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 6 May 2008, 01:30 AM
  3. Product info shifts left when mouse over nav buttons, but only in IE !
    By bigbadbob in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 1 Mar 2008, 08:32 AM
  4. Show quantity in cart only when the product is already in shopping cart
    By e81ny in forum Templates, Stylesheets, Page Layout
    Replies: 15
    Last Post: 8 Sep 2007, 03:34 PM

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