Vote up!
Vote down!

Clean install renders zero html around the price

Hi, I've done a clean Drupal and Commerce install to build a really simple shop. Ive added a couple of products and product displays...but the price field is completely devoid of any html markup...making it impossible to access with css. Normally I could have created a custom tpl file but it appears this can't be done with Commerce.
I've been able to alter other fields with the Fence module but that doesn't work on the price field.

Any help?

Asked by: quercus020
on December 7, 2012

1 Answer

Vote up!
Vote down!

As with most things Drupal, we have a plethora of divs to choose from from a generic price field:


4 wrapper divs.

If you need to get at the bits (the symbol, the numbers, the decimal point), your quickest option would be javascript.

Josh Miller
Answer by: Josh Miller
Posted: May 1, 2013