<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Internal hooks for FA actions?]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=1916</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=1916&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Internal hooks for FA actions?.]]></description>
		<lastBuildDate>Mon, 28 Feb 2011 04:09:13 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Internal hooks for FA actions?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=8397#p8397</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (rodw)]]></author>
			<pubDate>Mon, 28 Feb 2011 04:09:13 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=8397#p8397</guid>
		</item>
	</channel>
</rss>
