Fix - Shipping method title display in COD settings.

This commit is contained in:
Mike Jolley 2016-07-20 10:49:27 +01:00
parent e493ff5693
commit fce7771d82
2 changed files with 6 additions and 2 deletions

View File

@ -51,10 +51,11 @@ class WC_Gateway_COD extends WC_Payment_Gateway {
public function init_form_fields() { public function init_form_fields() {
$shipping_methods = array(); $shipping_methods = array();
if ( is_admin() ) if ( is_admin() ) {
foreach ( WC()->shipping()->load_shipping_methods() as $method ) { foreach ( WC()->shipping()->load_shipping_methods() as $method ) {
$shipping_methods[ $method->id ] = $method->get_title(); $shipping_methods[ $method->id ] = $method->get_method_title();
} }
}
$this->form_fields = array( $this->form_fields = array(
'enabled' => array( 'enabled' => array(

View File

@ -158,6 +158,9 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
== Changelog == == Changelog ==
= 2.6.4 - xx/xx/16 =
* Fix - Shipping method title display in COD settings.
= 2.6.3 - 19/07/16 = = 2.6.3 - 19/07/16 =
* Fix - Security - Escape captions in product-thumbnail and product-image templates (template versions have been bumped). * Fix - Security - Escape captions in product-thumbnail and product-image templates (template versions have been bumped).
* Fix - Fixed how we calculate shipping tax rates when using more than one tax class. * Fix - Fixed how we calculate shipping tax rates when using more than one tax class.