Modular Merchant is an eCommerce Shopping cart software for every kind of product - shipped goods, digital delivery and subscription services. The integration method uses its built in templates.

You can track order ID, products details, coupon code and customer email.

1.

Order tracking (per sale)

It is possible to customize the design of the order confirmation (or "checkout receipt") page by editing the corresponding template in the Template Package Sandbox, located at Design> Template Package Sandbox. The template that the corresponds to the checkout receipt page is _checkoutreceipt.tpl, and it may be necessary to first add that template to the current template package, using the Populate tool ( http://kb.modularmerchant.com/populate-templates-a741.php )

When editing the checkout_receipt.tpl file switch to 'Plain Text Editor' and find:
{RECEIPT-ADDRESS-BLOCK-END}

Add this code above that line:

<script id="pap_x2s6df8d" src="http://URL_TO_PostAffiliatePro/scripts/salejs.php" type="text/javascript">
</script>
<script type="text/javascript">
var sale = PostAffTracker.createSale();
sale.setTotalCost('{ORDER-GRAND-TOTAL}');
sale.setOrderID('{ORDER-ID}');
{IF-COUPON-BEGIN}sale.setCoupon('{COUPON-CODE}');{IF-COUPON-END}
sale.setData1('{CUSTOMER-EMAIL}');
PostAffTracker.register();
</script>

Save your changes and that's it.

2.

Per product integration

If you want to integrate per product commissions, just use this code instead of the one from the first step:

<script id="pap_x2s6df8d" src="http://URL_TO_PostAffiliatePro/scripts/salejs.php" type="text/javascript">
</script>
<script type="text/javascript">
{RECEIPT-PRODUCT-BLOCK-BEGIN}

var sale = PostAffTracker.createSale();
sale.setTotalCost('{PRODUCT-LINE-PRICE}');
sale.setOrderID('{ORDER-ID}');
sale.setProductID('{PRODUCT-NAME}');
{IF-COUPON-BEGIN}sale.setCoupon('{COUPON-CODE}');{IF-COUPON-END}
sale.setData1('{CUSTOMER-EMAIL}');
PostAffTracker.register();
{RECEIPT-PRODUCT-BLOCK-END}

</script>

That's it. Now your shop is integrated.


Do not forget to integrate you shop with the click tracking code. You can use template editor as well.