| Virtuemart change price layout |
| Monday, 20 October 2008 15:58 | |||
|
Question: I don't like the way the suggested retail price and discount price are shown in VM 1.1.2. I would like the discounted price and the retail price to shown on the same line. I also want the You Save line to have space after the price and to be in bold. Answer: Easy as pie. Just open price.tpl.php which is located in components > com_virtuemart > themes > default > templates > common. Around line 19 find the <br /> and remove it. <span class="product-Old-Price"> Just remove the <br /> from the code above, save and upload. For the "You Save issue", change this bit of code starting at line 37 in price.tpl.php if(!empty($discount_info["amount"])) { Change to: if(!empty($discount_info["amount"])) { Notice we added and extra <br /> and <strong>, then added an echo "</strong>"; Of course, you can play with this and adjusted as needed.
|