I've been using this snippet of code for years now:
And now all of sudden when I was trying to make a simple tweak to the page template, I get this error:
which is referring to this line of code:
what is the correction needed to allow the template to compile?
Thanks,
Leslie
Code:
<tr><td align="left" valign="top" nowrap>
<mvt:item name="fonts" param="body_font">
<b>Ship Via:</b>
</mvt:item>
</td><td align="left" valign="bottom">
<mvt:item name="fonts" param="body_font">
<mvt:comment>Shipping Method Radio Buttons</mvt:comment>
<mvt:if expr="ISNULL l.settings:shippingmethods">
Unable to Calculate Shipping Costs<br />
<mvt:else>
<mvt:foreach array="shippingmethods" iterator="method">
<mvt:if expr="ISNULL g.ShippingMethod AND pos1 EQ 1">
<input type="radio" name="ShippingMethod" value="&mvte:method:module;:&mvte:method:code;" checked="checked" /> &mvt:method:name; (&mvt:method:formatted_price;)<br />
<mvt:elseif expr="g.ShippingMethod EQ (l.settings:method:module $ : $ l.settings:method:code)">
<input type="radio" name="ShippingMethod" value="&mvte:method:module;:&mvte:method:code;" checked="checked" /> &mvt:method:name; (&mvt:method:formatted_price;)<br />
<mvt:else>
<input type="radio" name="ShippingMethod" value="&mvte:method:module;:&mvte:method:code;" /> &mvt:method:name; (&mvt:method:formatted_price;)<br />
</mvt:if>
</mvt:foreach>
</mvt:if>
<mvt:if expr="ISNULL l.settings:shippingmethods">
<br>No valid shipping methods are available for your order. You will be contacted regarding shipping when your order is processed.
</mvt:if>
</mvt:item>
</td></tr>
Error compiling template: Line 82: Expression compilation failed: Invalid Argument ':' Found in expression
Code:
<mvt:elseif expr="g.ShippingMethod EQ (l.settings:method:module $ : $ l.settings:method:code)">
Thanks,
Leslie
Comment