Wrapped prices in 'mark' so we can change through JS. Closes #456.

This commit is contained in:
Mike Jolley 2012-01-09 16:39:48 +00:00
parent 86afeaf594
commit babe65bb19
2 changed files with 5 additions and 7 deletions

View File

@ -41,9 +41,7 @@ $available_methods = $woocommerce->shipping->get_available_shipping_methods();
foreach ($available_methods as $method ) :
echo '<option value="'.esc_attr($method->id).'" ';
echo '<option value="'.$method->id.'" '.selected($method->id, $_SESSION['_chosen_shipping_method'], false).'>'.$method->label.' &mdash; ';
echo '<option value="'.esc_attr($method->id).'" '.selected($method->id, $_SESSION['_chosen_shipping_method'], false).'>'.$method->label.' &mdash; ';
if ($method->cost>0) :

View File

@ -167,16 +167,16 @@ function woocommerce_price( $price, $args = array() ) {
switch ($currency_pos) :
case 'left' :
$return = $currency_symbol . $price;
$return = '<mark>'. $currency_symbol . $price . '</mark>';
break;
case 'right' :
$return = $price . $currency_symbol;
$return = '<mark>'. $price . $currency_symbol . '</mark>';
break;
case 'left_space' :
$return = $currency_symbol . ' ' . $price;
$return = '<mark>'. $currency_symbol . ' ' . $price . '</mark>';
break;
case 'right_space' :
$return = $price . ' ' . $currency_symbol;
$return = '<mark>'. $price . ' ' . $currency_symbol . '</mark>';
break;
endswitch;