PrestaShop Forum

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum

Jump to content

 

Loosing Attributes at Google Checkout. HELP???

7 replies to this topic
#1
goodsdealer

    PrestaShop Apprentice

  • Members
  • PipPip
  • 44 posts
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
goodsdealer

    PrestaShop Apprentice

  • Members
  • PipPip
  • 44 posts
got $20 on paypal...

#3
goodsdealer

    PrestaShop Apprentice

  • Members
  • PipPip
  • 44 posts
wow..nobody knows how to fix this??

#4
tomerg3

    PrestaShop Superstar

  • US Moderators
  • 5754 posts
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 ;)
Posted Image
For the latest updates discount coupons and new module information follow us on Twitter , Facebook ,and tips on our Blog
Please do not send general questions via PM, that is what the forum is for...

#5
goodsdealer

    PrestaShop Apprentice

  • Members
  • PipPip
  • 44 posts
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
tomerg3

    PrestaShop Superstar

  • US Moderators
  • 5754 posts

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

Posted Image
For the latest updates discount coupons and new module information follow us on Twitter , Facebook ,and tips on our Blog
Please do not send general questions via PM, that is what the forum is for...

#7
goodsdealer

    PrestaShop Apprentice

  • Members
  • PipPip
  • 44 posts
testin..let ya know if all good..

#8
goodsdealer

    PrestaShop Apprentice

  • Members
  • PipPip
  • 44 posts
solved..thanks..paypal your way ...