Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2006
    Posts
    75
    Plugin Contributions
    0

    red flag Trying to get the PayPal Express Checkout button to show in my sidecart

    Trying to get the PayPal Express Checkout button to show in my sidecart:

    I tried this "moving of the PayPal logic" into my side cart and have had no luck... I suck at code.

    Code:
    if ($_SESSION['cart']->count_contents() > 0) {
        $content .= '<hr />';
        $content .= '<div class="cartBoxTotal">' . $currencies->format($_SESSION['cart']->show_total()) . '</div>';
        $content .= '<br class="clearBoth" />';
        $content .= '<a href="' . zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_CHECKOUT, BUTTON_CHECKOUT_ALT) . '</a><br /> Or Use <br />';
        $content .= '<br class="clearBoth" />';
    I THINK I NEED THE PAYPAL BUTTON CODE HERE?????
      }
    I figured I could just copy and paste the code from the full page shopping cart page (tpl_shopping_cart_default.php - where the PayPal Express Checkout button does show up)

    I've tried to figure this out for two days... any help is greatly appreciated.

  2. #2
    Join Date
    Oct 2006
    Posts
    75
    Plugin Contributions
    0

    Default Re: Trying to get the PayPal Express Checkout button to show in my sidecart

    Dr. Byte,
    Can you tell me if I'm even editing the correct file in my hopes of getting the PayPal Express Checkout button to appear in my sidecart, under the stores standard checkout button?

    I'm having no luck so far...

  3. #3
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Trying to get the PayPal Express Checkout button to show in my sidecart

    I assume by "sidecart" you mean the shopping-cart-contents sidebox?
    If so, then yes, that's the concept.
    However, since sideboxes are not regular templates, you'd have to completely rewrite a copy of the template for the paypal button logic to stuff it all into the $content variable in order for it to show.
    .

    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.

  4. #4
    Join Date
    Oct 2006
    Posts
    75
    Plugin Contributions
    0

    Default Re: Trying to get the PayPal Express Checkout button to show in my sidecart

    Thanks for your response. I don't know how to write the code for that.

    Is this the first time this has been requested? I'm surprised this has not been tackled...especially when there are quite a few cart sidebox add-ons that have been written and modified.

 

 

Similar Threads

  1. 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
  2. How do I get the PayPal Express Checkout button to show?
    By majormiles in forum PayPal Express Checkout support
    Replies: 6
    Last Post: 1 Jul 2009, 08:47 AM
  3. Can't get PP Express Checkout button to show in some cases
    By Zinfandel in forum PayPal Express Checkout support
    Replies: 3
    Last Post: 19 Mar 2008, 07:36 AM
  4. replace the checkout button with paypal express
    By justjoshenu in forum PayPal Express Checkout support
    Replies: 0
    Last Post: 26 Oct 2007, 10:22 AM
  5. Paypal Express checkout don't show button after installing Google Checkout
    By jgarabot in forum PayPal Express Checkout support
    Replies: 9
    Last Post: 2 Apr 2007, 07:59 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR