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>
99 <name>financial_type_id
</name>
100 <title>Financial Type
</title>
101 <type>int unsigned
</type>
102 <default>NULL
</default>
104 <table>civicrm_financial_type
</table>
105 <keyColumn>id
</keyColumn>
106 <labelColumn>name
</labelColumn>
108 <comment>FK to Financial Type.
</comment>
112 <name>financial_type_id
</name>
113 <table>civicrm_financial_type
</table>
115 <onDelete>SET NULL
</onDelete>
120 <name>min_contribution
</name>
121 <title>Minimum Contribution
</title>
123 <comment>Minimum contribution required to be eligible to select this premium.
</comment>
130 <comment>Actual cost of this product. Useful to determine net return from sale or using this as an incentive.
</comment>
134 <name>is_active
</name>
135 <title>Is Active
</title>
137 <required>true
</required>
138 <comment>Disabling premium removes it from the premiums_premium join table below.
</comment>
142 <name>period_type
</name>
143 <title>Period Type
</title>
146 <default>'rolling'
</default>
147 <comment>Rolling means we set start/end based on current day, fixed means we set start/end for current year or month
148 (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>
150 <callback>CRM_Core_SelectValues::periodType
</callback>
158 <name>fixed_period_start_day
</name>
159 <title>Fixed Period Start Day
</title>
161 <default>0101</default>
162 <comment>Month and day (MMDD) that fixed period type subscription or membership starts.
</comment>
166 <name>duration_unit
</name>
167 <title>Duration Unit
</title>
170 <default>'year'
</default>
172 <callback>CRM_Core_SelectValues::getPremiumUnits
</callback>
180 <name>duration_interval
</name>
181 <title>Duration Interval
</title>
183 <comment>Number of units for total duration of subscription, service, membership (e.g.
12 Months).
</comment>
187 <name>frequency_unit
</name>
188 <title>Frequency Unit
</title>
191 <default>'month'
</default>
192 <comment>Frequency unit and interval allow option to store actual delivery frequency for a subscription or service.
</comment>
194 <callback>CRM_Core_SelectValues::getPremiumUnits
</callback>
202 <name>frequency_interval
</name>
203 <title>Frequency Interval
</title>
205 <comment>Number of units for delivery frequency of subscription, service, membership (e.g. every
3 Months).
</comment>