Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
try doing a
PHP Code:
session_destroy():
and then re-run the code.
this code work for me
PHP Code:
<?php
/*
* Created on 16/04/2007
*
* Coded by: Ropu
* Globant - Buenos Aires, Argentina - zen_demo2
*/
chdir('./..');
include_once('includes/application_top.php');
print_r($_SESSION['cart']);
print_r($_SESSION['cart']->get_content_type());
?>
add this in the googlechekout/ dir
http://200.69.205.154/~brovagnati/ze...woody_cart.php
ropu
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
try doing a
PHP Code:
session_destroy():
and then re-run the code.
I'm not surre how/where to do this. Should i put at the top of the template file or ??
I deleted all the entries in the sessions table. But still did not solve.
Below is my relevant code in my template file:
PHP Code:
<?php
include('includes/classes/shopping_cart.php');
$cart = $_SESSION['cart'];
echo $cart;
if ( MODULE_PAYMENT_GOOGLECHECKOUT_VIRTUAL_GOODS == 'True' && $cart->get_content_type() != 'physical' ) {
echo '<p class="productGeneral">Blah blah blah.</p><br />';
}
?>
But when
PHP Code:
include('includes/classes/shopping_cart.php');
is located as above the product_info_display page does not fully load.
and I see error in error log as just explained.
Code:
PHP Fatal error: Cannot redeclare class shoppingcart
If I remove the include then the page loads fine but no text displays reporting the product is a download product.
What am I doing wrong? I think I'm going in circles.
Woody
Re: Google Checkout module for Zen Cart (beta)
PHP Code:
<?php
/*
* Created on 16/04/2007
*
* Coded by: Ropu
* Globant - Buenos Aires, Argentina - zen_demo2
*/
chdir('./..');
include_once('includes/application_top.php');
print_r($_SESSION['cart']);
print_r($_SESSION['cart']->get_content_type());
?>
What do I do with the above code?
Quote:
add this in the googlechekout/ dir
OK i downloaded the file and put in googlecheckout directory.
I just tried to chat via GTalk and you were away.I think I'm mucking up this thread with this. Hopefully iniitiate a new thread soon :wink2:
Woody
Re: Google Checkout module for Zen Cart (beta)
How does ZC Orders admin send updates to GC orders status?
Re: Google Checkout module for Zen Cart (beta)
Hi all
im releasing v1.3RC2 of the module
here is the link
http://google-checkout-zencart.googl...rt-v1.3RC2.zip
Date: Mon Apr 16 13:27:15 2007
Changes from v1.3RC1
Added Files:
trunk/googlecheckout/shipping_generator/
trunk/googlecheckout/shipping_generator/README
trunk/googlecheckout/shipping_generator/index.php
trunk/googlecheckout/shipping_generator/multigenerator.php
trunk/googlecheckout/shipping_generator/multishipping_generator.js
trunk/googlecheckout/shipping_generator/multishipping_generator.php
trunk/googlecheckout/shipping_generator/shipping_method_generator.php
Removed Files:
trunk/includes/templates/YOUR_TEMPLATE/templates/tpl_checkout_payment_default.php
Modified Files:
trunk/INSTALLATION
trunk/README
trunk/admin/includes/functions/extra_functions/added_function_for_google_checkout.php
trunk/googlecheckout/gcheckout.php
trunk/googlecheckout/responsehandler.php
trunk/includes/languages/english/modules/payment/googlecheckout.php
trunk/includes/modules/payment/googlecheckout.php
trunk/includes/templates/YOUR_TEMPLATE/templates/tpl_login_default.php
trunk/includes/templates/YOUR_TEMPLATE/templates/tpl_shopping_cart_default.php
Change Log:
04/16/2007 v1.3RC2 (ropu)
- Support for UK merchants
http://code.google.com/apis/checkout...ase_notes.html (apr13)
- Updated Templates to Zencart v1.3.7
- Remove tpl_checkout_payment_default.php
- Docs update
- Minor bug fix
- Added Shipping Generator Tool in the stardard package (Optional)
- Flat rate shipping bug fixed
- Improved tax and shipping restrictions
- Added configurable Continue shopping URL.
- Fix Warning: Invalid argument supplied for foreach() in
/home/public_html/googlecheckout/gcheckout.php on line 390
- Fixed shipping not showing correctly in the orders page
ropu
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
mgraphic
How does ZC Orders admin send updates to GC orders status?
hi mg
GC uses cURL to send xml request to GC servers.
u can find that code in admin/orders.php and /admin/includes/functions/extra_functions/added_function_for_google_checkout.php
ropu
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
ropu
hi mg
GC uses cURL to send xml request to GC servers.
u can find that code in admin/orders.php and /admin/includes/functions/extra_functions/added_function_for_google_checkout.php
ropu
So - The orders page in ZC sends the updates to your Google account, or does Google send requests for updates?
Just wondering - My sandbox account is not being updated of the order process changes.
Re: Google Checkout module for Zen Cart (beta)
in updating from previous versions - including r1.3RC2_beta - do you recommend removing any files first. Or will loading on top of it be okay. Thank,
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
mgraphic
So - The orders page in ZC sends the updates to your Google account, or does Google send requests for updates?
Just wondering - My sandbox account is not being updated of the order process changes.
ZC send google state change notifications
have a look to the README TRACKING USERS AND ORDERS http://google-checkout-zencart.googl...n/trunk/README
there is described how state are changed
also google send notifications to ZC, these are merchant-calculation-callbacks, new-order-notification, risk-information, etc more info here
http://code.google.com/apis/checkout...tification_api
ropu
Re: Google Checkout module for Zen Cart (beta)
Quote:
Originally Posted by
2004g35
in updating from previous versions - including r1.3RC2_beta - do you recommend removing any files first. Or will loading on top of it be okay. Thank,
Overriding files will be ok
but remember to remove and re install the module from the admin UI, because some new configurations are added
ropu