So now that this modification is tested working, here is a description of what needs be done.
But first please note this disclaimer: this change may violate Google Checkout policies, so before implementing this in your store you must receive explicit permission in writing from Google to incorporate this.
OK - here goes:
1. Add line 28 in includes\languages\english\modules\payment\googlecheckout.php:
PHP Code:
define('GOOGLECHECKOUT_STRING_WARN_CUSTOMER_NOT_LOGGED_IN', 'To enable the Google Checkout button please log in');
2. Add line 91 in includes\languages\english\modules\payment\gcheckout.php:
PHP Code:
if (!isset($_SESSION['customer_id']) || $_SESSION['customer_id'] == '') {
$Gcart->SetButtonVariant(false);
$Gwarnings[] = GOOGLECHECKOUT_STRING_WARN_CUSTOMER_NOT_LOGGED_IN
}
The main remaining problem right now is the text underneath the grayed out button ("disabled") that says "Not available for these items" when in fact the reason for being disabled is that the customer has not logged in yet.
Also, I find it very confusing for the customer to see two competing buttons below the shopping cart:
1. "Go to Checkout"
2. "Or login to use Google Checkout"
These are two incompatible checkout schemes which will very likely to confuse customers.
Thus, it will take me a while before introducing GCO to my operational site...
Bookmarks