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>
102 <label>Currency
</label>
106 <name>financial_type_id
</name>
107 <title>Financial Type ID
</title>
108 <type>int unsigned
</type>
109 <default>NULL
</default>
111 <table>civicrm_financial_type
</table>
112 <keyColumn>id
</keyColumn>
113 <labelColumn>name
</labelColumn>
115 <comment>FK to Financial Type.
</comment>
117 <label>Financial Type
</label>
122 <name>financial_type_id
</name>
123 <table>civicrm_financial_type
</table>
125 <onDelete>SET NULL
</onDelete>
130 <name>min_contribution
</name>
131 <title>Minimum Contribution
</title>
133 <comment>Minimum contribution required to be eligible to select this premium.
</comment>
140 <comment>Actual cost of this product. Useful to determine net return from sale or using this as an incentive.
</comment>
144 <name>is_active
</name>
145 <title>Is Active
</title>
147 <required>true
</required>
148 <comment>Disabling premium removes it from the premiums_premium join table below.
</comment>
152 <name>period_type
</name>
153 <title>Period Type
</title>
156 <default>'rolling'
</default>
157 <comment>Rolling means we set start/end based on current day, fixed means we set start/end for current year or month
158 (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>
160 <callback>CRM_Core_SelectValues::periodType
</callback>
168 <name>fixed_period_start_day
</name>
169 <title>Fixed Period Start Day
</title>
171 <default>0101</default>
172 <comment>Month and day (MMDD) that fixed period type subscription or membership starts.
</comment>
176 <name>duration_unit
</name>
177 <title>Duration Unit
</title>
180 <default>'year'
</default>
182 <callback>CRM_Core_SelectValues::getPremiumUnits
</callback>
190 <name>duration_interval
</name>
191 <title>Duration Interval
</title>
193 <comment>Number of units for total duration of subscription, service, membership (e.g.
12 Months).
</comment>
197 <name>frequency_unit
</name>
198 <title>Frequency Unit
</title>
201 <default>'month'
</default>
202 <comment>Frequency unit and interval allow option to store actual delivery frequency for a subscription or service.
</comment>
204 <callback>CRM_Core_SelectValues::getPremiumUnits
</callback>
212 <name>frequency_interval
</name>
213 <title>Frequency Interval
</title>
215 <comment>Number of units for delivery frequency of subscription, service, membership (e.g. every
3 Months).
</comment>