I am trying to render content and product custom field data from a page I created in Miva (page name = external-data) and conditionally display it on the "PROD" page and in the checkout screens rather than hard coding the data into each screen. The code works fine on the PROD page but for some reason it wont work on the checkout screens. I double checked all the "Items" and still nothing.
Here is the code I added to the Basket page "Basket Content" tab and the "PROD" page:
<mvt:item name="toolkit" param="render|external-data" />
And here is the conditional data in the page "external-data" that should be displayed:
<mvt:if expr="l.settings:item:customfield_values:customfie lds:Available EQ 1">
This item ships from our warehouse
<mvt:if expr="NOT ISNULL l.settings:item:customfield_values:customfields:Tr ansit">
in &mvt:item:customfield_values:customfields:Trans it; Days.
</mvt:if>
</mvt:if>
<mvt:if expr="l.settings:item:customfield_values:customfie lds:Available EQ 2">
This item ships from &mvt:item:customfield_values:customfields:MFG;
<mvt:if expr="NOT ISNULL l.settings:item:customfield_values:customfields:Tr ansit">
in &mvt:item:customfield_values:customfields:Trans it; Days.
</mvt:if>
</mvt:if>
The code works just fine if I hard code it in the "Basket Content" tab on the BASK page, but for some reason if I try to "render" it, the data will not display.
Does the "Render" feature not work here?
Thanks in advance!
Here is the code I added to the Basket page "Basket Content" tab and the "PROD" page:
<mvt:item name="toolkit" param="render|external-data" />
And here is the conditional data in the page "external-data" that should be displayed:
<mvt:if expr="l.settings:item:customfield_values:customfie lds:Available EQ 1">
This item ships from our warehouse
<mvt:if expr="NOT ISNULL l.settings:item:customfield_values:customfields:Tr ansit">
in &mvt:item:customfield_values:customfields:Trans it; Days.
</mvt:if>
</mvt:if>
<mvt:if expr="l.settings:item:customfield_values:customfie lds:Available EQ 2">
This item ships from &mvt:item:customfield_values:customfields:MFG;
<mvt:if expr="NOT ISNULL l.settings:item:customfield_values:customfields:Tr ansit">
in &mvt:item:customfield_values:customfields:Trans it; Days.
</mvt:if>
</mvt:if>
The code works just fine if I hard code it in the "Basket Content" tab on the BASK page, but for some reason if I try to "render" it, the data will not display.
Does the "Render" feature not work here?
Thanks in advance!
Comment