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 request to give us a way (whether by a hook or admin interface) that allows us to change the price labels. For instance, instead of the label "List Price", we want it to say "Regular Price".
Comments
Comment #1
recrit CreditAttribution: recrit commentedThere is hook added to the dev version per http://drupalcode.org/project/commerce_price_savings_formatter.git/commi...
hook_commerce_price_savings_formatter_prices_alter(&$formatted_prices, $context)
Another method would be a theme preprocess hook that altered the $vars['prices'].
Comment #2
recrit CreditAttribution: recrit commentedComment #3
roball CreditAttribution: roball commentedI accomplished this by adding the following code to MYMODULE.module: