Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jonas Eriksson 930 posts 1825 karma points
    Oct 28, 2014 @ 01:10
    Jonas Eriksson
    0

    tea-commerce.min.js - when do I need it?

    After installation the installer tells me to add the script refs:

     

    <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>

    <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery.form/3.50/jquery.form.min.js"></script>

    <script type="text/javascript" src="/App_Plugins/teacommerce/assets/scripts/tea-commerce.min.js"></script>

    <script type="text/javascript">

      _storeId = [fetch the store id from Umbraco here];

    </script>

    What will that do for me? Is it for the backend, or the frontend? And when do I want to use it on the frontend? 

    Thanks

  • Anders Burla 2560 posts 8256 karma points
    Oct 28, 2014 @ 08:20
    Anders Burla
    0

    Hi Jonas

    It is used for the JavaScript API and when you want to post an HTML form using ajax.
    http://documentation.teacommerce.net/javascript-api/
    http://documentation.teacommerce.net/html-api/

    Kind regards
    Anders

Please Sign in or register to post replies

Write your reply to:

Draft