Knowledgebase: Googlebase
Google rejects my products as duplicates
Posted by Carrie Saunders on 02 February 2012 04:28 PM
If you receive a message from Google that your products are duplicates, the likely cause is that you are submitting variants with the same title and URL. To correct this, you should include the unique qualities of your variants in your product title.

1.) Make sure "Collect product options" is set to "Yes, collect product options"

2.) Set your "title" field to "php code" and use the following code:

Code variant 1 - this code will change your product title from "Men's shirt" to "Men's shirt Color: Red, Size: Medium"



$field_value = $data['product'];

if (!empty($data['variant_options'])) {

$tmp = array();

foreach ($data['variant_options'] as $k => $v) {

$tmp[] = sprintf('%s: %s', $k, $v);

}

$field_value = $data['product'] . ' ' . implode(', ', $tmp);

}



Code variant 2 - this code will change your product title from "Men's shirt" to "Men's shirt Red Medium"



$field_value = $data['product'];

if (!empty($data['variant_options'])) {

$field_value = $data['product'] . ' ' . implode(' ', array_values($data['variant_options']));

}


Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments: