Hi,
I am a newbie to zencart, and I decided to create a new product type 'models', I read through the docs, FAQS and posts through hours and spent hours modifying all the scripts and creating tables, for instance I created a table models using the music template Record Artists, and for the extra fields, I used Music Genre as a template, and REcord Company as Model Agency. So far I was testing my first two pull downs, Models Hair and Models Agency, I have gone through the scripts one by one and read all the threads, even checking stuff like record_companies in the source code in all the site, but no matter what when I try to display the new boxes, in the front end, I receive nothing, and something else it shows only Documents from all the sideboxes selected in layout controller! So there has to be a prob somewhere ... I can't find it
BTW what is working so far in Admin is it correctly displays the new fields and related tables in EXtras and it allows to add 'products' in models, I checked every single folder one by one and read all code trying to understand the logic, and it seems fine ... here is what I modified/created >>
Admin
1. Created models.php, models_agency.php, models_hair.php
models from record_artists, models_agency from record_company, and models_hair and the other fields from music genre.
2.admin/includes/boxes/extra_boxes/product_models_extra_dhtml.php
3. admin/includes/boxes/extra_datafiles/model_type_database_names.php
admin/includes/boxes/extra_datafiles/model_type_filenames.php
4.admin/includes/functions/extra_functions/product_model_functions.php
5.admin/includes/languages/extra_definitions/espanol/product_models.php
admin/includes/languages/extra_definitions/english/product_models.php
6.admin/includes/languages/espanol/
models.php
models_agency.php
models_hair.php
and all the other fields similar to models_hair.php
admin/includes/languages/english/
models.php
models_agency.php
models_hair.php
and all the other fields similar to models_hair.php
admin/includes/modules/products_model/
collect_info.php
copy_to_confirm.php
delete_product_confirm.php
update_product.php
Note: those files are the ones I modified
7. Front End
/includes/extra_datafiles/
model_type_database_names.php
8./includes/index_filters/
models_agency_filter.php
models_hair_filter.php
9. /includes/languages/espanol/extra_definitions/
product_model.php
/includes/languages/english/extra_definitions/
product_model.php
10. /includes/languages/espanol/product_models_info.php
/includes/languages/english/product_models_info.php
11. /includes/modules/pages/product_models_info/
main_template_vars.php
main_template_vars_product_type.php
12./includes/modules/sideboxes/
models_agencies.php
models_hairs.php
13. /includes/templates/topmodels/sideboxes/
tpl_models_agency_select.php
tpl_models_hair_select.php
I will do all the other selects as soon as I make these two work.
14./includes/templates/topmodels/templates/tpl_product_models_info_display.php
Any clues?
![]()




