Scot's Scripts FAQs and Module Support

If you don't find the answers here contact us.
Documentation and support for our Miva modules is found here. If you can't find the answer you're looking for contact us and we'll add the information.

ProContent / Reference

Reference

Key Terms and Special Commands

[code]
ProContent item code (replace entire [code] string, do not leave brackets)
[num]
replace with a number, ie; repeat5
:display
command for instant content display, bypassing store morph
:link
command to load a specific piece of content
:rotate
command for setting a product rotation
[cat_code]
Miva Merchant category code
repeat[num]
command for setting the number of times a product is displayed during rotation (optional)
load[num]
command for loading up an array of rotating products from a category (optional)
Using data:
All linked content data is available after loading a ProContent page item. The data can be used as local variables and as page entities. The variable l.settings:ProContent:product:name is displayed on the screen with the entity &ProContent:product:name; Product, page and category data is consistent with any Miva Merchant data.
Product data:
l.settings:ProContent:product
Category data:
l.settings:ProContent:category
Page data:
l.settings:ProContent:page
Rotating products :
l.settings:ProContent:rotation:product
Rotation parent data:
l.settings:ProContent:rotation:product
Basic ProContent Load
Simple loading of linked content
page code:
<mvt:item name="ProContent" param="[code]>
entity:
&mvt:ProContent;
variable:
l.settings:ProContent
Automatic display:
Do nothing but enter the page code and your data will appear.
page code:
<mvt:item name="ProContent" param=":display [code]>
entity:
&mvt:ProContent;
variable:
l.settings:ProContent
Product linked data:
Using a basic load and using data linked to current product (product name for this example.)
page code:
<mvt:item name="ProContent" param="[code]>
entity:
&mvt:ProContent:product:name;
variable:
l.settings:ProContent:product:name
Rotating products
Basic rotational load of a category product.
page code:
<mvt:item name="ProContent" param=":rotate products [cat_code] repeat[num]
entity:
&mvt:ProContent:[cat_code]:rotation:product;
variable:
l.settings:ProContent:[cat_code]:rotation:product
Rotate product array:
Rotational load of product array.
page code:
<mvt:item name="ProContent" param=":rotate products [cat_code] load[num]
foreach page enties:
&mvt:product; (&mvt:product:name;, &:mvt:product:thumbnail;, etc...)
foreach variables:
l.settings:product (l.settings:product:code, l.settings:product:name, etc...)
<mvt:foreach iterator="products" array="ProContent:[cat_code]:rotation">
  &mvt:ProContent:[cat_code]:rotation:product:name;  &mvt:ProContent:[cat_code]:rotation:product:code;
  <br>
</mvt:foreach>
Function:
page code:
entity:
variable:
Function:
page code:
entity:
variable:
Function:
page code:
entity:
variable:
Function:
page code:
entity:
variable:
Function:
page code:
entity:
variable:
updated April 25, 2013