Forums / Templates, Stylesheets, Page Layout / show custom product fields on new and all product pages

show custom product fields on new and all product pages

Locked

Started by crl on 22 Sep 2007, 6:19 PM · Views: 2,577

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
22 Sep 2007, 6:19 PM
#1
crl avatar

crl

New Zenner

Join Date:
Aug 2007
Posts:
15
Plugin Contributions:
0

show custom product fields on new and all product pages

Hello all,
I added some custom fields to my products using the method in this thread
http://www.zen-cart.com/forum/showthread.php?t=57924&highlight=custom+fields
and it works great - but I wanted some of these to show up in the new product page and the all products page.
I have tried all of the easy stuff, but the new fields just wont show.
Any hints?
Thanks
Craig

22 Sep 2007, 7:10 PM
#2
kobra avatar

kobra

Black Belt

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

Re: show custom product fields on new and all product pages

That thread travels all over the place so it is difficult to determine what you have done....

A url to your site and possibly direct to a page(s) would assist

Zen-Venom Get Bitten

22 Sep 2007, 7:46 PM
#3
crl avatar

crl

New Zenner

Join Date:
Aug 2007
Posts:
15
Plugin Contributions:
0

Re: show custom product fields on new and all product pages

Thanks.
Here is a product page (on a test site, not live yet) - I added a couple of fields for Composer, arranger, online price and ensemble.

http://s92588529.onlinehome.us/catalog/index.php?main_page=product_info&cPath=141&products_id=197

I want to have the composer field also show up in the product listings -

http://s92588529.onlinehome.us/catalog/index.php?main_page=products_all

primarily new products and all products, but eventually in category view as well.

22 Sep 2007, 10:00 PM
#4
kobra avatar

kobra

Black Belt

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

Re: show custom product fields on new and all product pages

Are these integrated into the admin side?

Did you create a new "product type"?

Did you edit the tpl_profuct_info_display.php to make them show on the product page?

Have you looked at the product listing files?

Zen-Venom Get Bitten

23 Sep 2007, 3:55 AM
#5
crl avatar

crl

New Zenner

Join Date:
Aug 2007
Posts:
15
Plugin Contributions:
0

Re: show custom product fields on new and all product pages

kobra:

Are these integrated into the admin side?

Yes, i can add the new fields in the "add product" part of admin

Did you create a new "product type"?
No, i just altered exisitng products

Did you edit the tpl_profuct_info_display.php to make them show on the product page?
Yes, and that one works OK

Have you looked at the product listing files?

I am doing that tonigth, I am guessing I need to look at the templates for each page, as well as all the files that lead into it. I think part of the problem may be that I am missing a file somewhere, and the new fields I created are not being added to the array that is being called when I look at the product listings.

23 Sep 2007, 5:27 AM
#6
kobra avatar

kobra

Black Belt

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

Re: show custom product fields on new and all product pages

The data is initially pulled with /includes/modules/product_listing.php

Add your DB calls there

Zen-Venom Get Bitten

1 Oct 2007, 4:04 AM
#7
crl avatar

crl

New Zenner

Join Date:
Aug 2007
Posts:
15
Plugin Contributions:
0

Re: show custom product fields on new and all product pages

Thanks for the help... I think I have now found all of the files that need to be altered, its now just a matter of getting the syntax correct.