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>
10 <component>CiviContribute
</component>
11 <labelField>name
</labelField>
14 <title>Product ID
</title>
15 <type>int unsigned
</type>
16 <required>true
</required>
24 <autoincrement>true
</autoincrement>
28 <uniqueName>product_name
</uniqueName>
29 <title>Product Name
</title>
32 <required>true
</required>
34 <localizable>true
</localizable>
35 <comment>Required product/premium name
</comment>
39 <name>description
</name>
40 <title>Description
</title>
42 <localizable>true
</localizable>
43 <comment>Optional description of the product/premium.
</comment>
52 <comment>Optional product sku or code.
</comment>
57 <title>Options
</title>
59 <localizable>true
</localizable>
60 <comment>Store comma-delimited list of color, size, etc. options for the product.
</comment>
68 <comment>Full or relative URL to uploaded image - fullsize.
</comment>
72 <name>thumbnail
</name>
73 <title>Thumbnail
</title>
76 <comment>Full or relative URL to image thumbnail.
</comment>
83 <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>
90 <default>NULL
</default>
91 <comment>3 character string, value from config setting or input via user.
</comment>
94 <table>civicrm_currency
</table>
95 <keyColumn>name
</keyColumn>
96 <labelColumn>full_name
</labelColumn>
97 <nameColumn>name
</nameColumn>
98 <abbrColumn>symbol
</abbrColumn>
105 <name>financial_type_id
</name>
106 <title>Financial Type ID
</title>
107 <type>int unsigned
</type>
108 <default>NULL
</default>
110 <table>civicrm_financial_type
</table>
111 <keyColumn>id
</keyColumn>
112 <labelColumn>name
</labelColumn>
114 <comment>FK to Financial Type.
</comment>
116 <label>Financial Type
</label>
121 <name>financial_type_id
</name>
122 <table>civicrm_financial_type
</table>
124 <onDelete>SET NULL
</onDelete>
129 <name>min_contribution
</name>
130 <title>Minimum Contribution
</title>
132 <comment>Minimum contribution required to be eligible to select this premium.
</comment>
139 <comment>Actual cost of this product. Useful to determine net return from sale or using this as an incentive.
</comment>
143 <name>is_active
</name>
144 <title>Is Active
</title>
146 <required>true
</required>
147 <comment>Disabling premium removes it from the premiums_premium join table below.
</comment>
151 <name>period_type
</name>
152 <title>Period Type
</title>
155 <default>'rolling'
</default>
156 <comment>Rolling means we set start/end based on current day, fixed means we set start/end for current year or month
157 (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>
159 <callback>CRM_Core_SelectValues::periodType
</callback>
167 <name>fixed_period_start_day
</name>
168 <title>Fixed Period Start Day
</title>
170 <default>0101</default>
171 <comment>Month and day (MMDD) that fixed period type subscription or membership starts.
</comment>
175 <name>duration_unit
</name>
176 <title>Duration Unit
</title>
179 <default>'year'
</default>
181 <callback>CRM_Core_SelectValues::getPremiumUnits
</callback>
189 <name>duration_interval
</name>
190 <title>Duration Interval
</title>
192 <comment>Number of units for total duration of subscription, service, membership (e.g.
12 Months).
</comment>
196 <name>frequency_unit
</name>
197 <title>Frequency Unit
</title>
200 <default>'month'
</default>
201 <comment>Frequency unit and interval allow option to store actual delivery frequency for a subscription or service.
</comment>
203 <callback>CRM_Core_SelectValues::getPremiumUnits
</callback>
211 <name>frequency_interval
</name>
212 <title>Frequency Interval
</title>
214 <comment>Number of units for delivery frequency of subscription, service, membership (e.g. every
3 Months).
</comment>