Search
×
Log in or create an account
If you have an account with us, please log in.

You have no items in your shopping cart.

Frequently Asked Questions

How can we help you?

banner image

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

See more details on Improved Layered Navigation page
User Guide

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
Rate the answer?

Total rating: 3.7

If you didn’t find the answer on your question, please, ask here:

Back to top