Discussions

Add a prefix before the price

I need to add a prefix to the prices but I can't find how to do that.

Any help appreciated.

Posted: Nov 18, 2013

Comments

DNZ Andy @ BlueFusion on November 18, 2013

You could try and do it with CSS, but there are a lot of class variations to capture and in some cases you may find that a wrapper has the same class as a contained element eg:

.field-commerce-price:before {
content: "this is my prefix";
}

A better solution is probably to create a small module along the lines of https://drupal.org/comment/4936912#comment-4936912
That will affect every formatted price listing on the site.