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>
13 <title>Product ID
</title>
14 <type>int unsigned
</type>
15 <required>true
</required>
20 <autoincrement>true
</autoincrement>
24 <uniqueName>product_name
</uniqueName>
25 <title>Product Name
</title>
28 <required>true
</required>
30 <localizable>true
</localizable>
31 <comment>Required product/premium name
</comment>
35 <name>description
</name>
36 <title>Description
</title>
38 <localizable>true
</localizable>
39 <comment>Optional description of the product/premium.
</comment>
48 <comment>Optional product sku or code.
</comment>
53 <title>Options
</title>
55 <localizable>true
</localizable>
56 <comment>Store comma-delimited list of color, size, etc. options for the product.
</comment>
64 <comment>Full or relative URL to uploaded image - fullsize.
</comment>
68 <name>thumbnail
</name>
69 <title>Thumbnail
</title>
72 <comment>Full or relative URL to image thumbnail.
</comment>
79 <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>
86 <default>NULL
</default>
87 <comment>3 character string, value from config setting or input via user.
</comment>
90 <table>civicrm_currency
</table>
91 <keyColumn>name
</keyColumn>
92 <labelColumn>full_name
</labelColumn>
93 <nameColumn>name
</nameColumn>
94 <abbrColumn>symbol
</abbrColumn>
101 <name>financial_type_id
</name>
102 <title>Financial Type
</title>
103 <type>int unsigned
</type>
104 <default>NULL
</default>
106 <table>civicrm_financial_type
</table>
107 <keyColumn>id
</keyColumn>
108 <labelColumn>name
</labelColumn>
110 <comment>FK to Financial Type.
</comment>
114 <name>financial_type_id
</name>
115 <table>civicrm_financial_type
</table>
117 <onDelete>SET NULL
</onDelete>
122 <name>min_contribution
</name>
123 <title>Minimum Contribution
</title>
125 <comment>Minimum contribution required to be eligible to select this premium.
</comment>
132 <comment>Actual cost of this product. Useful to determine net return from sale or using this as an incentive.
</comment>
136 <name>is_active
</name>
137 <title>Is Active
</title>
139 <required>true
</required>
140 <comment>Disabling premium removes it from the premiums_premium join table below.
</comment>
144 <name>period_type
</name>
145 <title>Period Type
</title>
148 <default>'rolling'
</default>
149 <comment>Rolling means we set start/end based on current day, fixed means we set start/end for current year or month
150 (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>
152 <callback>CRM_Core_SelectValues::periodType
</callback>
160 <name>fixed_period_start_day
</name>
161 <title>Fixed Period Start Day
</title>
163 <default>0101</default>
164 <comment>Month and day (MMDD) that fixed period type subscription or membership starts.
</comment>
168 <name>duration_unit
</name>
169 <title>Duration Unit
</title>
172 <default>'year'
</default>
174 <callback>CRM_Core_SelectValues::getPremiumUnits
</callback>
182 <name>duration_interval
</name>
183 <title>Duration Interval
</title>
185 <comment>Number of units for total duration of subscription, service, membership (e.g.
12 Months).
</comment>
189 <name>frequency_unit
</name>
190 <title>Frequency Unit
</title>
193 <default>'month'
</default>
194 <comment>Frequency unit and interval allow option to store actual delivery frequency for a subscription or service.
</comment>
196 <callback>CRM_Core_SelectValues::getPremiumUnits
</callback>
204 <name>frequency_interval
</name>
205 <title>Frequency Interval
</title>
207 <comment>Number of units for delivery frequency of subscription, service, membership (e.g. every
3 Months).
</comment>