richard330 Posted February 10, 2010 Share Posted February 10, 2010 Hi I am having an issue with googlecheckout and the quantity it is trying to processwhen I place an order in my cart all looks fine, when I choose paypal everything is ok, but when I go to googlecheckout the quantity is wrong.From what I can work out, googlecheckout is using the quantity of how many attributes a product has..for eg. I sell a drill bit that is available in 12 different sizes, I chose one in the cart, but when you get to google checkout you have a quantity of 12 to pay forHELP!!!RichardSORRY I SHOULD HAVE PUT THIS IN third party modules!! Link to comment Share on other sites More sharing options...
rocky Posted February 11, 2010 Share Posted February 11, 2010 Topic movedActually, I think this forum is more appropriate, since Google Checkout is a module that comes with Prestashop, not a third-party module. Link to comment Share on other sites More sharing options...
richard330 Posted February 11, 2010 Author Share Posted February 11, 2010 Oh thank you.......anyone any ideas what might be the problem?? Link to comment Share on other sites More sharing options...
rylersbud Posted March 2, 2010 Share Posted March 2, 2010 We are getting the same type of error when we use paypal checkout everything is good when I use google it use quantities in stock instead of the number selected. this is not a good thing.www.mechanictoolsonline.com/index.php Link to comment Share on other sites More sharing options...
rylersbud Posted March 5, 2010 Share Posted March 5, 2010 Ok I think I fixed the trouble in gcheckout.php I changed $googleCart->AddItem(new GoogleItem(utf8_decode($product['name'].($product['attributes']?' - '.$product['attributes']:'')), utf8_decode($product['description_short']), intval($product['quantity']), number_format(Tools::convertPrice($product['price_wt'], $currency), 2, '.', ''))); to $googleCart->AddItem(new GoogleItem(utf8_decode($product['name'].($product['attributes']?' - '.$product['attributes']:'')), utf8_decode($product['description_short']), intval($product['cart_quantity']), number_format(Tools::convertPrice($product['price_wt'], $currency), 2, '.', ''))); When I went to classes I found the 'cart_quantity' instead of quantity this seems to fix the issue I was having so if any of the moderators will look at it and let me know for sure it would be appreciatedthis was in the getproduct functionRylersbudwww.mechanictoolsonline.com/indexphp going live soon Link to comment Share on other sites More sharing options...
watchdog Posted March 18, 2010 Share Posted March 18, 2010 Ok I think I fixed the trouble in gcheckout.php I changed $googleCart->AddItem(new GoogleItem(utf8_decode($product['name'].($product['attributes']?' - '.$product['attributes']:'')), utf8_decode($product['description_short']), intval($product['quantity']), number_format(Tools::convertPrice($product['price_wt'], $currency), 2, '.', ''))); to $googleCart->AddItem(new GoogleItem(utf8_decode($product['name'].($product['attributes']?' - '.$product['attributes']:'')), utf8_decode($product['description_short']), intval($product['cart_quantity']), number_format(Tools::convertPrice($product['price_wt'], $currency), 2, '.', ''))); When I went to classes I found the 'cart_quantity' instead of quantity this seems to fix the issue I was having so if any of the moderators will look at it and let me know for sure it would be appreciatedthis was in the getproduct functionRylersbudwww.mechanictoolsonline.com/indexphp going live soon I can verify that this solution works. I was having the same issue. Actually, with only "quantity" in the code, I'm really surprised that more folks have not had this issue. Can we get this included in the next update?Thanks for the solution! Link to comment Share on other sites More sharing options...
rocky Posted March 18, 2010 Share Posted March 18, 2010 I just checked SVN and this bug hasn't been fixed. You should report it as a bug if it hasn't already been reported. Link to comment Share on other sites More sharing options...
Xiao Posted March 30, 2010 Share Posted March 30, 2010 I tried the method rylersbud mentioned but it cam back with an errorany fixes for this, or a 3rd party google checkout which works? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now