Virtue Mart 3 integration
A free e-commerce solution.
This integration method is for Virtue Mart version 3. If you have a lower version, please navigate to the integration method named “Virtue Mart 2”.
Integrate offline payments (cash)
Open file plugins/vmpayment/standard/standard.php and find function plgVmConfirmedOrder.
At the end of it, there is a line $cart->emptyCart – place the following code above it:
/* Post Affiliate Pro integration snippet */
$html .= '<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">'."PostAffTracker.setAccountId('Account_ID');
var sale = PostAffTracker.createSale();
sale.setTotalCost('".$order['details']['BT']->order_subtotal."');
sale.setOrderID('".$order['details']['BT']->order_number."');
sale.setData1('".$order['details']['BT']->email."');
PostAffTracker.register();
</script>";
/* Post Affiliate Pro integration snippet */
Save your work.
Integrate online payments
Open file administrator/components/com_virtuemart/plugins/vmpsplugin.php and find function processConfirmedOrderPaymentResponse.
Add the following code to it’s beginning:
/* Post Affiliate Pro integration snippet */
$html .= '<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">'."PostAffTracker.setAccountId('Account_ID');
var sale = PostAffTracker.createSale();
sale.setTotalCost('".$order['details']['BT']->order_subtotal."');
sale.setOrderID('".$order['details']['BT']->order_number."');
sale.setData1('".$order['details']['BT']->email."');
PostAffTracker.register();
</script>";
/* Post Affiliate Pro integration snippet */
That’s it, it’s integrated.
Do not forget to integrate the click tracking code, to make the sale tracking work correctly.

Integrate CommerceV3 (CV3) with Post Affiliate Pro seamlessly to enhance your e-commerce operations. Discover how to add click and sale tracking codes, enable lifetime commissions, and save customer details effortlessly. Boost your affiliate marketing with our easy-to-follow integration guide. Visit now for a free trial and transform your business!
Explore seamless integrations with Post Affiliate Pro to enhance your affiliate marketing strategies. Discover solutions for e-commerce, email marketing, payments, and more, with easy integrations for platforms like 1&1 E-Shop, 2Checkout, Abicart, and many others. Optimize your affiliate network with these powerful tools.
Discover how ThriveCart seamlessly integrates with Post Affiliate Pro to boost your e-commerce success. Track sales, manage affiliates, and enhance conversions with custom variables and webhooks. Unlock powerful checkout pages, upsells, and affiliate campaigns to maximize revenue from existing traffic. Visit now to transform your business with ThriveCart's top-notch integration!
Integrate Fortune3 with Post Affiliate Pro seamlessly to enhance your e-commerce platform's tracking capabilities. Effortlessly insert tracking codes for click and sale tracking in your Fortune3 admin panel, ensuring accurate affiliate monitoring and analysis. Discover how Post Affiliate Pro's user-friendly software and 24/7 support can elevate your affiliate management. Create a free account and start optimizing your business today!
Integrate Post Affiliate Pro with ShopSite effortlessly! Our guide provides step-by-step instructions for implementing sale and click tracking codes to boost your affiliate marketing. Perfect for small and medium-sized businesses aiming to enhance their e-commerce capabilities. Visit now and start maximizing your affiliate commissions!
Discover how Affilimate integration with Post Affiliate Pro streamlines affiliate revenue and analytics, boosting your conversion rates and earnings. Easily connect via API and enjoy features like SKU-level reporting and dynamic subID tracking. Start optimizing your affiliate marketing today with a free trial!