Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | uc_price_preprocess-2720205-2.patch | 934 bytes | bjaxelsen |
Comments
Comment #2
bjaxelsen CreditAttribution: bjaxelsen commented