Hi David,
Hope you're enjoying your holiday!
Simple question, I hope, I have alot of merchant feeds which have a similiar "brand names" ie.
7 For All Mankind, 7 For All Mankind 7 For All Man Kind , 7 for all Mankind Jeans
What I am hoping to do is create a brand mapping for these brands that are similiar.
I have added the brand mapping table to the database, and created the files brands.php, brands_configure.php, and brands_delete.php; adding those to my admin folder.
Also, the menu has been added into the admin menu to get there.
I tried one brand mapping, it did add the information to the database correctly.
Now I would like to know what other files I need to modify so that on the feed import these "brand mappings" show on the brands page of the site. Currently they still show as orignally imported, which tells me I need modification somewhere else.
Thanks for the time, no real hurry here so you know, enjoy your holiday!
Thanks David,
I figured I had most of it, and did look at the includes/admin.php file after I posted this, just wanted to be sure I was heading the right direction. Works perfectly!
Hi David
I have added this mod and its working ok, will I need to add the globals to feeds_import_slow.php and import_slow.php.
Chris
Hi Chris,
That's correct - but also note that feeds_import_slow.php and import_slow.php also contain the code to populate the arrays; so in either case, simply duplicate the code to populate $admin_importCategoryMappings for your new $admin_importBrandMappings array. In admin/feeds_import_slow.php it begins at line 83 and in scripts/import_slow.php it begins at line 78..
Cheers,
David.
--
PriceTapestry.com
Hi,
It sounds like you're 90% of the way there having created new database tables and /admin/ scripts - all that's left is to duplicate the way that Category Mapping is applied in includes/admin.php.
There are relevant sections of code within
function admin__importRecordHandler($record)
and
function admin_import($filename,$limit=0,$callback="")
Within each function, look for the code associated with the global variable
$admin_importCategoryMappings
(it's neatly sectioned off within each one) - and don't forget to make your $admin_importBrandMappings global also - and that should be all that's left..Cheers,
David.