How to integrate with Shoporama

Follow the steps blow to integrate ProfitMeitrcs with Shoporama

Part 1: Create an API key

Part 2: Complete integration in ProfitMetircs

Part 3: Install Serverside Hybrid Universal Integration Script

Part 4: Install setEmail  Script

 

Part 1: Create an API key

  1. Click "Indstillinger"
    How To Delete API Access in Shoporama - Step 2

  2. Click "API"
    How To Delete API Access in Shoporama - Step 3

  3. Click "Tilføj adgang"
    How To Delete API Access in Shoporama - Step 4

  4. Type "ProfitMetrics" and select "Kun læse"
    How To Delete API Access in Shoporama - Step 6
  5. Click "GEM"
    How To Delete API Access in Shoporama - Step 7
  6. Copy the Token
    Accessing Shoporama Webshop API Key - Step 2 (1)

Part 2: Complete integration in ProfitMetrics

  1. Go to https://my.profitmetrics.io/customer/integrations_shoporama_hybrid.php and follow the instructions on the screen

Part 3: Install Serverside Hybrid Universal Integration Script

  1. Click "Indstillinger"
    Adding HTML Fields in Shoporama Webshop Admin - Step 2

  2. Click "HTML-felter"
    Adding HTML Fields in Shoporama Webshop Admin - Step 3
  3. Click "TILFØJ NYT HTML-FELT"
    Adding HTML Fields in Shoporama Webshop Admin - Step 4
  4. Name the field "PM - Script" and click "OK"
    Google Chrome Workflow - Step 10 (2)
  5. Paste the Script and select "Tilføj automatisk til <head>"
    Adding HTML Fields in Shoporama Webshop Admin - Step 29
  6. Click "GEM"
    Adding HTML Fields in Shoporama Webshop Admin - Step 30

Part 4: Install setEmail script

  1. Copy this script
    <!-- Start ProfitMetrics - setEmail -->
    <script>
        function _pm_tryemailorderconfirmation() {
            if (null != window.profitMetrics && null != window.profitMetrics.setEmail && typeof window.profitMetrics.setEmail === 'function') {
                window.profitMetrics.setEmail('<{$order->getEmail()|escape}>');
            } else {
                setTimeout(_pm_tryemailorderconfirmation, 500);
            }
        }
        _pm_tryemailorderconfirmation();
    </script>
    <!-- End ProfitMetrics - setEmail -->
  2. Click "Indstillinger"
    Adding HTML Fields in Shoporama Webshop Admin - Step 2-1

  3. Click "Tema-editor"
    Edit Theme in Shoporama Admin Panel - Step 3

  4. Click "/thanks.html"
    Edit Theme in Shoporama Admin Panel - Step 4

  5. Scroll to the bottom and paste the code before the final <{/script}> tag
    Editing Order Information in Shoporama Admin Panel - Step 8 (2)
  6. Click "GEM"
    Editing Order Information in Shoporama Admin Panel - Step 11 (1)

That's it.