272 lines
7.9 KiB
XML
272 lines
7.9 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
|
<construct>
|
|
<!-- Module name -->
|
|
<module>product</module>
|
|
<!-- Module supporting database table -->
|
|
<table>product</table>
|
|
<!-- Module dependancy(s) (module wont install if these modules are not yet installed) -->
|
|
<dependancy></dependancy>
|
|
<!-- DB cache in seconds -->
|
|
<cache>0</cache>
|
|
<!-- Default order_by field for SQL queries -->
|
|
<order_by>sku</order_by>
|
|
<!-- Default SQL limit for SQL queries -->
|
|
<limit>25</limit>
|
|
<!-- Schema version (used to determine if the schema has change during upgrades) -->
|
|
<version>0</version>
|
|
|
|
<!-- Database indexes -->
|
|
<index>
|
|
<sku>sku</sku>
|
|
<active>active</active>
|
|
</index>
|
|
|
|
<!-- Database fields -->
|
|
<field>
|
|
<!-- Record ID -->
|
|
<id>
|
|
<index>1</index>
|
|
<type>I4</type>
|
|
<unique>1</unique>
|
|
</id>
|
|
<!-- Site ID -->
|
|
<site_id>
|
|
<index>1</index>
|
|
<type>I4</type>
|
|
</site_id>
|
|
<!-- Date record created -->
|
|
<date_orig>
|
|
<convert>date-now</convert>
|
|
<display>Date Created</display>
|
|
<type>I8</type>
|
|
</date_orig>
|
|
<!-- Date record updated -->
|
|
<date_last>
|
|
<convert>date-now</convert>
|
|
<display>Date Updated</display>
|
|
<type>I8</type>
|
|
</date_last>
|
|
<sku>
|
|
<type>C(32)</type>
|
|
<unique>1</unique>
|
|
<min_len>1</min_len>
|
|
<max_len>32</max_len>
|
|
<validate>alphanumeric</validate>
|
|
<display>SKU</display>
|
|
</sku>
|
|
<taxable>
|
|
<type>L</type>
|
|
</taxable>
|
|
<!-- Record active (BOOL)-->
|
|
<active>
|
|
<display>Status</display>
|
|
<type>L</type>
|
|
</active>
|
|
<position>
|
|
<type>I4</type>
|
|
</position>
|
|
<cart_multiple>
|
|
<type>L</type>
|
|
</cart_multiple>
|
|
<group_avail>
|
|
<type>X2</type>
|
|
<validate>any</validate>
|
|
<convert>array</convert>
|
|
<arr_force>1</arr_force>
|
|
</group_avail>
|
|
<avail_category_id>
|
|
<type>C(255)</type>
|
|
<validate>any</validate>
|
|
<convert>array</convert>
|
|
<arr_force>1</arr_force>
|
|
</avail_category_id>
|
|
<!-- Is product a hosting product -->
|
|
<host>
|
|
<display>Hosting</display>
|
|
<type>L</type>
|
|
</host>
|
|
<!-- Hosting server ID -->
|
|
<host_server_id>
|
|
<display>Hosting Server</display>
|
|
<type>I4</type>
|
|
</host_server_id>
|
|
<host_provision_plugin_data>
|
|
<type>X2</type>
|
|
<convert>array</convert>
|
|
</host_provision_plugin_data>
|
|
<!-- Can domains be purchased with this hosting plan? -->
|
|
<host_allow_domain>
|
|
<display>Allow Domain Purchases with this Hosting Plan?</display>
|
|
<type>L</type>
|
|
</host_allow_domain>
|
|
<!-- Force a purchase of a domain name with this plan -->
|
|
<host_allow_host_only>
|
|
<display>Allow Purchases without a domain?</display>
|
|
<type>L</type>
|
|
</host_allow_host_only>
|
|
<!-- Provide a discount to a domain name for this product -->
|
|
<host_discount_tld>
|
|
<convert>array</convert>
|
|
<display>Discount the following TLDs</display>
|
|
<type>X2</type>
|
|
</host_discount_tld>
|
|
<!-- Amount of discount for the domain name -->
|
|
<host_discount_tld_amt>
|
|
<display>Domain Purchase Discount Amount</display>
|
|
<type>F</type>
|
|
</host_discount_tld_amt>
|
|
<discount>
|
|
<type>L</type>
|
|
</discount>
|
|
<discount_amount>
|
|
<type>F</type>
|
|
</discount_amount>
|
|
<!-- 1 is RECURRING product,2 is a TRIAL product -->
|
|
<price_type>
|
|
<type>I4</type>
|
|
</price_type>
|
|
<price_base>
|
|
<display>Base Price</display>
|
|
<type>F</type>
|
|
<min_len>1</min_len>
|
|
<max_len>32</max_len>
|
|
<validate>float</validate>
|
|
</price_base>
|
|
<price_setup>
|
|
<type>F</type>
|
|
</price_setup>
|
|
<price_group>
|
|
<type>X2</type>
|
|
<convert>array</convert>
|
|
</price_group>
|
|
<price_recurr_default>
|
|
<display>Default Billing Schedule</display>
|
|
<type>I4</type>
|
|
</price_recurr_default>
|
|
<!-- Recurring Type: 0=BILL ON ANNIVERSARY, 1: BILL ON FIXED PERIOD -->
|
|
<price_recurr_type>
|
|
<display>Recurring Billing Schedule</display>
|
|
<type>L</type>
|
|
</price_recurr_type>
|
|
<price_recurr_weekday>
|
|
<display>Day of Month to Bill</display>
|
|
<type>I4</type>
|
|
</price_recurr_weekday>
|
|
<price_recurr_week>
|
|
<type>I4</type>
|
|
</price_recurr_week>
|
|
<price_recurr_schedule>
|
|
<type>L</type>
|
|
</price_recurr_schedule>
|
|
<price_recurr_cancel>
|
|
<type>L</type>
|
|
</price_recurr_cancel>
|
|
<price_trial_length_type>
|
|
<type>I4</type>
|
|
</price_trial_length_type>
|
|
<price_trial_length>
|
|
<type>I4</type>
|
|
</price_trial_length>
|
|
<price_trial_prod>
|
|
<type>I4</type>
|
|
<asso_table>product</asso_table>
|
|
<asso_field>sku</asso_field>
|
|
</price_trial_prod>
|
|
<assoc_req_prod>
|
|
<type>X2</type>
|
|
<asso_table>product</asso_table>
|
|
<asso_field>sku</asso_field>
|
|
<convert>array</convert>
|
|
</assoc_req_prod>
|
|
<assoc_req_prod_type>
|
|
<type>I4</type>
|
|
</assoc_req_prod_type>
|
|
<assoc_grant_prod>
|
|
<type>X2</type>
|
|
<asso_table>product</asso_table>
|
|
<asso_field>sku</asso_field>
|
|
<convert>array</convert>
|
|
<arr_force>1</arr_force>
|
|
</assoc_grant_prod>
|
|
<assoc_grant_group>
|
|
<type>X2</type>
|
|
<convert>array</convert>
|
|
</assoc_grant_group>
|
|
<assoc_grant_group_type>
|
|
<type>I4</type>
|
|
</assoc_grant_group_type>
|
|
<assoc_grant_group_days>
|
|
<type>I4</type>
|
|
</assoc_grant_group_days>
|
|
<thumbnail>
|
|
<display>Product Thumbnail</display>
|
|
<type>C(128)</type>
|
|
</thumbnail>
|
|
<prod_plugin>
|
|
<type>L</type>
|
|
</prod_plugin>
|
|
<prod_plugin_file>
|
|
<type>C(128)</type>
|
|
</prod_plugin_file>
|
|
<prod_plugin_data>
|
|
<type>X2</type>
|
|
<convert>array</convert>
|
|
</prod_plugin_data>
|
|
<price_recurr_modify>
|
|
<type>L</type>
|
|
</price_recurr_modify>
|
|
<modify_waive_setup>
|
|
<type>L</type>
|
|
</modify_waive_setup>
|
|
<modify_product_arr>
|
|
<type>X2</type>
|
|
<convert>array</convert>
|
|
</modify_product_arr>
|
|
</field>
|
|
|
|
<!-- Methods for this class, and the fields they have access to, if applicable -->
|
|
<method>
|
|
<add>sku,taxable,active,group_avail,avail_category_id,discount,price_type,price_base,price_setup,price_group,price_recurr_type,price_recurr_weekday,price_recurr_week,price_recurr_default</add>
|
|
<update>id,date_last,sku,taxable,active,group_avail,position,cart_multiple,avail_category_id,discount,discount_amount,price_type,price_base,price_setup,price_group,price_recurr_type,price_recurr_weekday,price_recurr_week,price_recurr_schedule,price_recurr_cancel,price_trial_length_type,price_trial_length,price_trial_prod,assoc_req_prod,assoc_req_prod_type,assoc_grant_prod,assoc_grant_group,assoc_grant_group_type,assoc_grant_group_days,thumbnail,price_recurr_default,host,host_server_id,host_provision_plugin_data,host_allow_domain,host_allow_host_only,host_discount_tld,host_discount_tld_amt,prod_plugin,prod_plugin_file,prod_plugin_data,price_recurr_modify,modify_waive_setup,modify_product_arr</update>
|
|
<delete>id</delete>
|
|
<view>id,date_orig,date_last,sku,taxable,active,group_avail,position,cart_multiple,avail_category_id,discount,discount_amount,price_type,price_base,price_setup,price_group,price_recurr_type,price_recurr_weekday,price_recurr_week,price_recurr_schedule,price_recurr_cancel,price_trial_length_type,price_trial_length,price_trial_prod,assoc_req_prod,assoc_req_prod_type,assoc_grant_prod,assoc_grant_group,assoc_grant_group_type,assoc_grant_group_days,thumbnail,price_recurr_default,host,host_server_id,host_provision_plugin_data,host_allow_domain,host_allow_host_only,host_discount_tld,host_discount_tld_amt,prod_plugin,prod_plugin_file,prod_plugin_data,price_recurr_modify,modify_waive_setup,modify_product_arr</view>
|
|
<search>id,date_orig,date_last,sku,taxable,active,group_avail,position,cart_multiple,avail_category_id,price_type,price_recurr_schedule,price_recurr_cancel,price_base,price_setup</search>
|
|
</method>
|
|
|
|
<!-- Method triggers -->
|
|
<trigger></trigger>
|
|
|
|
<!-- Template page display titles -->
|
|
<title>
|
|
<view>Products</view>
|
|
</title>
|
|
|
|
<!-- Template helpers -->
|
|
<tpl>
|
|
<search_show>
|
|
<checkbox>
|
|
<field>id</field>
|
|
<type>checkbox</type>
|
|
<width>25px</width>
|
|
</checkbox>
|
|
<sku>
|
|
<field>sku</field>
|
|
</sku>
|
|
<price_base>
|
|
<field>price_base</field>
|
|
</price_base>
|
|
<active>
|
|
<field>active</field>
|
|
<width>20px</width>
|
|
</active>
|
|
<description>
|
|
<field>description</field>
|
|
<width>48%</width>
|
|
</description>
|
|
<icon>
|
|
<width>20px</width>
|
|
</icon>
|
|
</search_show>
|
|
</tpl>
|
|
</construct>
|