Replaced WC()->cart->ship_to_billing_address_only() to wc_ship_to_billing_address_only()
This commit is contained in:
parent
29229ada45
commit
f64ea948f1
|
@ -1492,7 +1492,7 @@ class WC_Cart {
|
|||
|
||||
$needs_shipping_address = false;
|
||||
|
||||
if ( $this->needs_shipping() === true && ! $this->ship_to_billing_address_only() ) {
|
||||
if ( $this->needs_shipping() === true && ! wc_ship_to_billing_address_only() ) {
|
||||
$needs_shipping_address = true;
|
||||
}
|
||||
|
||||
|
|
|
@ -374,7 +374,7 @@ class WC_Checkout {
|
|||
}
|
||||
|
||||
// Ship to billing only option
|
||||
if ( WC()->cart->ship_to_billing_address_only() ) {
|
||||
if ( wc_ship_to_billing_address_only() ) {
|
||||
$this->posted['ship_to_different_address'] = false;
|
||||
}
|
||||
|
||||
|
|
|
@ -9,10 +9,10 @@
|
|||
* as little as possible, but it does happen. When this occurs the version of the template file will
|
||||
* be bumped and the readme will list any important changes.
|
||||
*
|
||||
* @see http://docs.woothemes.com/document/template-structure/
|
||||
* @author WooThemes
|
||||
* @package WooCommerce/Templates
|
||||
* @version 2.1.2
|
||||
* @see http://docs.woothemes.com/document/template-structure/
|
||||
* @author WooThemes
|
||||
* @package WooCommerce/Templates
|
||||
* @version 2.1.2
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
|
@ -23,7 +23,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
|
||||
?>
|
||||
<div class="woocommerce-billing-fields">
|
||||
<?php if ( WC()->cart->ship_to_billing_address_only() && WC()->cart->needs_shipping() ) : ?>
|
||||
<?php if ( wc_ship_to_billing_address_only() && WC()->cart->needs_shipping() ) : ?>
|
||||
|
||||
<h3><?php _e( 'Billing & Shipping', 'woocommerce' ); ?></h3>
|
||||
|
||||
|
|
|
@ -9,10 +9,10 @@
|
|||
* as little as possible, but it does happen. When this occurs the version of the template file will
|
||||
* be bumped and the readme will list any important changes.
|
||||
*
|
||||
* @see http://docs.woothemes.com/document/template-structure/
|
||||
* @author WooThemes
|
||||
* @package WooCommerce/Templates
|
||||
* @version 2.2.0
|
||||
* @see http://docs.woothemes.com/document/template-structure/
|
||||
* @author WooThemes
|
||||
* @package WooCommerce/Templates
|
||||
* @version 2.2.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
|
@ -61,7 +61,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
|
||||
<?php if ( apply_filters( 'woocommerce_enable_order_notes_field', get_option( 'woocommerce_enable_order_comments', 'yes' ) === 'yes' ) ) : ?>
|
||||
|
||||
<?php if ( ! WC()->cart->needs_shipping() || WC()->cart->ship_to_billing_address_only() ) : ?>
|
||||
<?php if ( ! WC()->cart->needs_shipping() || wc_ship_to_billing_address_only() ) : ?>
|
||||
|
||||
<h3><?php _e( 'Additional Information', 'woocommerce' ); ?></h3>
|
||||
|
||||
|
|
Loading…
Reference in New Issue