One way to do it is to find a similar field to what you are trying to make ...
You want to make a field such as:
product_is_fragile
And that would be added to the products table as a: tinyint 1
To find a similar field to "trace" and follow the pattern of, you could use:
product_is_call
Note: this field has "functionality" as well ... so some places are not necessary to duplicate this field ...
But using this field, you could use the Developer's Tool Kit and see where it is referenced in the admin for the purpose of adding/editing ...
Once you can add/edit the products with this new field, you can then use it in the catalog, such as in a shipping module to manage when they should show or not show ...
Zen Cart is made of patterns ... so cloning something similar to what you need is usually a matter of finding the "keys" to the "pattern" ...
product_is_call
products_is_call
Should bring up all text defines and field usage for this field ...
At first it will appear overwhelming ...
Don't let that throw you ...
Remember with Product Types, Zen Cart has 5 sets of files ... so you will more or less be seeing 5 times what you might actually need to work with ...
NOTE: The admin is not overrideable ... so you will want to save your original files and your custom files for future upgrades ...
NOTE: if you are not already v1.3.6 ... it would be a good time to get there first, before building in your custom code ...
Take your time, this is not as bad as a looks ...
Bookmarks