This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/modules/cart/cart_construct.xml
2011-05-03 09:49:01 +10:00

129 lines
2.6 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1" ?>
<construct>
<!-- Module name -->
<module>cart</module>
<!-- Module supporting database table -->
<table>cart</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>date_orig</order_by>
<!-- Default SQL limit for SQL queries -->
<limit>25</limit>
<!-- Schema version (used to determine if the schema has change during upgrades) -->
<version>1</version>
<!-- Database indexes -->
<index>
<account>account_id</account>
<session>session_id</session>
<parent>cart_parent_id</parent>
</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>
<account_id>
<type>I8</type>
</account_id>
<session_id>
<type>C(32)</type>
</session_id>
<!-- 0: PRODUCT, 1: HOSTING, 2: DOMAINNAMES, 3: AD-HOC ITEM -->
<cart_type>
<type>I4</type>
</cart_type>
<product_id>
<type>I4</type>
</product_id>
<product_attr>
<type>X2</type>
<convert>array</convert>
</product_attr>
<quantity>
<type>I4</type>
</quantity>
<coupon>
<type>C(16)</type>
</coupon>
<recurr_schedule>
<type>I4</type>
</recurr_schedule>
<host_type>
<type>C(16)</type>
</host_type>
<domain_tld_id>
<type>I4</type>
</domain_tld_id>
<domain_name>
<type>C(128)</type>
</domain_name>
<domain_tld>
<type>C(16)</type>
</domain_tld>
<domain_term>
<type>I4</type>
</domain_term>
<cart_parent_id>
<type>I4</type>
</cart_parent_id>
<ad_hoc_sku>
<type>C(16)</type>
</ad_hoc_sku>
<ad_hoc_name>
<type>C(128)</type>
</ad_hoc_name>
<ad_hoc_desc>
<type>C(255)</type>
</ad_hoc_desc>
<ad_hoc_amount>
<type>F</type>
</ad_hoc_amount>
<ad_hoc_setup>
<type>F</type>
</ad_hoc_setup>
<ad_hoc_discount>
<type>F</type>
</ad_hoc_discount>
<ad_hoc_taxable>
<type>L</type>
</ad_hoc_taxable>
<service_id>
<type>I8</type>
</service_id>
</field>
<!-- Methods for this class, and the fields they have access to, if applicable -->
<method></method>
<!-- Method triggers -->
<trigger></trigger>
<!-- Template page display titles -->
<title>
<ad_hoc>Ad Hoc Item</ad_hoc>
</title>
<!-- Template helpers -->
<tpl>
</tpl>
</construct>