Volusion

Integration Notes

This is a copy & paste JavaScript integration.

Before you start

Here are some things to know before you begin this process.

  • You must have a Rejoiner account. If you are curious about Rejoiner, book a call with us. 
  • You will need to your Implementation Details when you set up an integration. 

Configuration Instructions

1
Sign into your Rejoiner Account and go to Settings > Domain. Look for your Implementation Details:

2
From your Volusion Admin Panel, navigate to Design > Site Content.
3
Scroll down to Article 117 ShoppingCart.asp, and click on the 117<code>. After filling in your Rejoiner <code>Site ID and Domain, paste the code below into the article using the code </> view.

 
<script type="text/javascript">
var rejoinerAcct = {
  siteId: 'YOUR-SITE-ID',
  domain: 'YOUR-DOMAIN',
};

var _rejoiner = _rejoiner || [];
_rejoiner.push(['setAccount', rejoinerAcct.siteId]);
_rejoiner.push(['setDomain', rejoinerAcct.domain]);
(function () {
  var s = document.createElement('script'); s.type = 'text/javascript';
  s.async = true; s.src = 'https://cdn.rejoiner.com/js/v4/rj2.lib.js';
  var x = document.getElementsByTagName('script')[0];
  x.parentNode.insertBefore(s, x);
})();

$.post('/AjaxCart.asp', function (data) {
  if (data && data.Products && data.Products.length) {
    var cartTotal = +(data.Totals[0].CartTotal.replace(/[$,]+/g, ''));
    _rejoiner.push(['setCartData', {
      cart_value: Math.ceil(100 * cartTotal),
      cart_item_count: +data.Products.length,
    }]);
    $.each(data.Products, function (i, p) {
      var ix = p.ProductIndex, unitPrice = 0;
      unitPrice = +(p.ProductPrice.replace(/[$,]+/g, '')) / p.Quantity;
      _rejoiner.push(['setCartItem', {
        product_id: p.ProductCode,
        name: p.ProductName,
        price: Math.ceil(100 * unitPrice),
        item_qty: +p.Quantity,
        qty_price: Math.ceil(100 * (unitPrice * p.Quantity)),
        image_url: location.origin + '/v/vspfiles/photos/' + p.ProductCode + '-2T.jpg',
      }]);
    });
  }
}, 'json');
</script>
	
4
Find Article 116  one-page_checkout.asp, and paste the code below into the </html> view using your own Rejoiner Site ID and Domain.
<script type='text/javascript'>
var rejoinerAcct = {
  siteId: 'YOUR-SITE-ID',
  domain: 'YOUR-DOMAIN',
};

var _rejoiner = _rejoiner || [];
_rejoiner.push(['setAccount', rejoinerAcct.siteId]);
_rejoiner.push(['setDomain', rejoinerAcct.domain]);
(function () {
  var s = document.createElement('script'); s.type = 'text/javascript';
  s.async = true; s.src = 'https://cdn.rejoiner.com/js/v4/rj2.lib.js';
  var x = document.getElementsByTagName('script')[0];
  x.parentNode.insertBefore(s, x);
})();
</script>
	
5
Find Article 130, ROI JavaScripts and paste the code below into the </html> view using your own Rejoiner Site ID and Domain. 
<script type='text/javascript'>
var rejoinerAcct = {
  siteId: 'YOUR-SITE-ID',
  domain: 'YOUR-DOMAIN',
};

var _rejoiner = _rejoiner || [];
_rejoiner.push(['setAccount', rejoinerAcct.siteId]);
_rejoiner.push(['setDomain', rejoinerAcct.domain]);
_rejoiner.push(['sendConversion']);
(function () {
  var s = document.createElement('script'); s.type = 'text/javascript';
  s.async = true; s.src = 'https://cdn.rejoiner.com/js/v4/rj2.lib.js';
  var x = document.getElementsByTagName('script')[0];
  x.parentNode.insertBefore(s, x);
})();
</script>
	
6

From your Volusion Admin Panel, navigate to Design > Themes.

7
Under Active Template > Advanced Editing, click Edit HTML.


8
The template file may look different for your theme. Find the  </head> tag.

9

Insert the following snippet (after filling in your Site ID and Domain) just before  the </head> tag.

<script type='text/javascript'>
var rejoinerAcct = {
  siteId: 'YOUR-SITE-ID',
  domain: 'YOUR-DOMAIN',
};

var _rejoiner = _rejoiner || [];
_rejoiner.push(['setAccount', rejoinerAcct.siteId]);
_rejoiner.push(['setDomain', rejoinerAcct.domain]);
(function () {
  var s = document.createElement('script'); s.type = 'text/javascript';
  s.async = true; s.src = 'https://cdn.rejoiner.com/js/v4/rj2.lib.js';
  var x = document.getElementsByTagName('script')[0];
  x.parentNode.insertBefore(s, x);
})();
</script>
	
10

Make sure to SAVE the template file!

Testing Instructions

1
Walk through the testing guidelines outlined here.
If you offer PayPal as a payment option, please verify that Auto Return is activated by  following these instructions.

Next steps

Have a question?

Contact us at integrations@rejoiner.com

Still need help? Contact Us Contact Us