Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Creating Custom Fields for Products based on Category

Creating Custom Fields for Products based on Category

Locked

Views: 1,259

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
10 Feb 2008, 5:44 PM
#1
kma1819 avatar

kma1819

New Zenner

Join Date:
Feb 2008
Posts:
3
Plugin Contributions:
0

Creating Custom Fields for Products based on Category

How do I create a custom field for a product based on it's category?

For example, if I want to sell books, I would want to replace "manufacturer" with "Author", "Editor" and "Publisher"

and if I want to sell music, I would want to replace manufacturer with fields like "artiste/band", "producer", "songwriter" and "label"

10 Feb 2008, 6:28 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Creating Custom Fields for Products based on Category

This is where Product Types are useful. Search on that in the forum and the FAQs.

10 Feb 2008, 7:42 PM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Creating Custom Fields for Products based on Category

There is a bit dated book product type module that does just this in the downloads section - written by moku

11 Feb 2008, 12:19 AM
#4
kma1819 avatar

kma1819

New Zenner

Join Date:
Feb 2008
Posts:
3
Plugin Contributions:
0

Re: Creating Custom Fields for Products based on Category

Thank You! I did search the forums for "product type" and found some useful information.

I did find the thread about the product type book and also "How do Product Type files work (Programmer View)" which, to me, explained the coding pretty well, but did not tell me what files to make the changes to nor where I could locate those files (which would have been helpful as I am new to this thing).

Also I found this link to be useful with ideas also, but it sounds a little complicated: http://www.zen-cart.com/forum/showthread.php?t=6888

I have not yet tried any thing like this yet though.

11 Feb 2008, 6:03 AM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Creating Custom Fields for Products based on Category

Your second link kinda outlines copying the files from one of the default optional product types and which files...

11 Feb 2008, 10:20 PM
#6
kma1819 avatar

kma1819

New Zenner

Join Date:
Feb 2008
Posts:
3
Plugin Contributions:
0

Re: Creating Custom Fields for Products based on Category

yea well that's the thing ... I read the thread on Moka's book and then I was like, ok, "where do I start?" "What file do I edit?" "Which directory do I locate the file(s) / save the file(s) to?" and then I saw that thread which seemed to answer some of those questions. The thing is, while I do have some experience designing websites, this is the first time I'm looking at setting up a shop, so all of this is new to me.

12 Feb 2008, 10:51 AM
#7
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Creating Custom Fields for Products based on Category

See if you can get the Moka's book module as this has this done already