1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
4 <base>CRM/Contribute
</base>
6 <comment>able - stores
"product info" for premiums and can be used for non-incentive products
</comment>
7 <name>civicrm_product
</name>
12 <title>Product ID
</title>
13 <type>int unsigned
</type>
14 <required>true
</required>
19 <autoincrement>true
</autoincrement>
23 <uniqueName>product_name
</uniqueName>
24 <title>Product Name
</title>
27 <required>true
</required>
29 <localizable>true
</localizable>
30 <comment>Required product/premium name
</comment>
34 <name>description
</name>
35 <title>Description
</title>
37 <localizable>true
</localizable>
38 <comment>Optional description of the product/premium.
</comment>
47 <comment>Optional product sku or code.
</comment>
52 <title>Options
</title>
54 <localizable>true
</localizable>
55 <comment>Store comma-delimited list of color, size, etc. options for the product.
</comment>
63 <comment>Full or relative URL to uploaded image - fullsize.
</comment>
67 <name>thumbnail
</name>
68 <title>Thumbnail
</title>
71 <comment>Full or relative URL to image thumbnail.
</comment>
78 <comment>Sell price or market value for premiums. For tax-deductible contributions, this will be stored as non_deductible_amount in the contribution record.
</comment>
85 <default>NULL
</default>
86 <comment>3 character string, value from config setting or input via user.
</comment>
89 <table>civicrm_currency
</table>
90 <keyColumn>name
</keyColumn>
91 <labelColumn>full_name
</labelColumn>
92 <nameColumn>name
</nameColumn>
93 <abbrColumn>symbol
</abbrColumn>
100 <name>financial_type_id
</name>
101 <title>Financial Type
</title>
102 <type>int unsigned
</type>
103 <default>NULL
</default>
105 <table>civicrm_financial_type
</table>
106 <keyColumn>id
</keyColumn>
107 <labelColumn>name
</labelColumn>
109 <comment>FK to Financial Type.
</comment>
113 <name>financial_type_id
</name>
114 <table>civicrm_financial_type
</table>
116 <onDelete>SET NULL
</onDelete>
121 <name>min_contribution
</name>
122 <title>Minimum Contribution
</title>
124 <comment>Minimum contribution required to be eligible to select this premium.
</comment>
131 <comment>Actual cost of this product. Useful to determine net return from sale or using this as an incentive.
</comment>
135 <name>is_active
</name>
136 <title>Is Active
</title>
138 <required>true
</required>
139 <comment>Disabling premium removes it from the premiums_premium join table below.
</comment>
143 <name>period_type
</name>
144 <title>Period Type
</title>
147 <default>'rolling'
</default>
148 <comment>Rolling means we set start/end based on current day, fixed means we set start/end for current year or month
149 (e.g.
1 year + fixed -
> we would set start/end for
1/
1/
06 thru
12/
31/
06 for any premium chosen in
2006)
</comment>
151 <callback>CRM_Core_SelectValues::periodType
</callback>
159 <name>fixed_period_start_day
</name>
160 <title>Fixed Period Start Day
</title>
162 <default>0101</default>
163 <comment>Month and day (MMDD) that fixed period type subscription or membership starts.
</comment>
167 <name>duration_unit
</name>
168 <title>Duration Unit
</title>
171 <default>'year'
</default>
173 <callback>CRM_Core_SelectValues::getPremiumUnits
</callback>
181 <name>duration_interval
</name>
182 <title>Duration Interval
</title>
184 <comment>Number of units for total duration of subscription, service, membership (e.g.
12 Months).
</comment>
188 <name>frequency_unit
</name>
189 <title>Frequency Unit
</title>
192 <default>'month'
</default>
193 <comment>Frequency unit and interval allow option to store actual delivery frequency for a subscription or service.
</comment>
195 <callback>CRM_Core_SelectValues::getPremiumUnits
</callback>
203 <name>frequency_interval
</name>
204 <title>Frequency Interval
</title>
206 <comment>Number of units for delivery frequency of subscription, service, membership (e.g. every
3 Months).
</comment>