• Resolved nichetom

    (@nichetom)


    HI there,

    I’m looking to integrate tracking from the affiliate program commission junction.

    They have provided me with the following sample code to add to my order received page, any help would be appreciated regarding how to place this in /order-received/ endpoint and the modification its asking for.

    <!-- BEGIN COMMISSION JUNCTION TRACKING CODE -->
    
    <iframe height="1" width="1" frameborder="0" scrolling="no" src="https://www.emjcd.com/tags/c?containerTagId=14209&ITEMx=[ItemSku]&AMTx=[AmountofItem]&QTYx=[Quantity]&CID=1529328&OID=[OID]&TYPE=385769&AMOUNT=[Subtotal]&DISCOUNT=[DiscountAmount]&CURRENCY=[CURRENCY]&COUPON=[couponcode]" name="cj_conversion" ></iframe>
    
    <!-- END COMMISSION JUNCTION TRACKING CODE -->

    https://wordpress.org/plugins/woocommerce/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Mike Jolley

    (@mikejolley)

    Thread Starter nichetom

    (@nichetom)

    Thank you. So where it says “The order object contains all the order data you should need, including line items.”

    This means I should be able to find the variables needed and plug them into that iframe code somehow? Any direction is GREATLY appreciated!

    [ItemSku]
    [AmountofItem]
    [Quantity]
    [Subtotal]
    [DiscountAmount]
    [CURRENCY]
    [couponcode]

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Thread Starter nichetom

    (@nichetom)

    Hi Mike, I appreciate that.

    Could you please walk me through how I could update this iframe code?

    I will send you $35 paypal for your time if possible.

    <!-- BEGIN COMMISSION JUNCTION TRACKING CODE -->
    
    <iframe height="1" width="1" frameborder="0" scrolling="no" src="https://www.emjcd.com/tags/c?containerTagId=14209&ITEMx=$product->get_sku();&AMTx=[AmountofItem]&QTYx=[Quantity]&CID=1529328&OID=[OID]&TYPE=385769&AMOUNT=[Subtotal]&DISCOUNT=[DiscountAmount]&CURRENCY=[CURRENCY]&COUPON=[couponcode]" name="cj_conversion" ></iframe>
    
    <!-- END COMMISSION JUNCTION TRACKING CODE -->
    Plugin Contributor Mike Jolley

    (@mikejolley)

    You can request someone on jobs.wordpress.net – I cannot accept payment and do freelance work. Shouldn’t be a complex addition based on the code I shared.

    Thread Starter nichetom

    (@nichetom)

    thank you for the direction!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘adding affiliate program code to order-details or t’ is closed to new replies.