You are here:  » sub-category under category


sub-category under category

Submitted by pkumar125 on Fri, 2006-10-06 11:00 in

Hello

I am working on http://www.pricedonkey.co.uk/ here we have only category(For example computer) now I want to add subcategory under category (eg computer--> keyboard,mouse,cpu,monitor) I don't have idea of xml but I am good in php.
Let me know how to move forward.

Regards
Mandakini

Submitted by support on Fri, 2006-10-06 11:23

Hello Mandakini,

I've never included sub categories as part of Price Tapestry because there just isn't the quality of data in affiliate product feeds in order to support it.

What some Price Tapestry users do however, and in my opinion is a far better solution to trying to make sub-categories work within a single installation is to create separate installations of Price Tapestry in sub-directories - once for each of your master categories. You can then even setup a search box on the home page to enable your users to search within a particular category.

There's instructions for doing this in the following thread:

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

Hope this helps!
Cheers,
David.

Submitted by pkumar125 on Sat, 2006-10-07 07:25

Hello david,

Fairly OK. I feel this will resolve issue of selection of subcaterories on user front.

I am still wondering, how data feed upload will work.I assume there will be multiple admin for each categories i.e one for each subdomain. Please confirm

Regards
Mandakani

Submitted by support on Sat, 2006-10-07 08:31

Correct - each sub-directory is just like its own site, so you would have:

http://www.example.com/category1/admin/
http://www.example.com/category2/admin/

etc...

Remember when you install Price Tapestry into a subdirectory, you must make changes in config.php and .htaccess (if using clean URLs) - for example for the "category1" directory:

in config.php

  $config_baseHREF = "/category1/";

and in .htaccess

RewriteBase /category1/

Cheers,
David.

Submitted by pkumar125 on Sun, 2006-10-08 10:24

Hello David

First of all thanks for your quick response first time I got excellent support.

If I am doing new Feed Registration it updates only two tables products and feeds what's use of other tables for example
categories
extras
featured
filters

I asked this question because I feel multi installation of Price Tapestry is tedious job if tomarrow I will do small modification, for example to change in header or footer design we need to go each category folder seperately and do modification. So before making any decision I would like to know is it any other way to do it for example
1) add one more table called master_category and give provision first select master_category then start feed registration.
2)what's complexicity if will add one more field mastercategory in product table i.e. what short of file need to modify .

Waiting for your support
Thanks
Mandakini

Submitted by support on Sun, 2006-10-08 10:48

Hi Mandakini,

The tables are used as follows:

categories:

This is the category mapping table; it does not hold product categories, but instead holds your preferred category name for all sorts of different category names that might appear in feeds from different merchants....
http://www.pricetapestry.com/node/134

extras:

This table holds additional fields that are added to the product description if registered under the "Extras" section against a feed. It has been superceeded now by the Text Before and Text After filters.

featured:

The featured products for display on the homepage if required

filters:

Holds filter registrations against each feed.

To add a master category you would need to make changes to the form in feeds_register_step2.php, and the registration function in includes/admin.php, plus of course adding the category to the feeds table in the database.

You would then need to consider whether you want to incorporate the master category into every product record, or just cross reference it against the feeds table - this will be down to how you design your layout. It is quite a lot of work!

Alternatively, I understand what you are saying about modifying the header, footer etc.; but there is no reason why you cannot create a single master copy of the HTML files and just edit your category installations to reference the master coppies.

You can then just make a copy of your modified version whenever you add a new master category and it will reference your common include files.

For example, at the bottom of index.php; instead of:

  require("html/footer.php");

...you would have:

  require("/common/html/footer.php");

...that should make it easier!

Cheers,
David.