| by admin | No comments

Post Affiliate Pro 3.0 VS iDevAffiliate 4.0

In this page, I’m NOT going to talk about the benefits or advantages of having your own affiliate program. Instead, I will review the affiliate software that can work with Virtuemart. As you will notice from the top menu, I’ve launched an affiliate program for my website. The affiliate software I am using is Post Affiliate Pro (PAP) and having my own integration code with Virtuemart, that is using 2CO and PayPal for payment.

After performing some researches on the third party affiliate software that will work on Virtuemart, I’ve listed out 2 major affiliate software, iDevAffiliate and Post Affiliate Pro. I narrowed down the researches into these two affiliate software and finally I’ve made decision to use Post Affiliate Pro over iDevAffiliate, based on the following criteria:

1) Customer Service (Post Affiliate Pro WIN!)

Post Affiliate Pro: Helpdesk Support, Live Support, Forum
iDevAffiliate: Email Support

** You may notice that many customers had complainted about iDevAffiliate’s poor supports.

2) Refund Policy (Post Affiliate Pro WIN!)

Post Affiliate Pro: Can be refunded within 30 days
iDevAffiliate:  Can ONLY be refunded if their support team ensured that the software fails to function properly. NO refund if you are not satisfied with the software.

3) Upgrade (Post Affiliate Pro WIN!)

Post Affiliate Pro: Lifetime free upgrade
iDevAffiliate: 1 Year free uprade

4) Virtuemart Integration (iDevAffiliate WIN!)

Post Affiliate Pro: Currently only offer integration to Virtuemart
iDevAffiliate: To integrate with Joomla/Virtuemart, you must spend extra money to purchase a separated joomla component at here. This component is very powerful. It can be integrated with Community Builder as well.

5) Features (Post Affiliate Pro WIN!)

Post Affiliate Pro: Text-based and extensive flash-based charts and reports
iDevAffiliate: Text-based report only

Note: iDevAffiliate 5.0 will be released soon. So, when iDevAffiliate 5.0 is launched, I believe the result is DRAW.

6) User Friendliness (DRAW!)

Both affiliate software are easy to use.

7) Interface (Post Affiliate Pro WIN!)
Post Affiliate Pro: Comprehensive but easy to use.
iDevAffiliate: Plain

Conclusion

Personally, I would prefer to use Post Affiliate Pro due to the comparison facts I mentioned above.

Integration Code of Post Affiliate Pro with Virtuemart (2CO and PayPal)

If you’ve tried the online demo of admin control panel, you probably notice that the steps of integrating Virtuemart is to plug their code (that used to register sales) into “checkout.thankyou.php”.

As been told by my programmer, the integration part is not 100% correct. “checkout.thankyou.php” is executed when the customers placed their orders, but they are not making payment yet. So, a commission will only be given after the order is placed and is paid successfully by customers.

Furthermore, if you are using coupon system, the commission should be calculated based on the discounted total price.

Example: Your product’s actual price is $10. A customer uses a 50% off coupon and bought the product. So your system should register the commission based on $5, NOT $10.

Therefore, it should only register a sale when the order is “confirmed” and based on discounted total price (if coupon is applicable). Since I am using 2CO and PayPal, there are two files need to be modified:

1) checkout.2Checkout_result.php (For 2CO)
2) checkout.result.php (For PayPal)

These files are located at ” ../administrator/components/com_virtuemart/html/ “. These two files will be executed and change the order status to “Confirmed” when the customers are linked back to your website after successful payment.

 

1) checkout.2Checkout_result.php (For 2CO)

At around line 80, you should see this line:

 

<h2><?php echo $VM_LANG->_PHPSHOP_PAYMENT_TRANSACTION_SUCCESS ?>.</h2> 

 

After the line above, place the following code:

<!-- VirtueMart PAP Commission Tracking Code - START -->
   <?php
   $q = "SELECT * FROM #__{vm}_orders WHERE order_id=".$d['order_id'];
   $db->query( $q );
   $pap_order_total = $db->f('order_subtotal' )- $db->f('coupon_discount');
   $q = "SELECT * FROM #__{vm}_order_item WHERE order_id=".$d['order_id'];
   $db->query( $q );
   $pap_product_id = $db->f('product_id');
   ?>
   <script id="pap_x2s6df8d" src="https://www.kenymart.com/affiliate/affiliate/scripts/sale.js" type="text/javascript"></script>
   <script type="text/javascript">
   var TotalCost="<?php echo $pap_order_total ?>";
   var OrderID="<?php echo $d['order_id'] ?>";
   var ProductID="<?php echo $pap_product_id ?>";
   var _sc=true;
   papSale();
   </script>  
<!-- VirtueMart PAP Commission Tracking Code - END -->


2) checkout.result.php (For PayPal)

At around line 37, you should see the following line:

<h2><?php echo $VM_LANG->_PHPSHOP_PAYPAL_THANKYOU ?></h2>

Then, after the line above, place the following code:

<!-- VirtueMart PAP Commission Tracking Code - START -->
     <?php
  if($order_status == PAYPAL_VERIFIED_STATUS){ //Only track the commission when the order status is confirmed.
   $q = "SELECT * FROM #__{vm}_orders WHERE order_id= $order_id ";
   $db->query( $q );
   $pap_order_total = $db->f('order_subtotal' )- $db->f('coupon_discount');
   $q = "SELECT * FROM #__{vm}_order_item WHERE order_id= $order_id";
   $db->query( $q );
   $pap_product_id = $db->f('product_id');
   ?>
   <script id="pap_x2s6df8d" src="https://www.kenymart.com/affiliate/affiliate/scripts/sale.js" type="text/javascript"></script>
   <script type="text/javascript">
   var TotalCost="<?php echo $pap_order_total ?>";
   var OrderID="<?php echo $order_id ?>";
   var ProductID="<?php echo $pap_product_id ?>";
   var _sc=true;
   papSale();
   </script>
   <?php
  }
  ?>
  <!-- VirtueMart PAP Commission Tracking Code - END -->

Leave a Reply