–Hidden comment

Use attributes in format region_from and region_to= to change the languages showing in language switcher.
Available regions are:
europe_from europe_to
asia_from asia_to
mideast_from mideast_to
america_from america_to

Example:
europe_from=0 europe_to=22 will put all languages (ordered in language switcher settings) from 1 to 21 to Europe region:
asia_from=22 asia_to=25 will put all languages from 23 to 24 (so only 2) into Asia region.

Cratejoy

Cratejoy is home to 1000s of monthly subscription boxes and crate clubs for all passions. Find curated gift boxes for all occasions and recipients, or learn how to start your own subscription box!

Cratejoy integration consists of adding integration code to thank you page and setting up API connection with Post Affiliate Pro (Network) to track the subscription payments.

Insert integration code to thank you page

Log in to your Cratejoy admin panel and navigate to the Design section and click on the Code button under your currently published design.

Select the option to edit the live store and navigate to Components -> Customer -> Thank_you -> Customer Thank You Content and component.html.

Insert the following code at the end of this file:

<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 papDiscountMultiplier = {{order.total_price}} / ({{order.sub_total}} - {{order.total_shipping}});
  {% for product in order.products %}
    var sale{{ loop.index }} = PostAffTracker.createSale();
    var papProductPrice = {{product.price}} * papDiscountMultiplier;
    sale{{ loop.index }}.setTotalCost((papProductPrice)/ 100);
   	if('{{product.subscription_id}}' != 'None') {
      sale{{ loop.index }}.setOrderID('{{product.subscription_id}}');
    } else {
      sale{{ loop.index }}.setOrderID('{{order.id}}({{ loop.index }})');
    }
    sale{{ loop.index }}.setProductID('{{product.instance.sku}}');
  {% endfor %}
PostAffTracker.register();
</script>

Save your changes.

Set up API credentials and configure PAP plugin

In your Cratejoy admin panel navigate to Settings -> API and select the option to Generate a new key.

This will open a new window with Client ID and Client Secret Key, copy both and navigate to your Post Affiliate Pro (Network) merchant panel to Configuration -> Plugins and activate the Cratejoy webhook handling plugin.

Once the plugin is activated click Configure and enter your API details. Save the plugin to start tracking the recurring payments.

Note: The plugin requires either the Recurring Commissions feature or Lifetime Commissions plugin to be able to track the recurring payments.

Back to Integrations Create account for FREE
Learn about the CrakRevenue Affiliate Program's key details, campaign restrictions, rules, commissions, and more before you join.

CrakRevenue Affiliate Program

Learn about the CrakRevenue Affiliate Program's key details, campaign restrictions, rules, commissions, and more before you join.

Learn about the CPALance Affiliate Program's key details, campaign restrictions, rules, commissions, and more before you join.

CPALance Affiliate Program

Learn about the CPALance Affiliate Program's key details, campaign restrictions, rules, commissions, and more before you join.

Learn about the DealGecko Affiliate Program's key details, campaign restrictions, rules, commissions, and more before you join.

DealGecko Affiliate Program

Learn about the DealGecko Affiliate Program's key details, campaign restrictions, rules, commissions, and more before you join.

Learn about the Rezervco Affiliate Program's key details, campaign restrictions, rules, commissions, and more before you join.

Rezervco Affiliate Program

Learn about the Rezervco Affiliate Program's key details, campaign restrictions, rules, commissions, and more before you join.

Our website uses cookies. By continuing we assume your permission to deploy cookies as detailed in our privacy and cookies policy.

×

Schedule a one-on-one call and discover how Post Affiliate Pro can benefit your business.

We’re available on multiple dates

Schedule a call