Joomla Google Base
logo

New World Designs

image
Invalid string value in attribute: product type

Invalid string value in attribute: product_type (716 warnings)
The value that you entered for this attribute is not a valid string. Please enter a contiguous sequence of numbers, characters or symbols.
Examples: Examples:

Item Nr. Line No
4 95
9 185
11 221
12 239
166 4,447

This error type is only a warning, and wont result in you having any problems, but for your own search optimization reasons, you really should have this corrected.

This is the error message in the merchant account of one of my clients. So if I now open the XML in FireFox and then view the source code, it shows the XML. Where ever you click on the code, it tells you the Line number and Col Number in the bottom status bar.

So here is a bit of the of the XML, showing one of the errors

86 - <item>
87 - <title><![CDATA[A.C. Milan Flag]]></title>
88 - <link><![CDATA[http://www.sample.com/component/virtuemart/?page=shop.product_details&flypage=flypage.tpl&category_id=&product_id=2554]]></link>
89 - <description><![CDATA[]]>Milan Flag Key Ring</description>
90 - <g:image_link><![CDATA[http://www.sample.com/components/com_virtuemart/shop_image/product/24flgacmsml.jpg]]></g:image_link>
91 - <g:brand><![CDATA[A.C.Milan]]></g:brand>
92 - <g:id>catprod2554</g:id>
93 - <g:currency>GBP</g:currency>
94 - <g:price>5.36</g:price>
95 - <g:product_type><![CDATA[]]></g:product_type>
96 - <g:condition>New</g:condition>
97 - <g:payment_accepted>MasterCard</g:payment_accepted>
98 - <g:payment_accepted>AmericanExpress</g:payment_accepted>
99 - <g:payment_accepted>GoogleCheckout</g:payment_accepted>
100 - <g:payment_accepted>Visa</g:payment_accepted>
101 - <g:quantity>85</g:quantity>
102 - <g:payment_notes><![CDATA[+ PayPal]]></g:payment_notes>
103 - <g:weight>134.0000 grams</g:weight></item>
104 - <item>

So we can see that line 95 that is reported as a problem in the report, is the product_type tag, as it said in the title of the error
"Invalid string value in attribute: product_type".

This is because it is blank, it means the product is not in a category (which isn't possible now with newer versions of Virtuemart), pop it in a category and it should be fine. If it is added to more than one category, then it will create more than one "Product Type" attribute per product.

This is how it should look.
<g:product_type><![CDATA[]]>Key Rings</g:product_type>

There is more information on the Product_Type attribute here and below from Google themselves
http://www.google.com/support/merchants/bin/answer.py?answer=188494&hl=en_GB#product_type
 
sub menu

All prices are charged in British Pounds, this option gives you an approximate currency change.

VirtueMart
Your Cart is currently empty.

Latest Versions

VirtueMart Froogle 6.6.3

(plugin)

 

Google Base 2.4.1

(Component)

Google Base Category 1.0

This extension adds
<g:google_product_category>
(Component/plugin)

 




Produced by
New World Designs

Produced Copyrighted and Owned by New World Designs

 

The content and information on this site was correct at the time of writing it. But as Google changes its rules, policies and the ways it works very often, I would be very grateful if you find any information here is out of date, you could let me know so I can update it accordingly for other visitors using it.

Many thanks
Ian

 

Part of the Joomla Google Base Project

Google Base Events - Google Base Hotels - Google Base Housing - Google Base Jobs - Google Base people - Google Base People Profiles - Google Base Personals - Google Base Products - Google Base Property - Google Base Vehicles - Google Base Recipes - Google Base Reviews - Google Base Services - Google Bsase Vacation Rentals