Select Page

Order Level Directives

Order level directives are markers on a DOM element that allow you to interact with the FastSpring Store Builder Library through HTML.  They are used to retrieve information about the current order session.  These directives typically require two parts:

  1.  The Store Builder Library Script
  2. The attribute you are wanting to retrieve – “data-fsc-order-…”

These fill the element that the directive is applied to.  In the opening tag you will provide the path and the attribute you want to retrieve.  An example will look like this:

<span data-fsc-order-total>
	<-- Text here will be filled -->
</span>

Order Level Directives