How to remove currency sign for price attribute from product view page?

If you use price type for your length, weight, etc. attributes, you would like to hide $, € or some other currency sign when showing detailed information on product page for those attributes.

Unfortunately, it is not possible to resolve out of the box. Please follow these steps in order to achieve it:

1. Open template file

app/design/frontend/[YOUR PACKAGE]/[YOUR THEME]/template/catalog/product/view/attributes.phtml


2. Then replace line
<td class="data"><?php echo $_helper->productAttribute($_product, $_data['value'], $_data['code']) ?></td>

with

<td class="data"><?php echo preg_replace('@[$€]@u', '', $_helper->productAttribute($_product, $_data['value'], $_data['code'])) ?></td>

3. Currency symbol should hide after you flush cache.

See more details on Improved Layered Navigation page

User Guide

How can we help you?

Didn’t you find the answer to your question? We are always happy to help you out.

© 2009-2021 Amasty. All Rights Reserved.