Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
kebeid
Is anyone getting this error in the admin side:
Warning: Invalid argument supplied for foreach() in /admin/includes/functions/extra_functions/added_function_for_google_checkout.php on line 267
saying somethings wrong with the foreach() - it looks good to me.
As you know, that particular line contains:
Code:
foreach($googlepayment->mc_shipping_methods[$select_array[$i]['code']]['domestic_types'] as $method => $method_name) {
I'd suggest checking the mc_shipping_methods array (starting at line 66 in original GCO 1.0.5) in includes/modules/payment/googlecheckout.php to make sure they're all valid arrays. If you modified them (such as to add/remove shipping methods), it's possible you may have missed a closing parenthesis, a comma or something small like that.
Shawn
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
Jefflam
[FONT=Arial]Hi everyone,[/FONT]
[FONT=Arial]I could not get google checkout payment module 1.0.4 option in my 1.3.7 zencart"s admin-modules-payments. I did follow all the instructions but failed again and again.[/FONT]
[FONT=Arial]Please give me a hand/hint. Thanks alot.[/FONT]
Give US a hint -
How far did you get? What are you seeing? Or not seeing?
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
BBG
As you know, that particular line contains:
Code:
foreach($googlepayment->mc_shipping_methods[$select_array[$i]['code']]['domestic_types'] as $method => $method_name) {
I'd suggest checking the
mc_shipping_methods array (starting at line 66 in original GCO 1.0.5) in
includes/modules/payment/googlecheckout.php to make sure they're all valid arrays. If you modified them (such as to add/remove shipping methods), it's possible you may have missed a closing parenthesis, a comma or something small like that.
Shawn
But I didn't modify them I just got it from GCO 1.0.5 and installed. Is that b/c I don't have MZMT in the array, could that be the source of the problem?
Pete
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
kebeid
But I didn't modify them I just got it from GCO 1.0.5 and installed. Is that b/c I don't have MZMT in the array, could that be the source of the problem?
Pete
It's possible it could be related to specific shipping options you've chosen. I haven't run into your particular error, however, I've only tried to get GCO to work with USPS shipping. So, I guess my next suggestion would be to experiment by removing all the other shipping methods except for Flat Rate (or some shipping method not MZMT) and see if your foreach error goes away. If you haven't done so already, try searching the forum for "foreach", I believe someone else mentioned a foreach error a while back.
I'm kind of swinging in the dark here, so perhaps someone more knowledgeable or someone who has run into this error before can chime in.
Good luck,
Shawn
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
Jefflam
[FONT=Arial]Hi everyone,[/FONT]
[FONT=Arial]I could not get google checkout payment module 1.0.4 option in my 1.3.7 zencart"s admin-modules-payments. I did follow all the instructions but failed again and again.[/FONT]
[FONT=Arial]Please give me a hand/hint. Thanks alot.[/FONT]
this issue was solved with the BBG's help. thanks alot to BBG.
Re: Google Checkout module for Zen Cart (beta)
Shawn, thanks for your suggestions.
I'm noticing that I get this particular error only when I edit the GCO payment mod in the admin. So I commented that out, but I'm getting the same error from gcheckout on the cart side. I'm also noticing some errors from google when I go into my account so I'll look at that.
Re: Google Checkout module for Zen Cart (beta)
One suggested change:
Zencart stores the order total in two places - the orders_total table, and in the orders table in the field order_total. The responsehandler.php file updates the orders_total table just fine, but misses the second place. This make some third-party code (such as super orders) that relies on the order_total field to break.
The fix is in responsehandler.php:
Find the section that looks like:
Code:
'ip_address' => $data[$root]['shopping-cart']['merchant-private-data']['ip-address'],
'cc_type' => '',
'cc_owner' => '',
'cc_number' => '',
'cc_expires' => '',
'date_purchased' => 'now()',
'orders_status' => 1,
'currency' => "USD",
'currency_value' => 1);
Just after the 'currency' => "USD", line, add the following line:
Code:
'order_total' => $data[$root]['order-total'],
Then check that your change didn't break anything by going to http://<yoursitehere>/googlecheckout/responsehandler.php, like in the google checkout instructions.
Re: Google Checkout module for Zen Cart (beta)
Hi everyone,
ZC 137 + GCO 105
2 problems
(1) Google checkout icon does not appear on the shopping cart page, but shown on login page. after finished login page, ZC checkout to step 2 and there is no payment options there.
(2) PP express checkout added, GCO disappeared
thank you for any hints and points.
jeff
http://fastener-outlet.com
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
Jefflam
Hi everyone,
ZC 137 + GCO 105
2 problems
(1) Google checkout icon does not appear on the shopping cart page, but shown on login page. after finished login page, ZC checkout to step 2 and there is no payment options there.
(2) PP express checkout added, GCO disappeared
thank you for any hints and points.
jeff
http://fastener-outlet.com
Have you merged the PayPal Express code with the GCO code on the three template files that GCO uses?
See posts 490, 491.
Check that sort order is different for PayPal Express and GCO in Payment Module setup.
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
Jefflam
ZC checkout to step 2 and there is no payment options there.
And after following chain_man's recommends, keep in mind that both Google Checkout and the new PayPal Express Checkout are not standard Zen Cart checkout procedures.
So you will not see either of the two Express Checkout options listed on the "Step 2 - Select Payment Method" page.
But the step 2 page will continue to display standard PayPal IPN payment method (unless you disabled) which completely integrates into Zen Cart's standard checkout process.
- Woody