PDA

View Full Version : Category IDs & Bits


Amoochi
17-08-09, 07:09
Ok, having been looking through this:

http://wiki.affiliatewindow.com/index.php/ShopWindow_Appendix_2_Category_IDs

Is it actually up to date for version 3? If not can it be made so please.

Also, what does the first number mean on a link, in otherwords:

category.php?rb=4-634

What does that first 4 actually mean and do all category's have that number?

GeorgeGaz
17-08-09, 09:48
Hello Amoochi,

The 4 is the refine by number, 4 = category, 3 = merchant etc.

Which category IDs have you noticed are missing? v3 still works from the same category structure as v2.

Cheers

authcode
17-08-09, 10:22
I noticed this yesterday too. I wanted a local copy of the category tree so I don't waste calls requesting it on every page, but the list on the wiki appears wrong. Looking at the top level categories (those with ParentId of 0), it seems the old, old categories of Music, DVDs & Video and Video Games are still top level, before they got rolled into the Entertainment category. There might be other differences too but I didn't look further because sorting it all out would've been near impossible.

I think perhaps the previous category tree and the revised category tree (with the Entertainment section) have just been merged, but I'm not entirely sure about that.

I wrote a quick script with the v3 API to pull the current category tree into a database. I've attached a CSV dump of this database. I haven't had time to check it thoroughly yet but it seems OK. 407 categories with iId, sName, iParentId, sDescription and iAdult values. Hope this is useful to someone.

GeorgeGaz
17-08-09, 10:50
Hey,

OK I will take a look at it. I did that wiki article many many moons ago and chances are I overlooked something.

Once the wiki is rolled out in full it will be easy for anyone to update it when they spot mistakes ;)

Cheers guys