From 8e74d043c174e4e11c065e5a9cb5b1bb3029de6c Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Fri, 9 Nov 2012 21:17:48 +0000 Subject: [PATCH] template --- classes/class-wc-cart.php | 5 -- templates/checkout/review-order.php | 86 +++-------------------------- 2 files changed, 8 insertions(+), 83 deletions(-) diff --git a/classes/class-wc-cart.php b/classes/class-wc-cart.php index abfb1d12b06..1e86a643b63 100644 --- a/classes/class-wc-cart.php +++ b/classes/class-wc-cart.php @@ -76,11 +76,6 @@ class WC_Cart { * @return void */ function __construct() { - - - $this->add_fee( 'Gay fee', 10, true ); - $this->add_fee( 'Another fee', 0.10, true ); - $this->tax = new WC_Tax(); $this->prices_include_tax = ( get_option('woocommerce_prices_include_tax') == 'yes' ) ? true : false; $this->display_totals_ex_tax = ( get_option('woocommerce_display_totals_excluding_tax') == 'yes' ) ? true : false; diff --git a/templates/checkout/review-order.php b/templates/checkout/review-order.php index 31fe71ba247..eaebdc3bbe4 100644 --- a/templates/checkout/review-order.php +++ b/templates/checkout/review-order.php @@ -41,84 +41,14 @@ $available_methods = $woocommerce->shipping->get_available_shipping_methods(); cart->needs_shipping() && $woocommerce->cart->show_shipping() ) : ?> - - - - - - full_label = esc_html( $method->label ); - - if ( $method->cost > 0 ) { - $method->full_label .= ': '; - - // Append price to label using the correct tax settings - if ( $woocommerce->cart->display_totals_ex_tax || ! $woocommerce->cart->prices_include_tax ) { - $method->full_label .= woocommerce_price( $method->cost ); - if ( $method->get_shipping_tax() > 0 && $woocommerce->cart->prices_include_tax ) { - $method->full_label .= ' '.$woocommerce->countries->ex_tax_or_vat(); - } - } else { - $method->full_label .= woocommerce_price( $method->cost + $method->get_shipping_tax() ); - if ( $method->get_shipping_tax() > 0 && ! $woocommerce->cart->prices_include_tax ) { - $method->full_label .= ' '.$woocommerce->countries->inc_tax_or_vat(); - } - } - } - } - - // Print a single available shipping method as plain text - if ( 1 === count( $available_methods ) ) { - - echo $method->full_label; - echo ''; - - // Show multiple shipping methods - } else { - - if ( get_option('woocommerce_shipping_method_format') == 'select' ) { - - echo ''; - - } else { - - - echo ''; - - } - - } - - // No shipping methods are available - } else { - - if ( ! $woocommerce->customer->get_shipping_country() || ! $woocommerce->customer->get_shipping_state() || ! $woocommerce->customer->get_shipping_postcode() ) { - echo '

'.__( 'Please fill in your details above to see available shipping methods.', 'woocommerce' ).'

'; - } else { - echo '

'.__( 'Sorry, it seems that there are no available shipping methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ).'

'; - } - - } - ?> - - - - + + + + + $available_methods ) ); ?> + + +