Replaced WC()->cart->ship_to_billing_address_only() to wc_ship_to_billing_address_only()

This commit is contained in:
Claudio Sanches 2015-10-28 16:03:24 -02:00
parent 29229ada45
commit f64ea948f1
4 changed files with 12 additions and 12 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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 &amp; Shipping', 'woocommerce' ); ?></h3>

View File

@ -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>