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 <type>int unsigned
</type>
13 <required>true
</required>
18 <autoincrement>true
</autoincrement>
22 <uniqueName>product_name
</uniqueName>
23 <title>Product Name
</title>
26 <required>true
</required>
28 <localizable>true
</localizable>
29 <comment>Required product/premium name
</comment>
33 <name>description
</name>
34 <title>Description
</title>
36 <localizable>true
</localizable>
37 <comment>Optional description of the product/premium.
</comment>
46 <comment>Optional product sku or code.
</comment>
51 <title>Options
</title>
53 <localizable>true
</localizable>
54 <comment>Store comma-delimited list of color, size, etc. options for the product.
</comment>
62 <comment>Full or relative URL to uploaded image - fullsize.
</comment>
66 <name>thumbnail
</name>
67 <title>Thumbnail
</title>
70 <comment>Full or relative URL to image thumbnail.
</comment>
77 <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>
84 <default>NULL
</default>
85 <comment>3 character string, value from config setting or input via user.
</comment>
88 <table>civicrm_currency
</table>
89 <keyColumn>name
</keyColumn>
90 <labelColumn>full_name
</labelColumn>
91 <nameColumn>numeric_code
</nameColumn>
98 <name>financial_type_id
</name>
99 <title>Financial Type
</title>
100 <type>int unsigned
</type>
101 <default>NULL
</default>
103 <table>civicrm_financial_type
</table>
104 <keyColumn>id
</keyColumn>
105 <labelColumn>name
</labelColumn>
107 <comment>FK to Financial Type.
</comment>
111 <name>financial_type_id
</name>
112 <table>civicrm_financial_type
</table>
114 <onDelete>SET NULL
</onDelete>
119 <name>min_contribution
</name>
120 <title>Minimum Contribution
</title>
122 <comment>Minimum contribution required to be eligible to select this premium.
</comment>
129 <comment>Actual cost of this product. Useful to determine net return from sale or using this as an incentive.
</comment>
133 <name>is_active
</name>
134 <title>Is Active
</title>
136 <required>true
</required>
137 <comment>Disabling premium removes it from the premiums_premium join table below.
</comment>
141 <name>period_type
</name>
142 <title>Period Type
</title>
145 <default>'rolling'
</default>
146 <comment>Rolling means we set start/end based on current day, fixed means we set start/end for current year or month
147 (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>
149 <callback>CRM_Core_SelectValues::periodType
</callback>
157 <name>fixed_period_start_day
</name>
158 <title>Fixed Period Start Day
</title>
160 <default>0101</default>
161 <comment>Month and day (MMDD) that fixed period type subscription or membership starts.
</comment>
165 <name>duration_unit
</name>
166 <title>Duration Unit
</title>
169 <default>'year'
</default>
171 <callback>CRM_Core_SelectValues::getPremiumUnits
</callback>
179 <name>duration_interval
</name>
180 <title>Duration Interval
</title>
182 <comment>Number of units for total duration of subscription, service, membership (e.g.
12 Months).
</comment>
186 <name>frequency_unit
</name>
187 <title>Frequency Unit
</title>
190 <default>'month'
</default>
191 <comment>Frequency unit and interval allow option to store actual delivery frequency for a subscription or service.
</comment>
193 <callback>CRM_Core_SelectValues::getPremiumUnits
</callback>
201 <name>frequency_interval
</name>
202 <title>Frequency Interval
</title>
204 <comment>Number of units for delivery frequency of subscription, service, membership (e.g. every
3 Months).
</comment>