Hello Dave,
1. At the moment I am using a random product display on my home page. It works by going through the merchant selecting random products for the that merchant's pool. It's OK for starter but not so if you want to display mixture of products like ipods, television, speakers, clothing, shoes, make up products, pills etc.. etc. Problem is that by using merchant pool, I ended up showing product from one merchant at any given time, like painkillers and herbbal meds, which make my site looks like a pharmacy web site. For some coming for say Television has no interests in it. Is there any way you can modify the random.php code to go by the product pool and display them $num of item in the desired area (in my case home page). Bare in mind I have over 3.8 million product entries. Is it doable?
2. There are lot of entries in the category fields that just does not make sense. i.e category names like 123yth, 567889, etc. Is there any ways to remove those entries during import. One way of doing this would be, to assing a category name "Others" and then run a filter where any categories starts with 3 digits or more, with no aphabets will be merged with "Others" category. And a possibility to have nore rules attahed to it.
3. How do I import feeds with proper HTML tagging? I have lots of products, descriptions, merchant, brand and categories does not show the proper HTML tagging or symbols. Like B&Q shows up B amp Q and Double Quotes (") comes up as quotqout. It's basically removing tags like (& ; " >
Hello Noor,
I'm on the road at the moment so I'll look into 1 & 3 for you shortly, but re: 2, this is quite straight forward to do within the import record handler function. In includes/admin.php, look for the following section:
/* apply category mappings */
if (isset($admin_importCategoryMappings[$category]))
{
$category = $admin_importCategoryMappings[$category];
}
...and then ADD the following new code immediately after that:
$test = substr($category,0,3);
if (is_numeric($test))
{
$category = "Others";
}
Hope this helps!
Cheers,
David.