Fix - Shipping method title display in COD settings.
This commit is contained in:
parent
e493ff5693
commit
fce7771d82
|
@ -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(
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue