Advance software forum
May 18, 2012, 09:11:37 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Google checkout button missing  (Read 1032 times)
0 Members and 1 Guest are viewing this topic.
arvolund
Newbie
*
Offline Offline

Posts: 2


View Profile
« on: June 17, 2008, 04:36:17 AM »

I noticed recently that the button image is not showing up on the checkout page. I am getting the little red x and the alt text and if you click on the link everything seems to work just no image showing up. I am pretty sure that I have not changed anything so if anyone could maybe shed some light on the problem that would be great.

Thanks
Logged
Alex
Administrator
Full Member
*****
Offline Offline

Posts: 128


View Profile
« Reply #1 on: June 17, 2008, 07:07:50 AM »

Hello arvolund,

Yes, we already know that such problem appeared recently. Please open a /googlecheckout/classes/gCart.php file
and find the following function:

Code:
function output($xml_data, $GCheckout_button,$GCheckout_button_w, $GCheckout_button_h, $GCheckout_button_loc, $GCheckout_button_style)
{

and replace the
Code:
<?php echo $merchant_id;?>
with this:
Code:
<?php echo $this->_merchant_id;?>

This will fix the button.

P.S. Google recently have added a merchant id check in the button generation, so we need to post him the true one.

Best,
Alex
Logged
arvolund
Newbie
*
Offline Offline

Posts: 2


View Profile
« Reply #2 on: June 17, 2008, 07:51:49 AM »

Alex

Thanks for the quick response. That fixed the problem

Richard
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 3.1.1 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!