Select Page

Product Level Directives

Product 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 a single product.  These directives typically require three parts:

  1.  The Store Builder Library Script
  2. A path to a specific product – “data-fsc-item-path=…”
  3. The attribute you are wanting to retrieve – “data-fsc-item-…”

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-item-path="furious-falcon" data-fsc-item-display>
	<-- Text here will be filled -->

Product Level Directives