Hi David,
just purchased the script and look forward to playing around with it.
I've had a quick look through the forum but wasn't able to find anything in regards to subcategories.
was hoping to setup categories as follows.
Customer Electronics
- Digital cameras
- MP3 Players
- Consoles etc.
Clothing
- Mens wear
- Ladies wear
etc
What the best way to achieve this? it is possible within the scripts scope?
regards
Rod
Thanks David,
That's exactly what i was looking for.
the solution you recommend may work but is not practical for building a site beyond a niche site with limited categories. I get headaches just thinking of implementing this solution for a med-large scale comparison site with 100s of categories and 100s more subcategories. Just think, a modest site with 20 MAIN categories with each containing 5 subcategories would require 101 installations of Price Tapestry. Pass the aspirin please
How would one go about customizing the script to allow subcategories in a more logical way?
Hi projectman,
The sub-directory method only requires one installation per main category; the category field itself of each installation then becomes the sub-category; so 20 MAIN categories would only require 20 installations.
However, the starting point for a modification would be to add suitable fields - this is straight forward with the latest distribution - check out the instructions from the following page;
http://www.pricetapestry.com/node/3094
So for a 2 level set-up, adding a field "subcategory" is the logical starting point. It would also be straight forward to apply category mapping to a subcategory field. In includes/admin.php you'll find the following comment at line 203:
/* apply category mappings */
Simply copy the block of code extending all the way down to the next comment (apply product mappings), and paste it back into the file replacing each instance of
$importRecord["category"];
with:
$importRecord["subcategory"];
There's obviously quite a bit more to it; let me know if this is the route you still wish to go down and we'll take it from there...
Cheers,
David.
--
PriceTapestry.com
Hello Rod,
As it stands, the script doesn't support a category hierarchy. This is concious decision, as very few (if any) affiliate product feeds have good enough quality category information to support this, and most users would just end up dis-satisfied with the results.
However, what several users have done and what I recommend to anyone who wants to build a category hierarchy is actually to install Price Tapestry multiple times into sub-directories representing master categories; and then with each installation having feeds from merchants in that category. You can then put a "master" search form at the top level of your site. All the info is in the following thread:
http://www.pricetapestry.com/node/205
Cheers,
David.