Install Justuno on Neto

Here is an easy walkthrough of the Justuno installation on Neto

At a glance: 
Video Walkthrough
Instructions

Last updated: 006/01/2022


Either watch the video below or follow the instructions


Step 1: From your Neto dashboard find the settings wheel in the right hand corner and then find the Add-on store section within the drop down menu

click Add On Store



Step 2: Once you are in the app store, find the marketing section and then find Justuno and hit install

find Justuno



Step 3: Then head to Justuno.com and sign up for a risk free 14 day trial. Once you are on your Justuno dashboard find the settings section on the right-hand side. In your settings section you find a tab called embed. 

Copy-Embed-Code

 

Step 4: In your Neto dashboard place the code below on the footer section of the widget.

Replace Justuno Account Number on the second line with the Justuno Account Number shown on the embed code page (top right). 




[%ajax_loader content_type_name:'1' current_sku:'1' parent_sku:'1' user:username:'1'%]
<script data-cfasync="false">window.ju_num="Justuno Account Number";window.asset_host='//cdn.jst.ai/';(function(i,s,o,g,r,a,m){i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)};a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script',asset_host+'vck.js','juapp');
juapp('local','pageType','[@content_type_name@]');
juapp('local','prodId','[%product sku:'[@current_sku@]'%][%param *body%][%if [@parent_sku@] ne ''%][@parent_sku@][%else%][@current_sku@][%/if%][%/param%][%/product%]');
juapp('local','custId','[@user:username@]');

window.juapp=window.juapp||function(){(window.juapp.q=window.juapp.q||[]).push(arguments)}
var juCartItems = [];
[%cart_items%]
    [%param *body%]
        juCartItems.push({
        productid: '[%if [@parent_sku@] ne ''%][@parent_sku@][%else%][@sku@][%/if%]',
        variationid: '[@sku@]',
        sku:'[@sku@]',
        quantity: [@qty@],
        price: [@price@],
        name: '[@model@]'
        });
    [%/param%]
[%/cart_items%]
juapp('cartItems',juCartItems);

window.juapp=window.juapp||function(){(window.juapp.q=window.juapp.q||[]).push(arguments)}
var juNeto = {
  // Custom functions for cart tracking
  cartItemAdd: function(nProduct){
    juapp(
      'cartItemAdd',
      {
        productid:nProduct.parent_sku || nProduct.SKU,
        variationid:nProduct.SKU,
        sku:nProduct.SKU,
        name:nProduct.name,
        quantity:nProduct.qty,
        price:nProduct.price
      }
    );
juapp('cart',{currency:'AUD'});
  },
  cartItemRemove: function(nProduct){
    juapp(
      'cartItemRemove',
      {
        productid:nProduct.parent_sku || nProduct.SKU,
        variationid:nProduct.SKU,
        sku:nProduct.SKU
      }
    );
  },
  addToCart: function(){
      var nProduct = $.getLastItemAdded();
      juNeto.cartItemAdd(nProduct);
  },
  addMultiToCart: function(){
      var nProducts = $.getLastItemsAdded();
      for (var i = 0; i < nProducts.length; i++) {
        juNeto.cartItemAdd(nProducts[i]);
      }
  },
  removeItem: function(){
    var nProducts = $.getLastItemRemoved();
    // for (var i = 0; i < nProducts.length; i++) {
    //   juNeto.cartItemRemove(nProducts[i]);
    // }
    juNeto.cartItemRemove(nProducts);
  },
  init: function(){
      nAddItemCallbacks.push(juNeto.addToCart);
      nAddMultiItemsCallbacks.push(juNeto.addMultiToCart);
      nRemoveItemCallbacks.push(juNeto.removeItem);
  }
}

juNeto.init();
</script>
[%/ajax_loader%]






Step 5: Paste the code below into the Purchase Confirmation section of the widget.

Replace Justuno Account Number on the first line with the Justuno Account Number shown on the embed code page from before. 

Hit install and you're set!  




<script data-cfasync="false">window.ju_num="Justuno Account Number";window.asset_host='//cdn.jst.ai/';(function(i,s,o,g,r,a,m){i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)};a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script',asset_host+'vck.js','juapp');
juapp('local','pageType','[@content_type_name@]');
juapp('local','custId','[@user:username@]');
window.juapp=window.juapp||function(){(window.juapp.q=window.juapp.q||[]).push(arguments)}
[%show_order id:'[@order_id@]'%]
  [%param *header%]
    juapp(
      'order',
      '[@order_id@]',
      {total:[@grand_total@],subtotal:[@subtotal@],tax:[@tax_total@],shipping:[@shipping_total@],currency:'[@config:defaultcurrency@]'}
    );
  [%/param%]
  [%param *body%]
    juapp(
      'orderItem',
      '[@sku@]',
      {name:'[@model@]',quantity:[@qty@],price:[@price@][%item_specifics id:'[@sku@]'%][%param *body%],[@itmspec_name@]:'[@itmspecval_value@]'[%/param%][%/item_specifics%]}
    );
  [%/param%]
[%/show_order%]
</script>