Johnny
03-31-06, 03:53 PM
I'm trying to get rid of all the many repeated <font> commands that litter the html code, and replace them with a global css definition.
Take this bit of code from the product display -
<td align="left" valign="top">
<mvt:item name="fonts" param="body_font">
Quantity in Basket:
<mvt:if expr="l.settings:product:quantity EQ 0">
<i>None</i>
<mvt:else>
<b>&mvt:product:quantity;</b>
</mvt:if>
<br>
Code: <b>&mvt:product:code;</b><br>
Price: <b>&mvt:product:formatted_price;</b><br>
<mvt:if expr="l.settings:product:inv_active">
&mvt:product:inv_long;
</mvt:if>
</mvt:item>
</td>
If I'm reading it correctly I can just delete the two lines below and it will remove the font command and the </font> tag.
<mvt:item name="fonts" param="body_font">
</mvt:item>
Just a couple of questions -
1) Is the body font defined somewhere else (ie. can I just delete it in one place and leave the above lines in to be converted into no code?)
2) If I delete the two lines above are there any other implications? ie. is it simply replaced by the font tags or do the product variables require them?
Thanks,
John.
Take this bit of code from the product display -
<td align="left" valign="top">
<mvt:item name="fonts" param="body_font">
Quantity in Basket:
<mvt:if expr="l.settings:product:quantity EQ 0">
<i>None</i>
<mvt:else>
<b>&mvt:product:quantity;</b>
</mvt:if>
<br>
Code: <b>&mvt:product:code;</b><br>
Price: <b>&mvt:product:formatted_price;</b><br>
<mvt:if expr="l.settings:product:inv_active">
&mvt:product:inv_long;
</mvt:if>
</mvt:item>
</td>
If I'm reading it correctly I can just delete the two lines below and it will remove the font command and the </font> tag.
<mvt:item name="fonts" param="body_font">
</mvt:item>
Just a couple of questions -
1) Is the body font defined somewhere else (ie. can I just delete it in one place and leave the above lines in to be converted into no code?)
2) If I delete the two lines above are there any other implications? ie. is it simply replaced by the font tags or do the product variables require them?
Thanks,
John.