Re: Google Checkout module for Zen Cart (beta)
alan_powerbrixx, nice call!
Going a step further, it would seem that an even better way to fix this problem would be to modify the code in GoogleCheckout and change it to require_once instead of require. This would fix the problem and not require any core file edits. However, when I look at gcheckout.php, it appears to already be a require_once function. responsehandler has require, but I don't see why responsehandler would be called on the shopping cart page, so this shouldn't be an issue. Strange...
Re: Google Checkout module for Zen Cart (beta)
It looks to be a matter of the require_once coming before the require, so both are executed. If you look up require_once in the php on-line manual, and read the thread of replies posted to that page, there is a post clarifying the sequence: require followed by require_once will include the file the first time only, but require_once followed by require will include the file both times. That's why the require in the shipping estimator would need to be fixed in some way, instead of the one in the googlecheckout mod.
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
alan_powerbrixx
It looks to be a matter of the require_once coming before the require, so both are executed. If you look up require_once in the php on-line manual, and read the thread of replies posted to that page, there is a post clarifying the sequence: require followed by require_once will include the file the first time only, but require_once followed by require will include the file both times. That's why the require in the shipping estimator would need to be fixed in some way, instead of the one in the googlecheckout mod.
The solution to the inline shipping estimator is located here:
http://www.zen-cart.com/forum/showpo...6&postcount=29
Re: Google Checkout module for Zen Cart (beta)
I finally solved the memory limit problem I had during installation of the module. (See earlier post http://www.zen-cart.com/forum/showpo...postcount=2651) It literally was a memory limit error in the table_block.php (specifically during the table_block() function within that file).
We are running PHP 5.2.6, but the memory limit has been set to 8Mb (apparently by my host support). I don't have access to change the setting at that level. But I was able to override the limit using the ini_set() function in php, which I placed at the beginning of the table_block() fuction in the admin/includes/classes/table_block.php file:
ini_set('memory_limit', '16M');
I thought I'd pass this along in case someone else could use the ini_set() function to override the memory_limit during the execution of a php script, or any of a long list of php.ini directives listed in the php on-line manual. The scope of the function is limited to the execution of the one script. Afterwards, the setting reverts to whatever it was before, if I understand correctly.
So now I can finish testing and (hopefully) upgrade to 1.3.8a. Finally, after months of waiting for a solution that I thought was a version-related conflict between 1.3.8a and googlecheckout mod.
:blush:
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
sean046
I'd like to know if this is possible too - it will just NOT accept my postage module.
My solution at the moment is to dump it, and just go with the Nochex merchant account.
Add this as a send out payment request option for those that wish to pay through google checkout.
There are a lot of questions about this in this thread, as the search brings them up, but keeps going to page one rather than the post, but there do not seem to be any answers showing up in the search.
Shame it looked OK.
Re: Google Checkout module for Zen Cart (beta)
I HAVE INSTALLED GOOGLE CHECKOUT (1.4.7 AND ZEN VERSION 1.38A)
I COPIED ALL THE FILES OVER - BUT GET THE FOLLOWING ERROR UNDER MODULES / PAYMENTS IN THE ADMIN PANEL:
Fatal error: Cannot redeclare class googlecheckout in /home/mycellzf/public_html/includes/modules/payment/googlecheckout.php on line 308
CAN SOMEONE PLEASE HELP?
WEBSITE LINK: HTTP://WWW.MYCELLZ4LESS.COM
Re: Google Checkout module for Zen Cart (beta)
:smile: Did you change the name of the folder in '\includes\templates' to your template name??? This will definitely screw things up if you didn't. :smile:
Quote:
Originally Posted by
cellz4less
I HAVE INSTALLED GOOGLE CHECKOUT (1.4.7 AND ZEN VERSION 1.38A)
I COPIED ALL THE FILES OVER - BUT GET THE FOLLOWING ERROR UNDER MODULES / PAYMENTS IN THE ADMIN PANEL:
Fatal error: Cannot redeclare class googlecheckout in /home/mycellzf/public_html/includes/modules/payment/googlecheckout.php on line 308
CAN SOMEONE PLEASE HELP?
WEBSITE LINK:
HTTP://WWW.MYCELLZ4LESS.COM
Re: Google Checkout module for Zen Cart (beta)
Admin and inventory issue with GCO.
I tried to go back and find info on this, but the posts are so intertwined that I can't make heads or tails out of it. I'm afraid I'll screw it up.
The orders for GCO are not subtracting from inventory.
I've read about htaccess and not understanding that fully. I set it to true in the payment module, entered keys for both regular and sandbox, click create and ... nothing. What's it supposed to do? How can I check that it did what it's supposed to do.
Another question. How did you all deal with the double checkout buttons? One for Zen Cart and one for GCO seems a bit confusing for customers.
Re: Google Checkout module for Zen Cart (beta)
Has anyone gotten GCO to work with Flat Rate and Free Options as shipping methods?
Right now GCO is letting people select free shipping even if they haven't qualified for it, and it's not automatically selecting free shipping for those that do.
Something is not being calculated here and sent to GC. Any ideas?
Re: Google Checkout module for Zen Cart (beta)
I haven't tried Flat Rate/Free shipping, but I use table rate just fine with Google Checkout. You can use table rate to set up free shipping over a certain amount and flat rate below that amount.