Page 5 of 6 FirstFirst ... 3456 LastLast
Results 41 to 50 of 51
  1. #41
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Need to remove yellow Express Checkout button!

    NOTE: you might want to fix that and other issues with Zen Cart v1.3.7.1 and follow the instructions on removing both PayPals ... Install both PayPals ... Remove the one you do not need ... to update your shop ...

    http://www.zen-cart.com/forum/showthread.php?t=69769
    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!]
    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. #42
    Join Date
    Oct 2006
    Posts
    223
    Plugin Contributions
    0

    Default Re: Need to remove yellow Express Checkout button!

    Quote Originally Posted by Ajeh View Post
    ummm ... just curious ... why would you install the May 20th patch when there are new patches than that?
    my bad, I had just finished reading DrByte's post and he mentioned the May 20th patch...but I installed the latest one, June 17 or something like that.

  3. #43
    Join Date
    Oct 2006
    Posts
    223
    Plugin Contributions
    0

    Default Re: Need to remove yellow Express Checkout button!

    Quote Originally Posted by Ajeh View Post
    NOTE: you might want to fix that and other issues with Zen Cart v1.3.7.1 and follow the instructions on removing both PayPals ... Install both PayPals ... Remove the one you do not need ... to update your shop ...

    http://www.zen-cart.com/forum/showthread.php?t=69769
    I wasn't using the Express module at the time I patched, so that should be OK since I installed it (the module) after I had installed the patch. This is what I did:
    1) Downloaded the June 17th patch
    2)Installed the patch
    3)Removed the IPN module, which I was currently using
    4)Installed the IPN module, updated the configuration
    5)Went to my PP account, retrieved the PDT string, entered it to the IPN module and enabled PDT

    The payment-received-but-no-order-in-admin problem continued though, so I un-installed the IPN module and installed the Express module, which is working fine so far.

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

    Default Re: Need to remove yellow Express Checkout button!

    Could you please remove all PayPal ... then install all PayPal ... then remove what you don't want and configure the one you do want ...

    The reason for requesting this ... is ... there are some database updates that affect all modules, and removing all and then re-installing all will apply the fixes. Then removing the unneeded ones leaves your site in a desired state.
    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!]
    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. #45
    Join Date
    Jul 2007
    Posts
    154
    Plugin Contributions
    0

    Default Re: Need to remove yellow Express Checkout button!

    I have Zen Cart v1.3.7 [2007-06-22 17:54:42]

    Using both PayPal options and have nothing against the mandatory PayPal Express button showing up first on the shopping cart page
    EXCEPT for customers outside the shipping zone I specified for PayPal payments (which is Canada and the US only)

    Example: Customer from France can see the PayPal pmt option (the button) despite my setting that I don't allow customers from outside the US and Canada to pay w/ PayPal. I find it very confusing for those customers.

    My restriction works further into the checkout process (PayPal does not appear as a pmt option) but what if they decide to click the PayPal Express button first?

    My site:
    http://www.time-co.com/zencart/index.php?main_page=

    Do I need any of the patches to my ZenCart version?

    How would you suggest I resolve this problem?

  6. #46
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Need to remove yellow Express Checkout button!

    Have you checked with PayPal about only offering the service to certain geographic areas?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  7. #47
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Need to remove yellow Express Checkout button!

    Check with PayPal. If they have a policy against restricting against certain geographic regions, forget the idea.

    If there is no prohibition, then you'll have to write some sort of custom code to determine the customer's location based on their IP address, and then turn off the Express Checkout button based on that information.

    Otherwise, there is no built-in way to determine restriction until the customer has created an account and given you an address.
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #48
    Join Date
    Jul 2007
    Posts
    154
    Plugin Contributions
    0

    Default Re: Need to remove yellow Express Checkout button!

    Quote Originally Posted by DrByte View Post
    Check with PayPal. If they have a policy against restricting against certain geographic regions, forget the idea.

    If there is no prohibition, then you'll have to write some sort of custom code to determine the customer's location based on their IP address, and then turn off the Express Checkout button based on that information.

    Otherwise, there is no built-in way to determine restriction until the customer has created an account and given you an address.
    Even if the customer is already logged in prior to adding items to cart, and his address is known, the zone restriction does not kick in until they proceed with checkout - the PayPal Express button on the Shopping Cart page seems not to be affected by zone restrictions.

    If there is not another way for this to work I'm going to edit the paypal button to say: "US and Canada Only" which will meet PayPal requirements and yet make "out of zone" customers not to go there.

    Should the button not show up on the Shopping Cart page if logged in customer is out of the zone which accepts PayPal?

  9. #49
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Need to remove yellow Express Checkout button!

    You could try the following edit to the /include/modules/payment/paypal/tpl_ec_button.php file:

    After this line,
    Code:
    $paypalec_enabled = (defined('MODULE_PAYMENT_PAYPALWPP_STATUS') && MODULE_PAYMENT_PAYPALWPP_STATUS == 'True');
    Insert the following new lines:
    Code:
    if ($paypalec_enabled) {
      // check if logged-in customer's address is in an acceptable zone
      if ((int)MODULE_PAYMENT_PAYPALWPP_ZONE > 0 && isset($_SESSION['customer_id']) && (int)$_SESSION['customer_id'] > 0) {
        $custCountryCheck = (isset($order)) ? $order->billing['country']['id'] : $_SESSION['customer_country_id'];
        $custZoneCheck = (isset($order)) ? $order->billing['zone_id'] : $_SESSION['customer_zone_id'];
        $check_flag = false;
        $sql = "SELECT zone_id
                FROM " . TABLE_ZONES_TO_GEO_ZONES . "
                WHERE geo_zone_id = :zoneId
                AND zone_country_id = :countryId
                ORDER BY zone_id";
        $sql = $db->bindVars($sql, ':zoneId', (int)MODULE_PAYMENT_PAYPALWPP_ZONE, 'integer');
        $sql = $db->bindVars($sql, ':countryId', $custCountryCheck, 'integer');
        $result = $db->Execute($sql);
        while (!$result->EOF) {
          if ($result->fields['zone_id'] < 1 || $result->fields['zone_id'] == $custZoneCheck) {
            $check_flag = true;
            break;
          }
          $result->MoveNext();
        }
        if (!$check_flag) {
          $paypalec_enabled = false;
        }
      }
    
      // PayPal module cannot be used for purchase > $10,000 USD
      if ( ($_SESSION['cart']->total * $currencies->get_value('USD')) > 10000) {
        $paypalec_enabled = false;
      }
    }
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #50
    Join Date
    Jul 2007
    Posts
    154
    Plugin Contributions
    0

    Default Re: Need to remove yellow Express Checkout button!

    Thank you!
    Mine was:
    $ec_enabled = (defined('MODULE_PAYMENT_PAYPALWPP_STATUS') && MODULE_PAYMENT_PAYPALWPP_STATUS == 'True');

    so I changed the $paypalec_enabled in the code you gave me to $ec_enabled

    Just making sure it was the right thing to do. Please let me know if it was not.

    This did the trick! Very grateful for your help!

 

 
Page 5 of 6 FirstFirst ... 3456 LastLast

Similar Threads

  1. Remove express checkout button
    By maxter in forum PayPal Express Checkout support
    Replies: 4
    Last Post: 8 Sep 2011, 12:03 PM
  2. Cart not showing on paypal express Check after click on express checkout button
    By magic.solve in forum PayPal Express Checkout support
    Replies: 5
    Last Post: 2 Aug 2011, 06:58 PM
  3. Paypal express checkout - how to remove the button?
    By tparvaiz in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 18 Jul 2011, 11:13 PM
  4. There is no PayPal Express Checkout button next to Checkout button!!! Please help!
    By atomic_s in forum PayPal Express Checkout support
    Replies: 10
    Last Post: 7 Oct 2008, 08:00 PM
  5. How to get rid of the yellow "Checkout with PayPal" button?
    By douglerner in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 7 Apr 2007, 03:15 PM

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