Volusion

volusion.com

This is a copy & paste JavaScript integration.
Configuration Instructions
1
Sign into your Rejoiner Account and copy your Rejoiner Site ID.

For Rejoiner v1 -- Click  Implementation

For Rejoiner2 -- Click Settings.

2
From your Volusion Admin Panel, navigate to Design > Site Content.
3
Scroll down to Article 117 ShoppingCart.asp, and click on the “117.” After filling in your Rejoiner 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 here',
        domain: 'yourdomain.com',
    };

    var _rejoiner = _rejoiner || [];
    var rjVersion = rejoinerAcct.siteId.length === 7 ? 'rj2' :'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/' + rjVersion + '.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 here',
        domain: 'yourdomain.com',
    };

    var _rejoiner = _rejoiner || [];
    var rjVersion = rejoinerAcct.siteId.length === 7 ? 'rj2' :'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/' + rjVersion + '.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 here',
        domain: 'yourdomain.com',
    };

    var _rejoiner = _rejoiner || [];
    var rjVersion = rejoinerAcct.siteId.length === 7 ? 'rj2' :'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/' + rjVersion + '.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 here',
        domain: 'yourdomain.com',
    };

    var _rejoiner = _rejoiner || [];
    var rjVersion = rejoinerAcct.siteId.length === 7 ? 'rj2' :'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/' + rjVersion + '.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.

Still need help? Contact Us Contact Us