Skip to content

Instantly share code, notes, and snippets.

@steveosoule
Created September 20, 2017 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steveosoule/79d6c0d9866e1813224904214eed0ca8 to your computer and use it in GitHub Desktop.
Save steveosoule/79d6c0d9866e1813224904214eed0ca8 to your computer and use it in GitHub Desktop.
Miva - PATR mvt:call PROD
<mvt:assign name="g.Product_URL" value="l.settings:product:link $ '?Session_ID=' $ g.Session_ID $ '&Error_MissingAttributes=1&Quantity=' $ g.Quantity" />
<mvt:assign name="l.counter" value="1" />
<mvt:while expr="l.counter LE miva_array_elements(g.Product_Attributes[l.counter])">
<mvt:assign name="g.Product_URL" value="g.Product_URL $ '&Product_Attributes[' $ l.counter $ ']:value=' $ g.Product_Attributes[ l.counter ]:value" />
<mvt:assign name="l.counter" value="l.counter + 1" />
</mvt:while>
<mvt:call action="g.Product_URL" method="'GET'">
<mvt:eval expr="s.callvalue" />
</mvt:call>
<mvt:exit/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment