<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Internal hooks for FA actions?]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=1916&amp;type=atom" />
	<updated>2011-02-28T04:09:13Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=1916</id>
		<entry>
			<title type="html"><![CDATA[Internal hooks for FA actions?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=8397#p8397" />
			<content type="html"><![CDATA[<p>I have seen how there are hooks provided for a custom&nbsp; module to do its thing but what about hooks in the internal FA code to trigger a custom action when FA does something like create a new invoice?</p><p>I am looking at integrating FA with Virtuemart ecommerce which has this sort of hook I describe by enabling user defined class overrides like this:</p><div class="codebox"><pre><code>if (defined(&#039;VM_ALLOW_EXTENDED_CLASSES&#039;) &amp;&amp; defined(&#039;VM_THEMEPATH&#039;) &amp;&amp; VM_ALLOW_EXTENDED_CLASSES &amp;&amp; file_exists(VM_THEMEPATH.&#039;user_class/shop_browse_queries.php&#039;)) {
    // Load the theme-user_class shop_browse_queries.php
    require_once( VM_THEMEPATH.&#039;user_class/shop_browse_queries.php&#039; );
} else {
    require_once( PAGEPATH. &quot;shop_browse_queries.php&quot; );
}</code></pre></div><p>The VM custom class can then call the parent class. Picture a customisation where VM added a sales order&nbsp; in FA whenever an order was made through the checkout and when the order was shipped in FA, the VM order status was also updated to show as Shipped.</p><p>This would make it very simple to build powerful integration with any system.</p><p>Please advise if there is a class override feature in FA.</p><p>Rod</p>]]></content>
			<author>
				<name><![CDATA[rodw]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=713</uri>
			</author>
			<updated>2011-02-28T04:09:13Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=8397#p8397</id>
		</entry>
</feed>
