Wrapped prices in 'mark' so we can change through JS. Closes #456.
This commit is contained in:
parent
86afeaf594
commit
babe65bb19
|
@ -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.' — ';
|
||||
echo '<option value="'.esc_attr($method->id).'" '.selected($method->id, $_SESSION['_chosen_shipping_method'], false).'>'.$method->label.' — ';
|
||||
|
||||
if ($method->cost>0) :
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue