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.

AMP: Accelerated Mobile Pages / Do Not Exit ComponentModule_Render_Start(...) Explanation

Do Not Exit ComponentModule_Render_Start(...) Explanation

This is an advanced topic. The configuration switch was added in version 3.12.

The AMP pages by default exit the Miva Merchant system once displayed. If this does not happen, then other page data will be output and the AMP page will be invalid.

Most of the time this works, but there are some instances where it doesn't. In these rare cases there is an easy fix.

First, on each of your AMP page templates (product page, category page, etc...) change the default AMP setting of:

<mvt:item name="amp" />
to
<mvt:if expr="g.amp EQ 1">
<mvt:item name="amp" />
<mvt:exit />
</mvt:if>

Next, go to the AMP module configuration and turn on the

Do not exit ComponentModule_Render_Start(...) function

switch and then save.

Now modules that need to run after the AMP page is loaded will work as expected.

updated February 03, 2020