Difference between revisions of "Setting up Yotpo Mail After Purchase"

From Spiffy Stores Knowledge Base

Line 1: Line 1:
 
If you've already added the Yotpo Reviews Widget, you now have the option of adding the Mail After Purchase function.  This process takes a few steps, but the benefit from this is that you can collect reviews to display in your store automatically, rather than emailing your customers manually or using a service like MailChimp to email your customers.
 
If you've already added the Yotpo Reviews Widget, you now have the option of adding the Mail After Purchase function.  This process takes a few steps, but the benefit from this is that you can collect reviews to display in your store automatically, rather than emailing your customers manually or using a service like MailChimp to email your customers.
  
== Step 1 - Retrieve your Yotpo App Key and Secret Key ==
+
The setup cost of the Yotpo Mail After Purchase function is a one-off fee of $35 AUD.  To have us set it up for you, please email us at [[ mailto:support@spiffystores.com.au ]] with the following information...
  
App Key
+
# The email address and password you use to log in to Yotpo.  They need to be for the xxx of the Yotpo account, as we cannot generate keys without admin access.<br><br>
 +
# Your Yotpo App Key and Secret Key<br><br>
 +
 
 +
== Retrieving your Yotpo App Key and Secret Key ==
 +
 
 +
App Key<br><br>
 
# Log in to your Yotpo Dashboard
 
# Log in to your Yotpo Dashboard
 
# Hover over the person icon in the top right, and click "Settings".
 
# Hover over the person icon in the top right, and click "Settings".
 
# Scroll down to the bottom of the page and copy your APP Key
 
# Scroll down to the bottom of the page and copy your APP Key
# Paste your App Key into the "App Key" field below.  
+
# Paste your App Key into the email you send us.  
  
Secret Key
+
Secret Key<br><br>
 
# To retrieve your secret key, you'll need to click the "Get Secret Key" button.   
 
# To retrieve your secret key, you'll need to click the "Get Secret Key" button.   
 
# A link will be sent to you with a code
 
# A link will be sent to you with a code
 
# Paster the code from the email into the "Enter the code" box
 
# Paster the code from the email into the "Enter the code" box
# Your Secret key will now be displayed, and you should paste it into the "Secret Key" field below.  
+
# Your Secret key will now be displayed.  
 
+
# Paste your Secret Key into the email you send us. <br>
When you have both of these fields filled, submit the form below.
 
 
 
<html>
 
<form id="utoken" action="https://api.yotpo.com/oauth/token" method="post">
 
<label for="client_id">App Key</label>
 
<input type="text" id="client_id" required>
 
<label for="client_secret">Secret Key</label>
 
<input type="text" id="client_secret" required>
 
<input type="hidden" id="grant_type" value="client_credentials">
 
<button type="submit">Submit</button>
 
</form>
 
 
 
<script>
 
var form = document.getElementById("utoken");
 
 
 
form.onsubmit = function (e) {
 
  // stop the regular form submission
 
  e.preventDefault();
 
 
 
  // collect the form data while iterating over the inputs
 
  var data = {};
 
  var Appkey =
 
  for (var i = 0, ii = form.length; i < ii; ++i) {
 
    var input = form[i];
 
    if (input.name) {
 
      data[input.name] = input.value;
 
    }
 
  }
 
 
 
  // construct an HTTP request
 
  var xhr = new XMLHttpRequest();
 
  xhr.open(form.method, form.action, true);
 
  xhr.setRequestHeader('Content-Type', 'application/json; charset=UTF-8');
 
 
 
  // send the collected data as JSON
 
  xhr.send(JSON.stringify(data));
 
 
 
  xhr.onloadend = function () {
 
    // done
 
  };
 
};
 
  
</script>
+
When you have both of these fields filled, please email us with this info, and request that we add the conversion code to your store for you
</html>
 

Revision as of 13:05, 12 May 2021

If you've already added the Yotpo Reviews Widget, you now have the option of adding the Mail After Purchase function. This process takes a few steps, but the benefit from this is that you can collect reviews to display in your store automatically, rather than emailing your customers manually or using a service like MailChimp to email your customers.

The setup cost of the Yotpo Mail After Purchase function is a one-off fee of $35 AUD. To have us set it up for you, please email us at [[ mailto:support@spiffystores.com.au ]] with the following information...

  1. The email address and password you use to log in to Yotpo. They need to be for the xxx of the Yotpo account, as we cannot generate keys without admin access.

  2. Your Yotpo App Key and Secret Key

Retrieving your Yotpo App Key and Secret Key

App Key

  1. Log in to your Yotpo Dashboard
  2. Hover over the person icon in the top right, and click "Settings".
  3. Scroll down to the bottom of the page and copy your APP Key
  4. Paste your App Key into the email you send us.

Secret Key

  1. To retrieve your secret key, you'll need to click the "Get Secret Key" button.
  2. A link will be sent to you with a code
  3. Paster the code from the email into the "Enter the code" box
  4. Your Secret key will now be displayed.
  5. Paste your Secret Key into the email you send us.

When you have both of these fields filled, please email us with this info, and request that we add the conversion code to your store for you