Hi guys,

Im tryin to change the string "Price: " in ubercart, but the string override has no effect on it. Some strings I do manage to override but not this one and a couple others.

I then proceeded to browse the files inside the ubercart module directory, and the only instance i can find is in:

ubercart>uc store>inculdes>uc_price.inc :

elseif (in_array('sell', $context['class'])) {
      $options['prefixes'][] = t('Price: ');

if i change it manually in there it also has no effect.

Does anyone have any suggestions?

Thank you all!

Rolo

Comments

Steven_F’s picture

Hi

Sorry this isn't a solution for you, but I would also like to remove/edit the 'Price:' wording that appears before a price.

I've found and tried the same as you, with the same outcomes.

Did you manage to remove it? If so, would you mind sharing?

Thanks

S

calebm12’s picture

in your node-product print the display_price as opposed to the list_price. I did it by adding following to template file

function themename_preprocess_node(&$vars) {
  if ($vars['template_files'][0] == 'node-product') {
    $node = node_build_content(node_load($vars['nid']));
    $vars['uc_display_price'] = drupal_render($node->content['display_price']);
  }
}

then in your node-poduct tpl you can print $uc_display_price