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

#   Google Checkout Issue - Missing product names?

##

- **[joelstad](/forum/user/1677-joelstad "View joelstad's Profile")**
- [![joelstad's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1677.png)](/forum/user/1677-joelstad "View joelstad's Profile") Topic Author
- [ Offline](/forum/user/1677-joelstad)

Less More

- Posts: 38
- Thank you received: 0
-
-
-
-

15 years 1 month ago [\#26619](#26619) by [joelstad](/forum/user/1677-joelstad "View joelstad's Profile")  *[Google Checkout Issue - Missing product names?](/forum/4-how-to/26619-google-checkout-issue-missing-product-names#26619 "The plugin appears to be working and customers are being charged for their orders but the product list is not correct or is missing and it's causing questions. Attached is a sample of what it looks like. What's causing this?  Thanks in advance!  --Joel")* was created by *[joelstad](/forum/user/1677-joelstad "View joelstad's Profile")*

The plugin appears to be working and customers are being charged for their orders but the product list is not correct or is missing and it's causing questions. Attached is a sample of what it looks like. What's causing this?

Thanks in advance!

--Joel image missing http://www.hikashop.com/media/kunena/attachments/legacy/images/what.png

- [ ![what.png](/forum/attachment/1808) ](/forum/attachment/1808 "what.png") [ ](/forum/attachment/1808?download=1 "what.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI2NjE5LWdvb2dsZS1jaGVja291dC1pc3N1ZS1taXNzaW5nLXByb2R1Y3QtbmFtZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

15 years 1 month ago [\#26625](#26625) 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 Issue - Missing product names?](/forum/4-how-to/26619-google-checkout-issue-missing-product-names#26625 "The plugin appears to be working and customers are being charged for their orders but the product list is not correct or is missing and it's causing questions. Attached is a sample of what it looks like. What's causing this?  Thanks in advance!  --Joel")*

The google checkout plugin only sends to google checkout the total amount of the order. That's why you don't have the details of the order in the google checkout plateform.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI2NjE5LWdvb2dsZS1jaGVja291dC1pc3N1ZS1taXNzaW5nLXByb2R1Y3QtbmFtZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[joelstad](/forum/user/1677-joelstad "View joelstad's Profile")**
- [![joelstad's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1677.png)](/forum/user/1677-joelstad "View joelstad's Profile") Topic Author
- [ Offline](/forum/user/1677-joelstad)

Less More

- Posts: 38
- Thank you received: 0
-
-
-
-

15 years 4 weeks ago [\#26653](#26653) by [joelstad](/forum/user/1677-joelstad "View joelstad's Profile")  Replied by *[joelstad](/forum/user/1677-joelstad "View joelstad's Profile")* on topic *[Re: Google Checkout Issue - Missing product names?](/forum/4-how-to/26619-google-checkout-issue-missing-product-names#26653 "The plugin appears to be working and customers are being charged for their orders but the product list is not correct or is missing and it's causing questions. Attached is a sample of what it looks like. What's causing this?  Thanks in advance!  --Joel")*

Customers are saying it looks/feel suspicious because the itemized list they see on Google is nothing like the itemized list they agreed to purchase in the shopping cart of Hikashop. How difficult would it be to pass the item names to Google during checkout?

--Joel

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI2NjE5LWdvb2dsZS1jaGVja291dC1pc3N1ZS1taXNzaW5nLXByb2R1Y3QtbmFtZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

15 years 4 weeks ago [\#26658](#26658) 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 Issue - Missing product names?](/forum/4-how-to/26619-google-checkout-issue-missing-product-names#26658 "The plugin appears to be working and customers are being charged for their orders but the product list is not correct or is missing and it's causing questions. Attached is a sample of what it looks like. What's causing this?  Thanks in advance!  --Joel")*

If it's just the name of the products, you can change the code:
'.JText::_('CART_PRODUCT_TOTAL_PRICE').' #'.$order-&gt;order_id.'

of the file plugins/hikashoppayment/googlecheckout.php

in order to set the products name (and quantity) instead of just the order id.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI2NjE5LWdvb2dsZS1jaGVja291dC1pc3N1ZS1taXNzaW5nLXByb2R1Y3QtbmFtZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[joelstad](/forum/user/1677-joelstad "View joelstad's Profile")**
- [![joelstad's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1677.png)](/forum/user/1677-joelstad "View joelstad's Profile") Topic Author
- [ Offline](/forum/user/1677-joelstad)

Less More

- Posts: 38
- Thank you received: 0
-
-
-
-

15 years 4 weeks ago [\#26692](#26692) by [joelstad](/forum/user/1677-joelstad "View joelstad's Profile")  Replied by *[joelstad](/forum/user/1677-joelstad "View joelstad's Profile")* on topic *[Re: Google Checkout Issue - Missing product names?](/forum/4-how-to/26619-google-checkout-issue-missing-product-names#26692 "The plugin appears to be working and customers are being charged for their orders but the product list is not correct or is missing and it's causing questions. Attached is a sample of what it looks like. What's causing this?  Thanks in advance!  --Joel")*

So, I've been working on this for a couple of hours and I've got nothing so far (other than a ton of errors in my integration console).

I've been looking at cart.php in com_hikashop/views/checkout... and I can see how the items are being listed there along with the unit price and quantity but these variables don't work in the checkout module. I'd like the quantity, product name and unit price to work correctly so it looks less suspicious during checkout but I can't figure out how to display them.

Can you give me any more hints?

Thanks in advance, I really appreciate it. I'm trying to get it on my own, just not having luck.

--Joel

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI2NjE5LWdvb2dsZS1jaGVja291dC1pc3N1ZS1taXNzaW5nLXByb2R1Y3QtbmFtZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[joelstad](/forum/user/1677-joelstad "View joelstad's Profile")**
- [![joelstad's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1677.png)](/forum/user/1677-joelstad "View joelstad's Profile") Topic Author
- [ Offline](/forum/user/1677-joelstad)

Less More

- Posts: 38
- Thank you received: 0
-
-
-
-

15 years 4 weeks ago [\#26693](#26693) by [joelstad](/forum/user/1677-joelstad "View joelstad's Profile")  Replied by *[joelstad](/forum/user/1677-joelstad "View joelstad's Profile")* on topic *[Re: Google Checkout Issue - Missing product names?](/forum/4-how-to/26619-google-checkout-issue-missing-product-names#26693 "The plugin appears to be working and customers are being charged for their orders but the product list is not correct or is missing and it's causing questions. Attached is a sample of what it looks like. What's causing this?  Thanks in advance!  --Joel")*

Oh, and I'm pretty sure changing the item name messes with Code:

function parseResponse(&amp;$xml) {

on line 293 later. Do I need to worry about line 307 and 308 if I change the item name?
Code:

if( preg_match('/&lt;item-name&gt;.* #(.*)&lt;\/item-name&gt;/iU', $xml, $ggreg) ) { $vars['order-num'] = trim($ggreg[1]);

--Joel

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI2NjE5LWdvb2dsZS1jaGVja291dC1pc3N1ZS1taXNzaW5nLXByb2R1Y3QtbmFtZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

15 years 4 weeks ago [\#26697](#26697) 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 Issue - Missing product names?](/forum/4-how-to/26619-google-checkout-issue-missing-product-names#26697 "The plugin appears to be working and customers are being charged for their orders but the product list is not correct or is missing and it's causing questions. Attached is a sample of what it looks like. What's causing this?  Thanks in advance!  --Joel")*

You need to add the name and quantity of the products but you need to keep the order id in there.

Maybe it would be simpler to put that in the item-description.

Here is a piece of code you might wanna try (I didn't test):
$description = '';
foreach($order-&gt;cart-&gt;products as $product){
$description.=$product-&gt;order_product_quantity.' '.$product-&gt;order_product_name.'&amp;#x3c;br/&amp;#x3e;';
}

and then change &lt;item-description&gt;&lt;/item-description&gt; to &lt;item-description&gt;'.$description.'&lt;/item-description&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI2NjE5LWdvb2dsZS1jaGVja291dC1pc3N1ZS1taXNzaW5nLXByb2R1Y3QtbmFtZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[joelstad](/forum/user/1677-joelstad "View joelstad's Profile")**
- [![joelstad's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1677.png)](/forum/user/1677-joelstad "View joelstad's Profile") Topic Author
- [ Offline](/forum/user/1677-joelstad)

Less More

- Posts: 38
- Thank you received: 0
-
-
-
-

15 years 4 weeks ago [\#26773](#26773) by [joelstad](/forum/user/1677-joelstad "View joelstad's Profile")  Replied by *[joelstad](/forum/user/1677-joelstad "View joelstad's Profile")* on topic *[Re: Google Checkout Issue - Missing product names?](/forum/4-how-to/26619-google-checkout-issue-missing-product-names#26773 "The plugin appears to be working and customers are being charged for their orders but the product list is not correct or is missing and it's causing questions. Attached is a sample of what it looks like. What's causing this?  Thanks in advance!  --Joel")*

Excellent, with this I was able to work through it. Here is what I changed:
Code:

$data = '&lt;'.'?xml version="1.0" encoding="UTF-8"?'.'&gt;'."\n"; $data .= '&lt;checkout-shopping-cart xmlns="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;';

The last issue is, as you can see above, I had to manually set the shipping cost. Is there a way to make this dynamic as well? Other than that, it appears to be working correctly. (image attached)

Also, to support the project and support, I'll be purchasing the business version of HikaShop within the hour. Thanks again for everything!

--Joel image missing http://www.hikashop.com/media/kunena/attachments/legacy/images/done.png

- [ ![done.png](/forum/attachment/1827) ](/forum/attachment/1827 "done.png") [ ](/forum/attachment/1827?download=1 "done.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI2NjE5LWdvb2dsZS1jaGVja291dC1pc3N1ZS1taXNzaW5nLXByb2R1Y3QtbmFtZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

15 years 4 weeks ago [\#26792](#26792) 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 Issue - Missing product names?](/forum/4-how-to/26619-google-checkout-issue-missing-product-names#26792 "The plugin appears to be working and customers are being charged for their orders but the product list is not correct or is missing and it's causing questions. Attached is a sample of what it looks like. What's causing this?  Thanks in advance!  --Joel")*

The shipping price can be accessed in the variable:
$order-&gt;order_shipping_price

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI2NjE5LWdvb2dsZS1jaGVja291dC1pc3N1ZS1taXNzaW5nLXByb2R1Y3QtbmFtZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[joelstad](/forum/user/1677-joelstad "View joelstad's Profile")**
- [![joelstad's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1677.png)](/forum/user/1677-joelstad "View joelstad's Profile") Topic Author
- [ Offline](/forum/user/1677-joelstad)

Less More

- Posts: 38
- Thank you received: 0
-
-
-
-

15 years 4 weeks ago [\#26809](#26809) by [joelstad](/forum/user/1677-joelstad "View joelstad's Profile")  Replied by *[joelstad](/forum/user/1677-joelstad "View joelstad's Profile")* on topic *[Re: Google Checkout Issue - Missing product names?](/forum/4-how-to/26619-google-checkout-issue-missing-product-names#26809 "The plugin appears to be working and customers are being charged for their orders but the product list is not correct or is missing and it's causing questions. Attached is a sample of what it looks like. What's causing this?  Thanks in advance!  --Joel")*

Thanks!

Upgraded to essential last night and lost my changes. Realized it was essential and not business (doh) and ordered the upgrade and lost my changes again, lol. Now, I think I'm good to go. Thanks for all the help!

--Joel

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI2NjE5LWdvb2dsZS1jaGVja291dC1pc3N1ZS1taXNzaW5nLXByb2R1Y3QtbmFtZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

15 years 4 weeks ago [\#26810](#26810) 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 Issue - Missing product names?](/forum/4-how-to/26619-google-checkout-issue-missing-product-names#26810 "The plugin appears to be working and customers are being charged for their orders but the product list is not correct or is missing and it's causing questions. Attached is a sample of what it looks like. What's causing this?  Thanks in advance!  --Joel")*

You might want to replace googlecheckout to something else everywhere in the files of the plugin and install that modified version so that it is not overwritten when you update HikaShop in the future.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI2NjE5LWdvb2dsZS1jaGVja291dC1pc3N1ZS1taXNzaW5nLXByb2R1Y3QtbmFtZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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.302 seconds

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