Merge pull request #493 from hostdesigner/master

Correction of the currency symbol
This commit is contained in:
Mike Jolley 2012-01-12 05:33:31 -08:00
commit 094356e50d
3 changed files with 25 additions and 4 deletions

View File

@ -131,7 +131,21 @@ function woocommerce_custom_product_columns($column) {
endif;
break;
case "product_type" :
echo ucwords($product->product_type);
// Its was dynamic but did not support the translations
if( $product->product_type == 'grouped' ):
echo __('Grouped product', 'woocommerce');
elseif ( $product->product_type == 'external' ):
echo __('External/Affiliate product', 'woocommerce');
elseif ( $product->product_type == 'simple' ):
echo __('Simple product', 'woocommerce');
elseif ( $product->product_type == 'variable' ):
echo __('Variable', 'woocommerce');
else:
// Assuming that we have other types in future
echo ucwords($product->product_type);
endif;
break;
case "product_date" :
if ( '0000-00-00 00:00:00' == $post->post_date ) :
@ -164,8 +178,14 @@ function woocommerce_custom_product_columns($column) {
_e( 'Last Modified', 'woocommerce' );
endif;
if ( $this_data = $product->visibility ) :
echo '<br />' . ucfirst($this_data);
/**
* show hidden visible product on colum Date
* Assuming that we have only show and hidden status
*/
if ( $product->visibility == 'hidden' ) :
echo '<br />'. __('Hidden', 'woocommerce');
else:
echo '<br />'. __('Visible', 'woocommerce');
endif;
break;

View File

@ -83,6 +83,7 @@ Yes you can! Join in on our GitHub repository :) https://github.com/woothemes/wo
== Changelog ==
= 1.4 =
* Displaying correct currency symbol (Real of Brazil)
* Improved default theme
* Support for multiple and stacked (compound) taxes
* Locale options for country address formatting and checkout fields

View File

@ -112,8 +112,8 @@ function get_woocommerce_currency_symbol( $currency = '' ) {
if (!$currency) $currency = get_option('woocommerce_currency');
$currency_symbol = '';
switch ($currency) :
case 'BRL' : $currency_symbol = 'R&#36;'; break; // in Brazil the correct is R$ 0.00,00
case 'AUD' :
case 'BRL' :
case 'CAD' :
case 'MXN' :
case 'NZD' :