Forums / PayPal Express Checkout support / 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

Locked

Started by jgraphics on 12 Dec 2008, 8:00 PM · Views: 2,371

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
12 Dec 2008, 8:00 PM
#1
jgraphics avatar

jgraphics

New Zenner

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

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.

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.
20 Dec 2008, 7:46 PM
#2
jgraphics avatar

jgraphics

New Zenner

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

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

20 Dec 2008, 8:48 PM
#3
drbyte avatar

drbyte

Sensei

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

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.

21 Dec 2008, 5:50 AM
#4
jgraphics avatar

jgraphics

New Zenner

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

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.