For building microsites, you can remotely load in a Javascript helper library, that will give you instant access to all the available libraries that have been available, complete with product metdata including description and pricing.

Copy and paste the code snippet below:

The Javascript file has no 3rd party library dependencies and has functions to manage library, shopping cart and checkout options.

API details

  • $safetyserve.skuGetAll()
    Returns an array of all the available libraries
  • $safetyserve.skuGet()
    Returns the first library
  • $safetyserve.skuGet( skuId )
    Returns library with the given skuId
  • $safetyserve.skuCount()
    Returns number of libraries
  • $safetyserve.cartClear()
    Clear the shopping cart of all items
  • $safetyserve.cartAdd( skuId )
    Adds the given skuId to the cart; must be valid
  • $safetyserve.cartDelete( skuId )
    Deletes the given skuId from the cart
  • $safetyserve.cartGetCount()
    Gets the number of items in the cart
  • $safetyserve.cartGet()
    Returns all the items in a cart
  • $safetyserve.cartGetTotalPrice()
    Calculates the total price in the cart
  • $safetyserve.getCartUrl()
    Gets the URL to the final shopping cart experience, passing over the necessary cart details
  • $safetyserve.getPriceDollar( price )
    Returns dollar portion of the given price (0.00)
  • $safetyserve.getPriceCents( price )
    Returns cents portion of the given price (0.00)