<?xml version="1.0"?>
<config>
    <modules>
        <Smartwave_Ajaxcart>
            <version>1.0.1</version>
        </Smartwave_Ajaxcart>
    </modules>
    <frontend>
        <layout>
            <updates>
                <smartwave_ajaxcart module="smartwave_ajaxcart">
                    <file>smartwave_ajaxcart.xml</file>
                </smartwave_ajaxcart>
            </updates>
        </layout>
        <routers>
            <ajaxcart>
                <use>standard</use>
                <args>
                    <module>Smartwave_Ajaxcart</module>
                    <frontName>ajaxcart</frontName>
                </args>
            </ajaxcart>
        </routers>
		<events>
           <core_block_abstract_prepare_layout_before>
               <observers>
                   <smartwave_ajaxcart_prepare_layout_before>
                       <class>ajaxcart/observer</class>
                       <method>prepareLayoutBefore</method>
                   </smartwave_ajaxcart_prepare_layout_before>
               </observers>
           </core_block_abstract_prepare_layout_before>
		</events>
    </frontend>
    <adminhtml>
		<acl>
			<resources>
				<all>
					<title>Allow Everything</title>
				</all>
				<admin>
					<children>
						<system>
								<children>
									<config>
										<children>
											<ajaxcart translate="title" module="ajaxcart">
												<title>Smartwave Ajax Cart</title>
											</ajaxcart>
										</children>
									</config>
								</children>
							</system>
					</children>
				</admin>
			</resources>
		</acl>
    </adminhtml>
	<default>
		<ajaxcart>
			<addtocart>
                <autoclose>5</autoclose>
				<enablecategory>0</enablecategory>
				<enableproduct>0</enableproduct>
			</addtocart>
			<addtolinks>
				<enablecategory>0</enablecategory>
				<enableproduct>0</enableproduct>
			</addtolinks>
		</ajaxcart>
	 </default>	
    <global>
        <models>
            <ajaxcart>
                <class>Smartwave_Ajaxcart_Model</class>
                <resourceModel>ajaxcart_mysql4</resourceModel>
            </ajaxcart>
            <ajaxcart_mysql4>
                <class>Smartwave_Ajaxcart_Model_Mysql4</class>
                <entities>
                    <ajaxcart>
                        <table>ajaxcart</table>
                    </ajaxcart>
                </entities>
            </ajaxcart_mysql4>
        </models>
        <resources>
            <ajaxcart_setup>
                <setup>
                    <module>Smartwave_Ajaxcart</module>
                </setup>
                <connection>
                    <use>core_setup</use>
                </connection>
            </ajaxcart_setup>
            <ajaxcart_write>
                <connection>
                    <use>core_write</use>
                </connection>
            </ajaxcart_write>
            <ajaxcart_read>
                <connection>
                    <use>core_read</use>
                </connection>
            </ajaxcart_read>
        </resources>
        <blocks>
            <ajaxcart>
                <class>Smartwave_Ajaxcart_Block</class>
            </ajaxcart>
        </blocks>
        <helpers>
            <ajaxcart>
                <class>Smartwave_Ajaxcart_Helper</class>
            </ajaxcart>
        </helpers>
    </global>
</config>