Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 1 of 1
  1. #1
    Junior Member
    Join Date
    May 2018
    Posts
    1
    Member #
    59145

    Avantlink order confirmation integration with Paid membership pro

    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

  2.  


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 05:03 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com