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

    Default The Elusive and Misaligned Paypal Button

    Hey guys! It's CHerbalist again! I have another problem with my current layout, but lets get the formalities over with. 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.

    My problem has to do with a Paypal Express Checkout button on my site's "My Account" page, when not logged into an account. On my co-workers computer, when he goes to the site, and to the "My Account" page when not logged in, hes greeted with this.



    The Paypal button is off center. Now what is even more surprising to me, is the fact that in all my time. I haven't seen this button on this page! On his computer he gets the button, but off center. On his phone, he gets it, perfectly aligned. On my computer, and phone. The button just isn't there. My computer shows this.



    I tested it on my computer in chrome, IE, and Firefox. On his it was just IE. I'm really at a loss at this point. I need to get the button on the page and to keep it centered. Any ideas would be great. I can provide any assistance you guys may need. Thanks!

  2. #2
    Join Date
    Jan 2014
    Location
    Ontario, Canada
    Posts
    252
    Plugin Contributions
    3

    Default Re: The Elusive and Misaligned Paypal Button

    Hello :)

    It's easier for us to help if you describe your issue and post a link to the page in question...

    Otherwise you can use firefox and it's element inspector tool. right click on your site, select inspect element (Q)
    select element with mouse (square box with arrow icon)
    click on area that is in question... you will see where to find the information and the css it has...

    Hope that helps point you in the right direction.

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

    Default Re: The Elusive and Misaligned Paypal Button


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

    Default Re: The Elusive and Misaligned Paypal Button

    Get rid of the sidebars, they just take up (distracting) space when someone's trying to register/login. Create a file named /includes/modules/pages/login/header_php_disable_sidebars.php that contains:
    Code:
    <?php
    $flag_disable_right = true;
    $flag_disable_left = true;
    That little bit of code will disable the right and left sidebars only for the login page (you can put the same code module in other page directories to effect the same result).

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

    Default Re: The Elusive and Misaligned Paypal Button

    The button appears to be only there if something is 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!]
    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!

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

    Default Re: The Elusive and Misaligned Paypal Button

    Quote Originally Posted by lat9 View Post
    Get rid of the sidebars, they just take up (distracting) space when someone's trying to register/login. Create a file named /includes/modules/pages/login/header_php_disable_sidebars.php that contains:
    Code:
    <?php
    $flag_disable_right = true;
    $flag_disable_left = true;
    That little bit of code will disable the right and left sidebars only for the login page (you can put the same code module in other page directories to effect the same result).
    I created the file and stuck it on the server. Not only did it give the page some room to work with, it fixed the misalignment problem.

    Quote Originally Posted by Ajeh View Post
    The button appears to be only there if something is in the cart ...
    You're absolutely right, I'm surprised neither of us noticed this before. I wonder, is there a way to make that box disappear when a customer has nothing in their cart? I see no use for it on the page if all they want to do is create an account.

    Thanks guys! You're amazing!

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

    Default Re: The Elusive and Misaligned Paypal Button

    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 
    I've found this in my header_php.php file for my login page. I'm going to tinker around with it so that the module only shows if there are actual items in the cart. Wish me luck! Gotta remember to make backups (;

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

    Default Re: The Elusive and Misaligned Paypal Button

    Well, I'm once again at a loss. How would I edit
    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 
    so that Paypal Express checkout button only appears when there are items in the cart. Much like it is for
    PHP Code:
    $ec_button_enabled = ($paypalec_enabled && ($_SESSION['cart']->count_contents() > && $_SESSION['cart']->total 0)); 

 

 

Similar Threads

  1. v151 How do I replace the add-to-cart button with a PayPal *Donate* button?
    By picandnix in forum Addon Payment Modules
    Replies: 7
    Last Post: 29 Apr 2014, 02:52 PM
  2. Replies: 0
    Last Post: 15 Aug 2010, 10:06 AM
  3. PayPal Express Button Image -how do I get it to move to the right side, not the left?
    By Mike_Dean in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Oct 2009, 04:46 AM
  4. Easy or elusive, moving box up on page
    By krow in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Aug 2006, 06:57 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