Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2014
    Location
    St. Louis, MO
    Posts
    25
    Plugin Contributions
    0

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

    PHP Code:
    // 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() > && $_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!

  2. #2
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Paypal EC box appearing when not needed.

    Go to Admin > Modules > Payment > PayPal Express Checkout

    set Express Checkout Shortcut Button to OFF

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

    Default Re: Paypal EC box appearing when not needed.

    Quote Originally Posted by frank18 View Post
    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!

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

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

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

    Default Re: Paypal EC box appearing when not needed.

    Quote Originally Posted by lat9 View Post
    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.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

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

    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.

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

    Default Re: Paypal EC box appearing when not needed.

    Quote Originally Posted by DrByte View Post
    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!

 

 

Similar Threads

  1. Shipping not appearing in paypal ipn when i choose list item option
    By thnght in forum PayPal Express Checkout support
    Replies: 2
    Last Post: 15 Feb 2011, 05:33 PM
  2. 1ea.- appearing in shopping cart side box when I add a product
    By jamesdavid in forum General Questions
    Replies: 7
    Last Post: 2 Mar 2010, 06:15 PM
  3. Text Box not appearing
    By stevehare in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 15 Sep 2008, 02:16 PM
  4. Orders not appearing in PayPal
    By Aris135 in forum PayPal Express Checkout support
    Replies: 8
    Last Post: 26 Oct 2007, 07:29 AM
  5. Manufactures Box - Scroll bar not appearing...
    By Peace Freak in forum Basic Configuration
    Replies: 5
    Last Post: 14 May 2006, 02:47 AM

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