Merge pull request #493 from hostdesigner/master
Correction of the currency symbol
This commit is contained in:
commit
094356e50d
|
@ -131,7 +131,21 @@ function woocommerce_custom_product_columns($column) {
|
||||||
endif;
|
endif;
|
||||||
break;
|
break;
|
||||||
case "product_type" :
|
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;
|
break;
|
||||||
case "product_date" :
|
case "product_date" :
|
||||||
if ( '0000-00-00 00:00:00' == $post->post_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' );
|
_e( 'Last Modified', 'woocommerce' );
|
||||||
endif;
|
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;
|
endif;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -83,6 +83,7 @@ Yes you can! Join in on our GitHub repository :) https://github.com/woothemes/wo
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
|
||||||
= 1.4 =
|
= 1.4 =
|
||||||
|
* Displaying correct currency symbol (Real of Brazil)
|
||||||
* Improved default theme
|
* Improved default theme
|
||||||
* Support for multiple and stacked (compound) taxes
|
* Support for multiple and stacked (compound) taxes
|
||||||
* Locale options for country address formatting and checkout fields
|
* Locale options for country address formatting and checkout fields
|
||||||
|
|
|
@ -112,8 +112,8 @@ function get_woocommerce_currency_symbol( $currency = '' ) {
|
||||||
if (!$currency) $currency = get_option('woocommerce_currency');
|
if (!$currency) $currency = get_option('woocommerce_currency');
|
||||||
$currency_symbol = '';
|
$currency_symbol = '';
|
||||||
switch ($currency) :
|
switch ($currency) :
|
||||||
|
case 'BRL' : $currency_symbol = 'R$'; break; // in Brazil the correct is R$ 0.00,00
|
||||||
case 'AUD' :
|
case 'AUD' :
|
||||||
case 'BRL' :
|
|
||||||
case 'CAD' :
|
case 'CAD' :
|
||||||
case 'MXN' :
|
case 'MXN' :
|
||||||
case 'NZD' :
|
case 'NZD' :
|
||||||
|
|
Loading…
Reference in New Issue