Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / PayPal Express Checkout support / Need to remove yellow Express Checkout button!

Need to remove yellow Express Checkout button!

Locked

Started by kbalona on 7 Jul 2007, 4:46 PM · Views: 11,549

Results 41 to 51 of 51
This thread is locked. New replies are disabled.
11 Jul 2007, 12:25 AM
#41
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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!

11 Jul 2007, 12:55 AM
#42
kbalona avatar

kbalona

Zen Follower

Join Date:
Oct 2006
Posts:
213
Plugin Contributions:
0

Re: Need to remove yellow Express Checkout button!

Ajeh:

ummm ... just curious ... why would you install the May 20th patch when there are new patches than that? :unsure:
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.

11 Jul 2007, 1:00 AM
#43
kbalona avatar

kbalona

Zen Follower

Join Date:
Oct 2006
Posts:
213
Plugin Contributions:
0

Re: Need to remove yellow Express Checkout button!

Ajeh:

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.

11 Jul 2007, 1:40 AM
#44
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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 Oct 2007, 2:45 AM
#45
all4coffee avatar

all4coffee

Zen Follower

Join Date:
Jul 2007
Posts:
154
Plugin Contributions:
0

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?:unsure:

5 Oct 2007, 2:58 AM
#46
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,739
Plugin Contributions:
0

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.

5 Oct 2007, 4:48 AM
#47
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

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.

5 Oct 2007, 6:51 AM
#48
all4coffee avatar

all4coffee

Zen Follower

Join Date:
Jul 2007
Posts:
154
Plugin Contributions:
0

Re: Need to remove yellow Express Checkout button!

DrByte:

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?

5 Oct 2007, 7:58 AM
#49
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

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, ```
$paypalec_enabled = (defined('MODULE_PAYMENT_PAYPALWPP_STATUS') && MODULE_PAYMENT_PAYPALWPP_STATUS == 'True');


Insert the following new lines:

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.

6 Oct 2007, 6:41 AM
#50
all4coffee avatar

all4coffee

Zen Follower

Join Date:
Jul 2007
Posts:
154
Plugin Contributions:
0

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!

6 Oct 2007, 6:48 AM
#51
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Need to remove yellow Express Checkout button!

Glad it worked for you.

These updates will be part of v1.3.8

.
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.