Latest Version (1.3RC2): http://google-checkout-zencart.googl...rt-v1.3RC2.zip
Demo Server: http://demo.globant.com/~brovagnati/zen_demo2/
woody, i use this code to detect virtual goods
hope this helpsPHP Code:
<?php
if(MODULE_PAYMENT_GOOGLECHECKOUT_VIRTUAL_GOODS == 'True' && $cart->get_content_type() != 'physical' ) {
echo '<div class="warning">' . MODULE_PAYMENT_GOOGLECHECKOUT_TEXT_VIRTUAL . '</div>';
}
?>
ropu
Latest Version (1.3RC2): http://google-checkout-zencart.googl...rt-v1.3RC2.zip
Demo Server: http://demo.globant.com/~brovagnati/zen_demo2/
Latest Version (1.3RC2): http://google-checkout-zencart.googl...rt-v1.3RC2.zip
Demo Server: http://demo.globant.com/~brovagnati/zen_demo2/
woody, i dont have Paypal IPN, y u can mail me screenshoots would be nice
i've also added that if the user is a prexistance one, (he bought logged in Zencart), the User/pass line wont be shown, as his pass is not changed. (v1.3RC2 NOT beta)
Regarding the user creation, is inevitable to create one. This users are stored in google_checkout table for cross reference GC buyer id- zencart buyer id.
The password is the buyer number id. but created just the first time. if he logs in, and changed, that one will be preserved.
i he tries to create a user with his GC mail, he must prompt for a forgotten password... any other idea to get by passed this??
ropu
Latest Version (1.3RC2): http://google-checkout-zencart.googl...rt-v1.3RC2.zip
Demo Server: http://demo.globant.com/~brovagnati/zen_demo2/
please post the step-by-step to reproduce it, and i'll test it
also tell me if u can do it in http://demo.globant.com/~brovagnati/zen_demo2/
thx
ropu
Latest Version (1.3RC2): http://google-checkout-zencart.googl...rt-v1.3RC2.zip
Demo Server: http://demo.globant.com/~brovagnati/zen_demo2/
Thanks ropu,
Just tried that and this portion of the code
causes the page to not fully load.PHP Code:
$cart->get_content_type() != 'physical'
Error in web server error log is:
Uncertain how to interpret "Call to a member function on a non-object"Code:PHP Fatal error: Call to a member function get_content_type() on a non-object in /home/myaccount/public_html/myshop/includes/templates/mytemplate/templates/tpl_product_info_display.php on line 130
Something to do with passing a parameter correctly and/or data type?
In /includes/classes/shopping_cart.php I see
Any ideas?PHP Code:
class shoppingCart extends base {
.
.
.
function get_content_type($gv_only = 'false') {
global $db;
.
.
.
if ($gv_only == 'true') {
return $gift_voucher;
} else {
return $this->content_type;
}
}
Thanks,
Woody
Latest Version (1.3RC2): http://google-checkout-zencart.googl...rt-v1.3RC2.zip
Demo Server: http://demo.globant.com/~brovagnati/zen_demo2/
woody, the email format is a google issue, i've mail them with ur last suggestions.
yes, u are right bout the shipping_genaration readme, but know that i wrote it in 5 mins after finishing on friday, i'll update it.
regarding the wish list, i PM dr Byte asking if we can have a forum just like pay pal, where inside it we can have different thread (as u suggested me), one could be that wish list.
im waiting for a positive answer from him
ropu
Latest Version (1.3RC2): http://google-checkout-zencart.googl...rt-v1.3RC2.zip
Demo Server: http://demo.globant.com/~brovagnati/zen_demo2/
getting closer...I think.
I used this code
Then I visited an eBook product page. The page rendered as normal but the expected warning text did not display.PHP Code:
<?php
$cart = $_SESSION['cart'];
if ( MODULE_PAYMENT_GOOGLECHECKOUT_VIRTUAL_GOODS == 'True' && $cart->get_content_type() != 'physical' ) {
echo '<div class="warning">' . MODULE_PAYMENT_GOOGLECHECKOUT_TEXT_VIRTUAL . '</div>';
}
?>
So after:
$cart = $_SESSION['cart'];
For debugging I added:
echo $cart;
And I observed:
Any ideas?Code:Object id #4
Thanks,
Woody
Thank you ropu and everyone for their diligence in developing GCO for ZC. I gave up testing around page 30, but have been tuning in to these forums ever since.
since ZC as of 1.3.7 has Paypal Express Checkout code in the core files, I wanted to suggest that in the next version of GCO be compatible with the existing PPE (have both PPE and GCO working at the same time). As it stands now, there is merging of some template files, to get both working....which isn't a big deal (as a computer novice it will take me a few days to do correctly or copy chain_man's code (thanks!) )....but I don't think I can stay on-top of merging files, with every ZC/paypal express update.
I have learned a great deal about ZC, mods and editing code in these last few months, but think when it comes to accepting payments, this should be along with paypal part of the core/base files, and not a mod left to a few hard working people....but fully supported by the ZC developers and included in each new ZC release.
Bookmarks