[Skip to main content](#vessel-content)

#   google checkout why isn't the product info display

##

- **[wrworkman](/forum/user/5017-wrworkman "View wrworkman's Profile")**
- [![wrworkman's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5017-wrworkman "View wrworkman's Profile") Topic Author
- [ Offline](/forum/user/5017-wrworkman)

Less More

- Posts: 24
- Thank you received: 0
-
-

14 years 11 months ago [\#33510](#33510) by [wrworkman](/forum/user/5017-wrworkman "View wrworkman's Profile")  *[google checkout why isn't the product info display](/forum/4-how-to/33510-google-checkout-why-isnt-the-product-info-display#33510 "Why isn't the product and order information showing when the information is transferred from my shop to google checkout? All I get is the total price with an order number.")* was created by *[wrworkman](/forum/user/5017-wrworkman "View wrworkman's Profile")*

Why isn't the product and order information showing when the information is transferred from my shop to google checkout? All I get is the total price with an order number.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMzNTEwLWdvb2dsZS1jaGVja291dC13aHktaXNuLXQtdGhlLXByb2R1Y3QtaW5mby1kaXNwbGF5P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

14 years 11 months ago [\#33538](#33538) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: google checkout why isn't the product info display](/forum/4-how-to/33510-google-checkout-why-isnt-the-product-info-display#33538 "Why isn't the product and order information showing when the information is transferred from my shop to google checkout? All I get is the total price with an order number.")*

That's because it is not supported by the plugin for now. Here is more information about that:
[ www.hikashop.com/en/support/forum/4-how-...uct-names.html#26619](http://www.hikashop.com/en/support/forum/4-how-to/26619-google-checkout-issue-missing-product-names.html#26619)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMzNTEwLWdvb2dsZS1jaGVja291dC13aHktaXNuLXQtdGhlLXByb2R1Y3QtaW5mby1kaXNwbGF5P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[wrworkman](/forum/user/5017-wrworkman "View wrworkman's Profile")**
- [![wrworkman's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5017-wrworkman "View wrworkman's Profile") Topic Author
- [ Offline](/forum/user/5017-wrworkman)

Less More

- Posts: 24
- Thank you received: 0
-
-

14 years 11 months ago [\#33837](#33837) by [wrworkman](/forum/user/5017-wrworkman "View wrworkman's Profile")  Replied by *[wrworkman](/forum/user/5017-wrworkman "View wrworkman's Profile")* on topic *[Re: google checkout why isn't the product info display](/forum/4-how-to/33510-google-checkout-why-isnt-the-product-info-display#33837 "Why isn't the product and order information showing when the information is transferred from my shop to google checkout? All I get is the total price with an order number.")*

I see that this user found a solution with this code change in plugins/hikashoppayment/googlecheckout.php:

$data = '&lt;'.'?xml version="1.0" encoding="UTF-8"?'.'&gt;'."\n";
$data .= '&lt;checkout-shopping-cart xmlns="[ checkout.google.com/schema/2](http://checkout.google.com/schema/2)"&gt;&lt;shopping-cart&gt;&lt;items&gt;';

foreach($order-&gt;cart-&gt;products as $product){

$data .= '&lt;item&gt;&lt;item-name&gt;Order #'.$order-&gt;order_id.' - '.$product-&gt;order_product_name.'&lt;/item-name&gt;&lt;item-description&gt;&lt;/item-description&gt;&lt;unit-price currency="'.$currency-&gt;currency_code.'"&gt;'.$product-&gt;order_product_price.'&lt;/unit-
price&gt;&lt;quantity&gt;'.$product-&gt;order_product_quantity.'&lt;/quantity&gt;&lt;/item&gt;';

}
$data .= '&lt;item&gt;&lt;item-name&gt;Order #'.$order-&gt;order_id.' - Shipping&lt;/item-name&gt;&lt;item-description&gt;&lt;/item-description&gt;&lt;unit-price currency="'.$currency-&gt;currency_code.'"&gt;7.95&lt;/unit-price&gt;&lt;quantity&gt;1&lt;/quantity&gt;&lt;/item&gt;';
$data .= '&lt;/items&gt;&lt;/shopping-cart&gt;&lt;checkout-flow-support&gt;&lt;merchant-checkout-flow-support/&gt;&lt;/checkout-flow-support&gt;&lt;/checkout-shopping-cart&gt;';

Then you said to add: $order-&gt;order_shipping_price to get a variable shipping function

I don't know any php could you tell me where I would insert this and what I replace and what I don't replace? or better yet just send me a copy of the updated googlecheckout.php with this code in it?
Thanks for your help.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMzNTEwLWdvb2dsZS1jaGVja291dC13aHktaXNuLXQtdGhlLXByb2R1Y3QtaW5mby1kaXNwbGF5P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

14 years 11 months ago [\#33857](#33857) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: google checkout why isn't the product info display](/forum/4-how-to/33510-google-checkout-why-isnt-the-product-info-display#33857 "Why isn't the product and order information showing when the information is transferred from my shop to google checkout? All I get is the total price with an order number.")*

You would need to change &lt;unit-price currency="'.$currency-&gt;currency_code.'"&gt;7.95&lt;/unit-price&gt; by &lt;unit-price currency="'.$currency-&gt;currency_code.'"&gt;'.$order-&gt;order_shipping_price.'&lt;/unit-price&gt;

for the shipping price.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMzNTEwLWdvb2dsZS1jaGVja291dC13aHktaXNuLXQtdGhlLXByb2R1Y3QtaW5mby1kaXNwbGF5P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[wrworkman](/forum/user/5017-wrworkman "View wrworkman's Profile")**
- [![wrworkman's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5017-wrworkman "View wrworkman's Profile") Topic Author
- [ Offline](/forum/user/5017-wrworkman)

Less More

- Posts: 24
- Thank you received: 0
-
-

14 years 11 months ago [\#33917](#33917) by [wrworkman](/forum/user/5017-wrworkman "View wrworkman's Profile")  Replied by *[wrworkman](/forum/user/5017-wrworkman "View wrworkman's Profile")* on topic *[Re: google checkout why isn't the product info display](/forum/4-how-to/33510-google-checkout-why-isnt-the-product-info-display#33917 "Why isn't the product and order information showing when the information is transferred from my shop to google checkout? All I get is the total price with an order number.")*

Where in this document, plugins/hikashoppayment/googlecheckout.php, do I insert the code and do I remove any of the current code? Sorry I am php illiterate.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMzNTEwLWdvb2dsZS1jaGVja291dC13aHktaXNuLXQtdGhlLXByb2R1Y3QtaW5mby1kaXNwbGF5P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

14 years 11 months ago [\#33949](#33949) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: google checkout why isn't the product info display](/forum/4-how-to/33510-google-checkout-why-isnt-the-product-info-display#33949 "Why isn't the product and order information showing when the information is transferred from my shop to google checkout? All I get is the total price with an order number.")*

I said that you need to change :
&lt;unit-price currency="'.$currency-&gt;currency_code.'"&gt;7.95&lt;/unit-price&gt;

by:
&lt;unit-price currency="'.$currency-&gt;currency_code.'"&gt;'.$order-&gt;order_shipping_price.'&lt;/unit-price&gt;

and not to insert or delete code ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMzNTEwLWdvb2dsZS1jaGVja291dC13aHktaXNuLXQtdGhlLXByb2R1Y3QtaW5mby1kaXNwbGF5P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[wrworkman](/forum/user/5017-wrworkman "View wrworkman's Profile")**
- [![wrworkman's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5017-wrworkman "View wrworkman's Profile") Topic Author
- [ Offline](/forum/user/5017-wrworkman)

Less More

- Posts: 24
- Thank you received: 0
-
-

14 years 11 months ago [\#34169](#34169) by [wrworkman](/forum/user/5017-wrworkman "View wrworkman's Profile")  Replied by *[wrworkman](/forum/user/5017-wrworkman "View wrworkman's Profile")* on topic *[Re: google checkout why isn't the product info display](/forum/4-how-to/33510-google-checkout-why-isnt-the-product-info-display#34169 "Why isn't the product and order information showing when the information is transferred from my shop to google checkout? All I get is the total price with an order number.")*

You are talking about changing it so the code is variable shipping correct? This is my minor concern.

My primary issue that I am talking about is the entire string of code, so that when a customer orders through google checkout all of the information from my beautiful hika shop transfers over to google, including item description, item price, item quantity etc.

so my question is, if this code works -

$data = '&lt;'.'?xml version="1.0" encoding="UTF-8"?'.'&gt;'."\n";
$data .= '&lt;checkout-shopping-cart xmlns="checkout.google.com/schema/2"&gt;&amp;l...&lt;items&gt;';

foreach($order-&gt;cart-&gt;products as $product){

$data .= '&lt;item&gt;&lt;item-name&gt;Order #'.$order-&gt;order_id.' - '.$product-&gt;order_product_name.'&lt;/item-name&gt;&lt;item-description&gt;&lt;/item-description&gt;&lt;unit-price currency="'.$currency-&gt;currency_code.'"&gt;'.$product-&gt;order_product_price.'&lt;/unit-
price&gt;&lt;quantity&gt;'.$product-&gt;order_product_quantity.'&lt;/quantity&gt;&lt;/item&gt;';

}
$data .= '&lt;item&gt;&lt;item-name&gt;Order #'.$order-&gt;order_id.' - Shipping&lt;/item-name&gt;&lt;item-description&gt;&lt;/item-description&gt;
&lt;unit-price currency="'.$currency-&gt;currency_code.'"&gt;'.$order-&gt;order_shipping_price.'&lt;/unit-price&gt;&lt;quantity&gt;1&lt;/quantity&gt;&lt;/item&gt;';
$data .= '&lt;/items&gt;&lt;/shopping-cart&gt;&lt;checkout-flow-support&gt;&lt;merchant-checkout-flow-support/&gt;&lt;/checkout-flow-support&gt;&lt;/checkout-shopping-cart&gt;';

:woohoo: Where in this document - plugins/hikashoppayment/googlecheckout.php do I put the above code? So that hika shop communicates to google all of the order information including item description, quantity, etc. This is my primary concern please help me out with specifics,like what do I need to do - just add it anywhere, or replace lines, or put it in a specfic place, or what?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMzNTEwLWdvb2dsZS1jaGVja291dC13aHktaXNuLXQtdGhlLXByb2R1Y3QtaW5mby1kaXNwbGF5P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

14 years 11 months ago [\#34180](#34180) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: google checkout why isn't the product info display](/forum/4-how-to/33510-google-checkout-why-isnt-the-product-info-display#34180 "Why isn't the product and order information showing when the information is transferred from my shop to google checkout? All I get is the total price with an order number.")*

You have to replace these lines:
$data = '&lt;'.'?xml version="1.0" encoding="UTF-8"?'.'&gt;'."\n";
$data .= '&lt;checkout-shopping-cart xmlns="[ checkout.google.com/schema/2](http://checkout.google.com/schema/2)"&gt;&lt;shopping-cart&gt;&lt;items&gt;';
$data .= '&lt;item&gt;&lt;item-name&gt;'.JText::_('CART_PRODUCT_TOTAL_PRICE').' #'.$order-&gt;order_id.'&lt;/item-name&gt;&lt;item-description&gt;&lt;/item-description&gt;&lt;unit-price currency="'.$currency-&gt;currency_code.'"&gt;'.$price.'&lt;/unit-price&gt;&lt;quantity&gt;1&lt;/quantity&gt;&lt;/item&gt;';
$data .= '&lt;/items&gt;&lt;/shopping-cart&gt;&lt;checkout-flow-support&gt;&lt;merchant-checkout-flow-support/&gt;&lt;/checkout-flow-support&gt;&lt;/checkout-shopping-cart&gt;';

in that file plugins/hikashoppayment/googlecheckout.php, by the code you found in that other thread.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMzNTEwLWdvb2dsZS1jaGVja291dC13aHktaXNuLXQtdGhlLXByb2R1Y3QtaW5mby1kaXNwbGF5P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[wrworkman](/forum/user/5017-wrworkman "View wrworkman's Profile")**
- [![wrworkman's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5017-wrworkman "View wrworkman's Profile") Topic Author
- [ Offline](/forum/user/5017-wrworkman)

Less More

- Posts: 24
- Thank you received: 0
-
-

14 years 10 months ago [\#35318](#35318) by [wrworkman](/forum/user/5017-wrworkman "View wrworkman's Profile")  Replied by *[wrworkman](/forum/user/5017-wrworkman "View wrworkman's Profile")* on topic *[Re: google checkout why isn't the product info display](/forum/4-how-to/33510-google-checkout-why-isnt-the-product-info-display#35318 "Why isn't the product and order information showing when the information is transferred from my shop to google checkout? All I get is the total price with an order number.")*

Okay, when I inserted the new code into the place of that above. Now during checkout with google I register then hit next and instead of taking me to google checkout. I go back to the product page. What do you think is wrong with the code? or where I am putting it? Thanks for you patients and help.

$data = '&lt;'.'?xml version="1.0" encoding="UTF-8"?'.'&gt;'."\n";
$data .= '&lt;checkout-shopping-cart xmlns="checkout.google.com/schema/2"&gt;&amp;l...&lt;items&gt;';

foreach($order-&gt;cart-&gt;products as $product){

$data .= '&lt;item&gt;&lt;item-name&gt;Order #'.$order-&gt;order_id.' - '.$product-&gt;order_product_name.'&lt;/item-name&gt;&lt;item-description&gt;&lt;/item-description&gt;&lt;unit-price currency="'.$currency-&gt;currency_code.'"&gt;'.$product-&gt;order_product_price.'&lt;/unit-
price&gt;&lt;quantity&gt;'.$product-&gt;order_product_quantity.'&lt;/quantity&gt;&lt;/item&gt;';

}
$data .= '&lt;item&gt;&lt;item-name&gt;Order #'.$order-&gt;order_id.' - Shipping&lt;/item-name&gt;&lt;item-description&gt;&lt;/item-description&gt;
&lt;unit-price currency="'.$currency-&gt;currency_code.'"&gt;'.$order-&gt;order_shipping_price.'&lt;/unit-price&gt;&lt;quantity&gt;1&lt;/quantity&gt;&lt;/item&gt;';
$data .= '&lt;/items&gt;&lt;/shopping-cart&gt;&lt;checkout-flow-support&gt;&lt;merchant-checkout-flow-support/&gt;&lt;/checkout-flow-support&gt;&lt;/checkout-shopping-cart&gt;';

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMzNTEwLWdvb2dsZS1jaGVja291dC13aHktaXNuLXQtdGhlLXByb2R1Y3QtaW5mby1kaXNwbGF5P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

14 years 10 months ago [\#35353](#35353) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: google checkout why isn't the product info display](/forum/4-how-to/33510-google-checkout-why-isnt-the-product-info-display#35353 "Why isn't the product and order information showing when the information is transferred from my shop to google checkout? All I get is the total price with an order number.")*

Hi,

Please make sure that the line:
$data .= '&lt;checkout-shopping-cart xmlns="checkout.google.com/schema/2"&gt;&amp;l...&lt;items&gt;';

is the correct line, not with &amp;l... but with &lt;shopping-cart&gt;

Also, I see that you added a return carriage between:
&lt;/unit-
and:
price&gt;

but it should be: &lt;/unit-price&gt;
So please check on that code too.

The following user(s) said Thank You: [wrworkman](/forum/user/5017-wrworkman "View wrworkman's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMzNTEwLWdvb2dsZS1jaGVja291dC13aHktaXNuLXQtdGhlLXByb2R1Y3QtaW5mby1kaXNwbGF5P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.114 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
