Andrew Yuen Posted February 12, 2007 Share Posted February 12, 2007 After re-installing and searching through the forums I am stumped with an issue I am having with this contribution. I have installed it with no problem on a clean osCommerce site, but having trouble on the highly modified site I have running. A ) I am getting no errors messages. B ) I am getting a broken googlecheckout picture (icon) on both the login page and the shopping cart page. C ) HTML code reveals: src="MODULE_PAYMENT_GOOGLECHECKOUT_MODEbuttons/checkout.gif?merchant_id= MODULE_PAYMENT_GOOGLECHECKOUT_MERCHANTID&w=180&h=46&style=white&variant=text&loc=en_US"height="46" width="180"> For some reason MODULE_PAYMENT_GOOGLECHECKOUT_MODE and MODULE_PAYMENT_GOOGLECHECKOUT_MERCHANTID are not being pulled from the config table in the database. D ) Manually editing the gcheckout.php fixes the image but when the button is clicked it does not bring you to the google checkout site. I would appreciate any help or suggestions. Thanks so much. Andrew Quote Andrew Yuen osCommerce, Community Team Link to comment Share on other sites More sharing options...
Guest Posted February 25, 2007 Share Posted February 25, 2007 Hi, I just got the google checkout button working (level1) and i did have to make some changes to the code. In the /googlecheckout/classes/gOscCommunicator.php about line 75 there are some options that are setup, including urls. The urls need to be updated with /checkout/.... $options = array( 'GCheckout_currency' => 'USD', 'GCheckout_xmlSchema' => 'http://checkout.google.com/schema/2', 'GCheckout_button' => "http://".$GCheckout_subdomain.".google.com/checkout/buttons/checkout.gif", 'GCheckout_button_w' => '180', 'GCheckout_button_h' => '46', 'GCheckout_button_loc' => 'en_US', 'GCheckout_button_style' => 'trans', 'GCheckout_base_url' => "https://".$GCheckout_subdomain.".google.com/checkout/cws/v2/Merchant/".$GCheckout_merchant_id, 'GCheckout_url' => "https://".$GCheckout_subdomain.".google.com/checkout/cws/v2/Merchant/".$GCheckout_merchant_id. "/checkout", 'GCheckout_diagnose_url' => "https://".$GCheckout_subdomain.".google.com/checkout/cws/v2/Merchant/".$GCheckout_merchant_id. "/checkout/diagnose", 'GCheckout_request_url' => "https://".$GCheckout_subdomain.".google.com/checkout/cws/v2/Merchant/".$GCheckout_merchant_id. "/request", 'GCheckout_request_diagnose_url' => "https://".$GCheckout_subdomain.".google.com/checkout/cws/v2/Merchant/".$GCheckout_merchant_id. "/request/diagnose", 'GCheckout_or_use_text' => GOOGLECHECKOUT_OR_USE ); mm After re-installing and searching through the forums I am stumped with an issue I am having with this contribution. I have installed it with no problem on a clean osCommerce site, but having trouble on the highly modified site I have running. A ) I am getting no errors messages. B ) I am getting a broken googlecheckout picture (icon) on both the login page and the shopping cart page. C ) HTML code reveals: src="MODULE_PAYMENT_GOOGLECHECKOUT_MODEbuttons/checkout.gif?merchant_id= MODULE_PAYMENT_GOOGLECHECKOUT_MERCHANTID&w=180&h=46&style=white&variant=text&loc=en_US"height="46" width="180"> For some reason MODULE_PAYMENT_GOOGLECHECKOUT_MODE and MODULE_PAYMENT_GOOGLECHECKOUT_MERCHANTID are not being pulled from the config table in the database. D ) Manually editing the gcheckout.php fixes the image but when the button is clicked it does not bring you to the google checkout site. I would appreciate any help or suggestions. Thanks so much. Andrew 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.