Hi David.
I have $config_commonFields with several values.
For instance:
$config_commonFields['price'] = ['PRICE', 'price', 'price_new', 'PRICE_NEW'];
Is it possible to make $config_commonFields case insensitive so feeds_register_step2 works with just one combination? Thank you.
EDIT:
For category wasn't working so I have done the same into function field_custom()
Is this correct?
Thank you!
Yes correct - the loop is identical in both functions.
Cheers,
David.
--
PriceTapestry.com
Hi,
Sure - to do this edit admin/feeds_register_step2.php and locate the existing sections of code to scan for the default beginning at lines 159 and 222:
if (!$default)
{
if (isset($config_commonFields[$name]))
{
foreach($config_commonFields[$name] as $test)
{
if (isset($productRecordFields[$test]))
{
$default = $test;
break;
}
}
}
}
...and REPLACE each instance with:
if (!$default)
{
if (isset($config_commonFields[$name]))
{
foreach($config_commonFields[$name] as $commonField)
{
foreach($productRecordFields as $productRecordField)
{
if (!strcasecmp($commonField,$productRecordField))
{
$default = $productRecordField;
break;
}
}
if ($default) break;
}
}
}
Cheers,
David.
--
PriceTapestry.com