Is it possible to filter out only the categories of the merchant, on these page link
cheers HEnk
Not quite :)
NOW -> when you click on the merchant name then you see a list of the merchant products.
Is it possible when you click on the merchant name to see what categories there are possible for this merchants
Cheers HEnk
Hi Henk,
Yes - you can do that.
You still need to make the mods in the other thread to give you a categories.php script that will give you just the selected merchant like:
/categories.php?merchant=Some+Merchant
http://www.pricetapestry.com/node/293
Then, to change the merchant list to link to each merchant's categories you need to find the following code in merchants.php (starts at line 14):
$item["name"] = $feed["merchant"];
if ($config_useRewrite)
{
$item["href"] = tapestry_hyphenate($feed["merchant"])."/";
}
else
{
$item["href"] = "search.php?q=merchant:".urlencode($feed["merchant"]).":";
}
...and change it to just this:
$item["name"] = $feed["merchant"];
$item["href"] = $config_baseHREF."categories.php?merchant=".urlencode($feed["merchant"]);
That should do the trick...
Cheers,
David.
Hi David,
I change it to have a link like /categories.php?merchant=Some+Merchant
And change the merchants.php only there are dead links :)
Proost
HEnk
Hi Henk,
Can you post or email me the URL showing dead links and i'll take a look?
Have you checked that the categories.php mods are working OK by just going straight to:
http://www.yoursite.com/categories.php?merchant=Some+Merchant
If that's working OK then that's the main thing...
Cheers,
David.
http://computers.linkik.com/categories.php?merchant=Dell
dead link http://computers.linkik.com/search.php?q=category:CD+ROM+MUSIC:&merchant=Dell
Henk
cheers
sry it works fine :)
and can we count how many products were in a category.
HENK
Hi Henk,
It is easy to do, the mods are in this thread:
http://www.pricetapestry.com/node/458
Cheers!
David.
Hello Henk,
I'm not quite sure what you mean regarding filtering out categories on a merchant results page - all products shown on that page will be from Apple, so therefore any categories are by definition found in the Apple feed.
Are you referring to giving a merchant specific category index? There's code for doing that in the following thread:
http://www.pricetapestry.com/node/293
Let me know if i've misunderstood...
Cheers,
David.