 <p>Another shorthand is to use the following code directly in the pattern in the template:</p> <pre><code>&lt;? return str_replace(".","","{base_price_incl_tax product}"); ?&gt; </code></pre> <p>In this way you don't have to create a custom attribute.</p>