Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to Integrate Avantlink Order Teacking & Confirmation with Paid Membership Pro

    • 0
    • 0
    • 0
    • 1
    • 0
    • 0
    • 0
    • 513
    Answer it

    I am having an issue integrating Avantlink Order Tracking and Order confirmation code with Paid membership pro WP. I was sent documents from avantlinks and paid membership pro to follow and implement the task but it did not work with me.

        Here are the codes which needs to be integrate with Paid membership pro. 
        Remember I am using Divi theme on my wp site.

        <script type="text/javascript">
        var _AvantMetrics = _AvantMetrics || [];
        _AvantMetrics.push(['order',{ order_id:'[ORDER_ID]',
        amount:'[ORDER_AMOUNT]',     
        state:'[BILLING_STATE]', country:'[BILLING_COUNTRY]' }]);
        _AvantMetrics.push(['item',{ order_id:'[ORDER_ID]', 
        parent_sku:'[ITEM_PARENT_SKU]', variant_sku:'[ITEM_VARIANT_SKU]', 
        price:'[ITEM_PRICE]', qty:'[ITEM_QUANTITY]' }]);
        </script>

        The code above is for order confirmation and that Avantlink order 
        confirmation code requires different array of variables to verify. And here 
        are the paid membership pro variables that need to be set with the code 
        above i am not sure how to do that

        $order->membership_id
        $pmpro_invoice->billing->state
        $pmpro_invoice->billing->country
        $pmpro_invoice->total
        $pmpro_invoice->discount_code->code
        $pmpro_invoice->accountnumber

    Can someone help me how to use these variables in the avantlink code so it works fine

    Thank you for your help

 1 Answer(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: