I'm just wondering if there is a way to place custom $price in plain numbers (not using database) that will change when currency changed accordingly?
I have solution for the currency symbol: <?php echo $text_currency; ?> It will change currency symbol accordingly by currency selected.
But I don't have solution for the plain numbers. I don't want to mess with database cause it can cause issues with my current modules. I want to add printing price in product.tpl (catalog/view/theme/template/product) that are the same on every product, but would change accordingly by currency selected.
My code looks like this:
Code: Select all
<tr style="flex-basis: 33.33333333%; display: flex; flex-wrap: wrap; align-content: flex-start; float: left; width: 33.33333333%;">
<td style="flex-basis: 100%; white-space: nowrap;">Printing*</td>
<td style="flex-basis: 100%;"><?php echo $text_currency; ?>10.25</td>
<td style="flex-basis: 100%;"><?php echo $text_currency; ?>9.23</td>
<td style="flex-basis: 100%;"><?php echo $text_currency; ?>8.82</td>
<td style="flex-basis: 100%;"><?php echo $text_currency; ?>8.41</td>
<td style="flex-basis: 100%;"><?php echo $text_currency; ?>8.00</td>
<td style="flex-basis: 100%;"><?php echo $text_currency; ?>7.59</td>
</tr>