Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Adding new Field in admin for products

Adding new Field in admin for products

Locked

Views: 9,990

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
16 Feb 2008, 9:20 PM
#1
homer2004 avatar

homer2004

New Zenner

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

Adding new Field in admin for products

This question might have been asked before but please excuse me if i am repeating it.I am very new to zen cart and slowly getting a hang of it.
My question basically was with regard to adding new product in admin.
My client has a book store and wants to have some fields for product like the writer and publisher name when he is adding the product in the ADMIN PANEL
i am able to add the custom attributes but that only shows up on the front store.
is there a way weather through hard coding or through interface to add the custome fields in the admin?
I really Appreciate any help and again sorry if i am repeating this :oops:

16 Feb 2008, 9:44 PM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: Adding new Field in admin for products

Look at the Product Type Book mod in Downloads (link at top of this page).

16 Feb 2008, 9:56 PM
#3
homer2004 avatar

homer2004

New Zenner

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

Re: Adding new Field in admin for products

i looked that up and there are only Auction Product Type , dgReviews and Value GV-Mod, i search for book mod nothing came either
but if i want to add the field manually how would i do that?

16 Feb 2008, 10:45 PM
#4
gjh42 avatar

gjh42

Black Belt

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

Re: Adding new Field in admin for products

Sorry, the Product Type Book mod is not in Downloads. See the support thread for it. The original author, moku, abandoned it and it has been taken over by hareslade, who has recently released a new version for the latest (1.3.8a) version of Zen Cart.

19 Feb 2008, 2:36 AM
#5
homer2004 avatar

homer2004

New Zenner

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

Re: Adding new Field in admin for products

I have worked with drupal and joomla and slowly making my ways through zen cart now. My question is basically how i can add certain fields in product that do not exist. in drupal a module called CCK allows you to add custom field in your interface such as for example adding date for your product or field such as color choice in your admin or ISBN or extra fields for images. If i want to be able to add fields that do not exist in admin for product and not on front page, how would go about to add them. i dont wanna add module , if i can make modification by coding i would be more than happy because there will be products that still not necessarily contain the fields i need. any help on that would be great:cool:

19 Feb 2008, 2:41 AM
#6
gjh42 avatar

gjh42

Black Belt

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

Re: Adding new Field in admin for products

Given the complexity of Product Type Book, I think you would have to do an immense amount of reinventing the wheel to get a good book display. The mod has provision for adding some custom fields built into it (read the last few pages of the support thread).

A few people have posted about adding new fields; just avoid TheOracle's mod, as it is buggy and not supported.

19 Feb 2008, 3:00 AM
#7
homer2004 avatar

homer2004

New Zenner

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

Re: Adding new Field in admin for products

so other than TheOracle is there like a tutorial as how i can do that,
I view the thread for book type and the link to download it is not working, and there are like 37 pages of post from diff users, i like to actually contribute to that if possible and i have solid background of programming in 3 different web programming , php , asp.net and jsp , as i said i dont mind it to go through coding as long as there are some guide lines or samples i can view and go from there,
if i can get the download link even to that book type , it would be great as i could not find on the thread you posted it.
Thanks Again

19 Feb 2008, 3:22 AM
#8
gjh42 avatar

gjh42

Black Belt

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

Re: Adding new Field in admin for products

Hareslade's new site has a page on the book type mod, and current links to download it.
http://www.jphuk.co.uk/zc/index.php?main_page=document_general_info&cPath=51&products_id=482

Also, there was a post by someone on one of TheOracle's mod threads giving a process for manually creating a custom product field. I believe it was near the end of the thread. That might help you - someone else posted a reply that the process worked well.

19 Feb 2008, 3:27 AM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Adding new Field in admin for products

Additionally, if you look at the built-in product_music product type, you'll see how additional fields can be added and used in various places/ways, not only from database storage but also to templating for storefront and admin etc.

19 Feb 2008, 3:34 AM
#10
homer2004 avatar

homer2004

New Zenner

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

Re: Adding new Field in admin for products

Thanks Alot
I am actually now looking into the tutorials and samples and slowly getting the hang of his. actually i might be able to make a new module for book type. i ll try to see what i can get cracking at.
Thank for all the info

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

gjh42

Black Belt

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

Re: Adding new Field in admin for products

I found the thread with new field instructions: How-To: Add new Properties to your Products by crazy_chris.

19 Feb 2008, 3:43 PM
#12
homer2004 avatar

homer2004

New Zenner

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

Re: Adding new Field in admin for products

now small question , where are the folders and directories for music type product because there is the language folder where it contains the same files as module and the core files. what are the differences and where i can retrieve them?

19 Feb 2008, 6:08 PM
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Adding new Field in admin for products

The music product-type includes many files, such as:

/admin/media_manager.php
/admin/media_types.php
/admin/music_genre.php
/admin/product_music.php
/admin/record_artists.php
/admin/record_company.php
/admin/includes/boxes/extra_boxes/product_music_extras_dhtml.php
/admin/includes/extra_configures/media_manager.php
/admin/includes/extra_datafiles/music_type_database_names.php
/admin/includes/extra_datafiles/music_type_filenames.php
/admin/includes/extra_functions/product_music_functions.php
/admin/includes/languages/english/media_manager.php
/admin/includes/languages/english/media_types.php
/admin/includes/languages/english/music_genre.php
/admin/includes/languages/english/product_music.php
/admin/includes/languages/english/record_artists.php
/admin/includes/languages/english/record_company.php
/admin/includes/languages/english/extra_definitions/product_music.php
/admin/includes/modules/product_music/.
/includes/extra_configures/media_manager.php
/includes/extra_datafiles/music_type_database_names.php
/includes/index_filters/music_genre_filter.php
/includes/index_filters/record_company_filter.php
/includes/languages/english/extra_definitions/YOUR_TEMPLATE/product_music.php
/includes/languages/english/YOUR_TEMPLATE/product_music.php
/includes/modules/YOUR_TEMPLATE/media_manager.php
/includes/modules/pages/product_music_info/.
/includes/modules/sideboxes/YOUR_TEMPLATE/music_genre.php
/includes/modules/sideboxes/YOUR_TEMPLATE/record_companies.php
/includes/templates/YOUR_TEMPLATE/sideboxes/tpl_music_genres_select.php
/includes/templates/YOUR_TEMPLATE/sideboxes/tpl_record_company_select.php
/includes/templates/YOUR_TEMPLATE/templates/tpl_product_music_info_display.php
/includes/templates/YOUR_TEMPLATE/templates/tpl_modules_media_manager.php