You will find most of the attributes within: /root/include/admin/exim/exim.google.php
I was looking for this because I wanted to add more information to my google base products mainly the manufacturer part number (mpn) also known as Product Code. What I found is that CS has set the UPC code for product code. I simply changed upc to mpn. Easy enough fix.
'#override_options' => array (
'delimiter' => 'T',
'output' => 'S',
),
'#post_processing' => array ('fn_exim_transfer_google_file', '@filename'),
'#export_fields' => array (
'id' => array (
'#db_field' => 'product_id',
'#required' => true,
'#alt_key' => true
),
'product_type' => array (
'#process_get' => array('fn_exim_google_format_field', '', 'product_type', '', '@product_type'),
'#linked' => false
),
'quantity' => array (
'#db_field' => 'amount'
),
'price' => array (
'#table' => 'product_prices',
'#db_field' => 'price',
'#process_get' => array('fn_exim_google_format_field', '#this', 'price', '#key', '@discounts')
),
'mpn' => array ( [COLOR="Magenta"]<--------------------------------------[/COLOR]
'#db_field' => 'product_code'
),
'title' => array (
'#table' => 'product_descriptions',
'#db_field' => 'product',
'#process_get' => array('fn_exim_google_format_field', '#this', 'title'),
),
'description' => array (
'#table' => 'product_descriptions',
'#db_field' => 'full_description',
'#process_get' => array('fn_exim_google_format_field', '#this', 'description'),
),
'link' => array (
'#process_get' => array ('fn_exim_get_product_url', '#key'),
'#linked' => false
),
'image_link' => array (
'#process_get' => array ('fn_exim_get_image_url', '#this', 'product'),
'#db_field' => 'image_id',
'#table' => 'product_images_links',
),
// Please uncomment this code if you want to export ISBN feature to the google
/* 'ISBN' => array ( [COLOR="Magenta"]<----------------------------------------------[/COLOR]
'#process_get' => array ('fn_exim_get_feature', '#key', 'ISBN'),
'#linked' => false
),*/
),
);
If you notice, you can uncomment the line above to add ISBN to the attributes. Now what I donât understand is there are 2 different kinds of bar codes. ISBN is for books only and UPC is for all others. I donât sell books but I am not sure if you can use the barcode add on for each?
Also if you use 1 product type for all of your products then look further down in the script and put your product type at the top of the list so you donât have to keep scrolling through the list each time you submit to google base. All of my products are tool related so that is what I put at the top of the list.
function fn_exim_google_get_types()
{
return array (
[COLOR="Magenta"]'tools' => 'tools',[/COLOR]
'other' => 'other',
'2-way radios' => '2-way radios',
I also noticed that if you need to alter some of the attibutes for addons, you will need to go into the addons folder to change the attribute. For example I wanted to change the attribute name for manufacturers. Currently it is set as âbrandâ. To make it âmanufacturerâ instead of âbrandâ I made the changes in /root/addons/manufacturers/include/admin/exim/exim.google.php.
//
// Schema definition
//
$pattern['#export_fields']['[COLOR="Magenta"]manufacturer[/COLOR]'] = array (
'#db_field' => 'manufacturer_id',
'#process_get' => array ('fn_exim_get_g_manufacturer', '#this', '@lang_code'),
);
Anyway, this is basically how you can edit the google base attributes. I know some have been inquiring about doing this and if you feel comfortable about playing around with this, then this is where you want to be editting.