I would love to be able to add the Amazon Checkout Button to the cart info box.
The Amazon Checkout Button shows up on the shopping_cart.php with the following code:
<?php
require_once("checkout_by_amazon/checkout_by_amazon_util_dao.php");
$utilDao = new UtilDAO();
$utilDao->printButton();
} else {
?>
How can I add it to the shopping_cart info box below?
if ($cart->count_contents() > 0)
{
if (preg_match("/checkout/", $PHP_SELF))
{$info_box_contents[] = array('align' => 'left','text' => '<a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '"><u>View Cart</u></a>');}
else
{$info_box_contents[] = array('align' => 'left','text' => '<a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '"><u>View Cart & Shipping Estimates</u></a><br><br><center><a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '"><img src="http://www.yogicchai.com/catalog/yogicchai/includes/languages/english/images/buttons/button_checkout.gif" border="0" alt="Checkout" title="Checkout"></a></center><br>
<center><a href="https://www.yogicchai.com/catalog/yogicchai/shopping_cart.php?action=express_checkout&return_to=shoppping_cart.php"><img src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" border=0></a></center><br>
');}
}
else
{$info_box_contents[] = array('align' => 'left','text' => '<u>Your Basket Is Empty</u>
');}
new ShoppingCartBox($info_box_contents);
?>
Help is greatly appreciated!
Ricardo
Latest News: (loading..)
Amazon Checkout Button in Cart Info Box?
Started by ricardodacosta, Nov 21 2009, 19:09
1 reply to this topic














