Zen Cart Logo
Forums / PayPal Express Checkout support / Paypal EC box appearing when not needed.

Paypal EC box appearing when not needed.

Views: 2,291

Results 1 to 7 of 7
24 Mar 2014, 7:32 PM
#1
cherbalist avatar

cherbalist

Inactive

Join Date:
Mar 2014
Location:
St. Louis, MO
Posts:
25
Plugin Contributions:
0

Paypal EC box appearing when not needed.

Hey there everyone! It's CHerbalist in need of more help. I'm running ZC 1.5.1. I've got backup zen cart v1.1, ceon manual card 4.0.1, ckeditor, css js loader, fast n easy checkout, email for 404 v1.2.2, fual slim box v2.1.0a, UPS v15, and the latest install of USPS. As for a template I'm using pure green free as a template. Found here.

The problem is that when you click on the my account tab, which leads to the log in page. The paypal box appears whether or not you have something in your cart. When there is nothing in your cart, then you get the EC box but not the EC button. With an item in your cart the EC box and EC button shows. I want to make the box only appear when you have an item in your check out. Make it nicer and cut back on confusion.

I checked my headers_php.php in includes/modules/pages/login and found this but have no idea how to manipulate it to do what I want.

// Check for PayPal express checkout button suitability:
$paypalec_enabled = (defined('MODULE_PAYMENT_PAYPALWPP_STATUS') && MODULE_PAYMENT_PAYPALWPP_STATUS == 'True');
// Check for express checkout button suitability:
$ec_button_enabled = ($paypalec_enabled && ($_SESSION['cart']->count_contents() > 0 && $_SESSION['cart']->total > 0));
// check if shipping address should be displayed
if (FEC_SHIPPING_ADDRESS == 'true') $shippingAddressCheck = true;
// check if the copybilling checkbox should be checked  

Here's an image of the page with an empty cart.

Here's one of it with a cart that has a product.

The page in question is http://cherylsherbs.c o m/ shop /index.php?main_page=login

Please help guys! Thanks!

25 Mar 2014, 11:33 AM
#2
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Paypal EC box appearing when not needed.

Go to Admin > Modules > Payment > PayPal Express Checkout

set Express Checkout Shortcut Button to OFF

25 Mar 2014, 7:16 PM
#3
cherbalist avatar

cherbalist

Inactive

Join Date:
Mar 2014
Location:
St. Louis, MO
Posts:
25
Plugin Contributions:
0

Re: Paypal EC box appearing when not needed.

frank18:

Go to Admin > Modules > Payment > PayPal Express Checkout

set Express Checkout Shortcut Button to OFF

Thanks for the reply. The only problem is that my boss wants the Checkout Shortcut Button there only when someone has something in their cart, other wise, he wants it to be hidden. Turning the express checkout shortcut button off removes the box in all instances. Thanks!

25 Mar 2014, 7:21 PM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,100
Plugin Contributions:
56

Re: Paypal EC box appearing when not needed.

Can you change to the "classic" template to see if the behavior is the same? I'm "pretty sure" that an out-of-box Zen Cart installation only displays the PayPal Express Checkout button on the shopping cart and login pages if there's something in the cart.

25 Mar 2014, 7:27 PM
#5
cherbalist avatar

cherbalist

Inactive

Join Date:
Mar 2014
Location:
St. Louis, MO
Posts:
25
Plugin Contributions:
0

Re: Paypal EC box appearing when not needed.

lat9:

Can you change to the "classic" template to see if the behavior is the same? I'm "pretty sure" that an out-of-box Zen Cart installation only displays the PayPal Express Checkout button on the shopping cart and login pages if there's something in the cart.

I switched it over and you're correct. It works just fine when in classic.

26 Mar 2014, 3:01 AM
#6
drbyte avatar

drbyte

Sensei

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

Re: Paypal EC box appearing when not needed.

Sounds like a combination of problems caused by using fast-and-easy-checkout and your custom template.
At least that gives you clues of where to look to make the necessary changes!

26 Mar 2014, 6:24 PM
#7
cherbalist avatar

cherbalist

Inactive

Join Date:
Mar 2014
Location:
St. Louis, MO
Posts:
25
Plugin Contributions:
0

Re: Paypal EC box appearing when not needed.

DrByte:

Sounds like a combination of problems caused by using fast-and-easy-checkout and your custom template.
At least that gives you clues of where to look to make the necessary changes!

Thanks! I subbed out the paypal code from the classic template to the one in the puregreenfree template. Worked great!