You are here:  » Merchants categories


Merchants categories

Submitted by henk on Thu, 2006-09-21 19:15 in

Is it possible to filter out only the categories of the merchant, on these page link

cheers HEnk

Submitted by support on Fri, 2006-09-22 06:29

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.

Submitted by Henk3001 on Fri, 2006-09-22 11:46

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

Submitted by support on Fri, 2006-09-22 12:22

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.

Submitted by henk on Fri, 2006-09-22 19:05

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

Submitted by support on Fri, 2006-09-22 19:58

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.

Submitted by henk on Fri, 2006-09-22 20:25

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

Submitted by henk on Fri, 2006-09-22 21:47

sry it works fine :)

and can we count how many products were in a category.

HENK

Submitted by support on Sat, 2006-09-23 07:26

Hi Henk,

It is easy to do, the mods are in this thread:

http://www.pricetapestry.com/node/458

Cheers!
David.