Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 47
  1. #11
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    66,832
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  2. #12
    Join Date
    Jan 2009
    Posts
    2,124
    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
    66,832
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  4. #14
    Join Date
    Jan 2009
    Posts
    2,124
    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
    66,832
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  6. #16
    Join Date
    Jan 2009
    Posts
    2,124
    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
    66,832
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  8. #18
    Join Date
    Jan 2009
    Posts
    2,124
    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
    66,832
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  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. Can't Enable PayPal Express
    By pinksparklegirl in forum PayPal Express Checkout support
    Replies: 2
    Last Post: 21 Aug 2011, 11:10 AM
  2. How to enable Paypal IPN for several zones?
    By cocolala in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 26 Dec 2010, 06:30 AM
  3. Paypal express won't enable
    By Javalin in forum Basic Configuration
    Replies: 3
    Last Post: 2 Sep 2010, 05:14 AM
  4. Add to end of order number ie 1234 - 2010
    By dropbop in forum General Questions
    Replies: 2
    Last Post: 6 Jan 2010, 12:23 AM
  5. Howto 1234 [Next>>] links at bottom of page
    By zoot in forum Customization from the Admin
    Replies: 3
    Last Post: 11 Nov 2006, 12:42 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
  •