AwoAffiliate » Troubleshooting

Please post to the forum with specific question.


If you are having problems with commissions being calculated, then verify that the AwoAffiliate plugin is enabled. It can be enabled directly on the dashboard of AwoAffiliate.


If you are having problems with commissions, check that the injection below is installed properly.
This section requires the user to have access to the website files for edit. You may need to use an ftp client to access the files.
5.1.1 Affiliate Commission
1.   Open the file $webroot/administrator/components/com_virtuemart/classes/ps_order.php
2.   Right AFTER this line (around line 174 in 1.1.4 or 227 in 1.1.5):
PHP Code:
                <font color="#000000">
                <font color="#0000BB">$db</font><font color="#007700">-></font><font color="#0000BB">buildQuery</font><font color="#007700">(</font><font color="#DD0000">'INSERT'</font><font color="#007700">, </font><font color="#DD0000">'#__{vm}_order_history'</font><font color="#007700">, </font><font color="#0000BB">$fields </font><font color="#007700">);
                <br></font><font color="#0000BB">$db</font><font color="#007700">-></font><font color="#0000BB">query</font><font color="#007700">(); 
                <br></font><font color="#0000BB"></font>
                </font>
                                        
      Enter the following code:
PHP Code:
                <font color="#000000">
                <font color="#0000BB"></font><font color="#FF8000"># awocoupon_affiliate_code START ===============================================================
                <br></font><font color="#0000BB">$awo_file </font><font color="#007700">= </font><font color="#0000BB">JPATH_ADMINISTRATOR</font><font color="#007700">.</font><font color="#0000BB">DS</font><font color="#007700">.</font><font color="#DD0000">"components"</font><font color="#007700">.</font><font color="#0000BB">DS</font><font color="#007700">.</font><font color="#DD0000">"com_awocoupon_affiliate"</font><font color="#007700">.</font><font color="#0000BB">DS</font><font color="#007700">.</font><font color="#DD0000">"assets"</font><font color="#007700">.</font><font color="#0000BB">DS</font><font color="#007700">.</font><font color="#DD0000">"virtuemart"</font><font color="#007700">.</font><font color="#0000BB">DS</font><font color="#007700">.</font><font color="#DD0000">"ps_awo_affiliate.php"</font><font color="#007700">;
                <br>if(</font><font color="#0000BB">file_exists</font><font color="#007700">(</font><font color="#0000BB">$awo_file</font><font color="#007700">)) {
                <br>        require_once </font><font color="#0000BB">$awo_file</font><font color="#007700">;
                <br>        </font><font color="#0000BB">ps_awo_affiliate</font><font color="#007700">::</font><font color="#0000BB">process</font><font color="#007700">(</font><font color="#0000BB">$d</font><font color="#007700">,</font><font color="#0000BB">$curr_order_status</font><font color="#007700">);
                <br>}
                <br></font><font color="#FF8000"># awocoupon_affiliate_code END ================================================================= 
                <br></font><font color="#0000BB"></font>
                </font>
                                        

Please contact us in the forum with any specific questions.