My dilemma is that I currently have a functional shopping cart that is only coded for either Paypal or Google Checkout, not both.
Here is a demo of the shopping cart set up for Paypal checkout:
The javascript code used in the demo can be found here:
Looking at the javascript code, you can see that it provides options for Paypal OR Google checkout, shown as:
var NextId=1,Custom="Custom",GoogleCheckout="GoogleCheckout",PayPal="PayPal",Email="Email",
By selecting the appropriate option within the "/head" section, you can choose your preferred checkout method:
<script src='http://shopppingcart.googlecode.com/files/simplecart.js' type='text/javascript'></script>
<script type='text/javascript'>
simpleCart.email = "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4c29342d213c20290c2b212d2520622f2321">[email protected]</a>";
simpleCart.checkoutTo = PayPal;
simpleCart.currency = USD;
simpleCart.cartHeaders = ["thumb_image" , "Quantity_input" , "Total", "remove" ];
</script>
However, the issue arises when trying to enable both checkout options simultaneously. Currently, there is only one checkout button that leads to the javascript code:
<a class='simpleCart_checkout' href='javascript:;'>Checkout</a>
Any suggestions or ideas on how to configure the shopping cart to accept BOTH Paypal and Google Checkout would be greatly appreciated.
P.S. My expertise lies in HTML, CSS, and jQuery, with limited knowledge in javascript.