<script data-metalocator-itemid="123456" data-metalocator-sku="yourskuhere" data-metalocator-title="Where to Buy" data-metalocator-attr-class="yourcustomcssclass" data-metalocator-param-lang="en-GB"></script>The second fragment is responsible for initializing the button fragments. There are no user-editable aspects of the initialization fragment. It looks like the below: Note: Always use the code provided in the MetaLocator Interfaces page.
Button OptionsMost of the options and features of concern are in the window that results from clicking on the button itself. However, the buttons can accept a few options that help to control the behavior and display. All options begin with data-metalocator, so we'll omit that for brevity's sake in the list below
- itemid: (integer,optional) This option manually controls which Interface is triggered by the button. The button interface configuration controls the default value.
- sku: (string,optional) This option controls whether the resulting interface receives a SKU parameter. The SKU parameter is your unique product code that identifies your product in MetaLocator. It should correspond exactly to a SKU value in the Products table of your MetaLocator account. If omitted, the resulting interface will not display product-specific information.
- groupid: (string,optional) The product groupid. This allows the UI to present multiple purchase options for a group of products. This is commonly used to display a UI at the model-level, as opposed to specific product variants (such as a change in color or size).
- param-lang: (string,optional) The resulting locale of the interface. The lang parameter is used to initialize the UI referencing a language file configured in MetaLocator. The language file may contain a numeric identifier which should also be included in this parameter, such as en-GB (1). The "1" indicates this is the first derivative of the default en-GB language file. This allows you to manage multiple language sets for different applications for a given locale. In the context of a Where to Buy UI, the base locale (en-GB) is