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 ... :lamo:
Linda McGrath
If you have to think ... you haven't been zenned ...
**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!