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