I would like to propose a slight change in the preprocessing for the of uc_price template (template_preprocess_uc_price):

I need the raw price value available in my theme, because my HTML must include hidden schema.org tags. This will allow a robot to crawl my site and harvest the price. Currently the template_preprocess_uc_price function substitutes the raw value with a formatted value.

It would be better for my use case if the orginal value could be preserved. This way I don't need to reverse engineer the formatted price.

Please see patch.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bjaxelsen created an issue. See original summary.

bjaxelsen’s picture