Guest Posted August 26, 2008 Share Posted August 26, 2008 how do I alter this to make the google checkout button be displayed in the payment options. I can get the button to show with this code <?php // ** GOOGLE CHECKOUT ** // Checks if the Google Checkout payment module has been enabled and if so // includes gcheckout.php to add the Checkout button to the page if (defined('MODULE_PAYMENT_GOOGLECHECKOUT_STATUS') && MODULE_PAYMENT_GOOGLECHECKOUT_STATUS == 'True') { include_once('googlecheckout/gcheckout.php'); } // ** END GOOGLE CHECKOUT ** ?> but it errors when i click on it and says must select payment method, the only palce i can out it is at the top right corner and it works fine. the code below is cutting out of the payment page, but when i remark it out or change it, i get errors all over the place. <?php // ** GOOGLE CHECKOUT ** // Skips Google checkout as a payment option on the payments page since that option // is provided in the checkout page $selection = $payment_modules->selection(); for($i=0, $n=sizeof($selection); $i<$n; $i++) { if($selection[$i]['id'] == 'googlecheckout') { array_splice($selection, $i, 1); break; } } // ** END GOOGLE CHECKOUT ** if (sizeof($selection) > 0) { ?> any genius php guru out there that can help me out a little on this one? Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.