PrestaShop Forums: Loosing Attributes at Google Checkout. HELP??? - PrestaShop Forums

Jump to content


Welcome to the PrestaShop Forum! We hope you'll share your comments and suggestions with us. We ask that you please post in English to the main sections of the PrestaShop Forum. If you want to write in another language, please post in the corresponding PrestaShop Community section below.

Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

NYC

Vous parlez français ? par ici !


Loosing Attributes at Google Checkout. HELP???


Loosing Attributes at Google Checkout. HELP???

#1 goodsdealer

    PrestaShop Apprentice

  • 31 Jan 2010
  • Members
  • PipPip
  • 44 posts

Posted 09 February 2010 - 11:37 AM

Hi, i had no luck with this, but needs to fix. Here is question in other post http://www.prestasho...ot_showing_help

I am looking for someone to get this fixed..your offers?

#2

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 09 February 2010 - 05:54 PM

got $20 on paypal...

#3

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 10 February 2010 - 02:32 AM

wow..nobody knows how to fix this??

#4

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 10 February 2010 - 04:59 AM

I haven't tested this, but it should work just fine...

In /modules/gcheckout/gcheckout.php
Change line # 131
From
$googleCart->AddItem(new GoogleItem(utf8_decode($product['name']), utf8_decode($product['description_short']), intval($product['quantity']), number_format(Tools::convertPrice($product['price_wt'], $currency), 2, '.', '')));

To{if isset($product.attributes)} - {$product.attributes}{/if}
$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, '.', '')));


Let me know how it goes....
If it works fine, feel free to send a donation on my site ;)

#5

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 11 February 2010 - 08:48 PM

it gives me error code in the back office when i hit payments tab...tells me invalid code line 131 ... Hmm... weird..how about other ppl, why they dont have this problem?

#6

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 11 February 2010 - 09:12 PM

From 1265917699:

it gives me error code in the back office when i hit payments tab...tells me invalid code line 131 ... Hmm... weird..how about other ppl, why they dont have this problem?


Sorry, I had an extra ) in there

Here is the correct code.


$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, '.', '')));


#7

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 11 February 2010 - 10:31 PM

testin..let ya know if all good..

#8

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 14 February 2010 - 10:33 PM

solved..thanks..paypal your way ...





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users