diff --git a/templates/archive-product.php b/templates/archive-product.php index a696feff2689..677e3789131d 100644 --- a/templates/archive-product.php +++ b/templates/archive-product.php @@ -4,9 +4,9 @@ * * Override this template by copying it to yourtheme/woocommerce/archive-product.php * - * @package WooCommerce - * @since WooCommerce 1.0 - * @todo replace loop-shop with a content template and include query/loop here instead. + * @author WooThemes + * @package WooCommerce/Templates + * @version 1.6.4 */ get_header('shop'); ?> diff --git a/templates/cart/cart.php b/templates/cart/cart.php index 1f024dbdcde6..e34ea2331eff 100755 --- a/templates/cart/cart.php +++ b/templates/cart/cart.php @@ -1,8 +1,12 @@ @@ -23,7 +27,7 @@ - + cart->get_cart() ) > 0 ) { foreach ( $woocommerce->cart->get_cart() as $cart_item_key => $values ) { @@ -33,66 +37,66 @@ - ×', esc_url( $woocommerce->cart->get_remove_url( $cart_item_key ) ), __('Remove this item', 'woocommerce') ), $cart_item_key ); + ×', esc_url( $woocommerce->cart->get_remove_url( $cart_item_key ) ), __('Remove this item', 'woocommerce') ), $cart_item_key ); ?> - + - get_image(), $values, $cart_item_key ); - printf('%s', esc_url( get_permalink( apply_filters('woocommerce_in_cart_product_id', $values['product_id'] ) ) ), $thumbnail ); + printf('%s', esc_url( get_permalink( apply_filters('woocommerce_in_cart_product_id', $values['product_id'] ) ) ), $thumbnail ); ?> - + - is_visible() || ( $_product instanceof WC_Product_Variation && ! $_product->parent_is_visible() ) ) echo apply_filters( 'woocommerce_in_cart_product_title', $_product->get_title(), $values, $cart_item_key ); else printf('%s', esc_url( get_permalink( apply_filters('woocommerce_in_cart_product_id', $values['product_id'] ) ) ), apply_filters('woocommerce_in_cart_product_title', $_product->get_title(), $values, $cart_item_key ) ); - + // Meta data echo $woocommerce->cart->get_item_data( $values ); - + // Backorder notification if ( $_product->backorders_require_notification() && $_product->is_on_backorder( $values['quantity'] ) ) echo '

' . __('Available on backorder', 'woocommerce') . '

'; ?> - + - customer->is_vat_exempt() ? $_product->get_price_excluding_tax() : $_product->get_price(); - - echo apply_filters('woocommerce_cart_item_price_html', woocommerce_price( $product_price ), $values, $cart_item_key ); + + echo apply_filters('woocommerce_cart_item_price_html', woocommerce_price( $product_price ), $values, $cart_item_key ); ?> - + - is_sold_individually() ) { $product_quantity = '1'; } else { $data_min = apply_filters( 'woocommerce_cart_item_data_min', '', $_product ); $data_max = ( $_product->backorders_allowed() ) ? '' : $_product->get_stock_quantity(); - $data_max = apply_filters( 'woocommerce_cart_item_data_max', $data_max, $_product ); - + $data_max = apply_filters( 'woocommerce_cart_item_data_max', $data_max, $_product ); + $product_quantity = sprintf( '
', $cart_item_key, $data_min, $data_max, esc_attr( $values['quantity'] ) ); } - - echo apply_filters( 'woocommerce_cart_item_quantity', $product_quantity, $cart_item_key ); + + echo apply_filters( 'woocommerce_cart_item_quantity', $product_quantity, $cart_item_key ); ?> - + - cart->get_product_subtotal( $_product, $values['quantity'] ), $values, $cart_item_key ); + cart->get_product_subtotal( $_product, $values['quantity'] ), $values, $cart_item_key ); ?> @@ -100,7 +104,7 @@ } } } - + do_action( 'woocommerce_cart_contents' ); ?> @@ -108,32 +112,32 @@
- + - + - +
- + nonce_field('cart') ?> - +
- + - + - + - +
\ No newline at end of file diff --git a/templates/cart/cross-sells.php b/templates/cart/cross-sells.php index 61d66f1e12c8..0f26307ba9cf 100644 --- a/templates/cart/cross-sells.php +++ b/templates/cart/cross-sells.php @@ -1,6 +1,10 @@ have_posts() ) : ?>
- +

- + - +
- - diff --git a/templates/cart/mini-cart.php b/templates/cart/mini-cart.php index e9453e1c0cf3..0021c4224d39 100644 --- a/templates/cart/mini-cart.php +++ b/templates/cart/mini-cart.php @@ -1,62 +1,66 @@ cart->get_cart() ) > 0 ) : ?>

: cart->get_cart_subtotal(); ?>

- + - +

- +

diff --git a/templates/cart/shipping-calculator.php b/templates/cart/shipping-calculator.php index 246dba480bbc..b1187525402a 100644 --- a/templates/cart/shipping-calculator.php +++ b/templates/cart/shipping-calculator.php @@ -1,8 +1,12 @@ cart->needs_shipping() ) return; @@ -26,18 +30,18 @@ customer->get_shipping_country(); $current_r = $woocommerce->customer->get_shipping_state(); - + $states = $woocommerce->countries->get_states( $current_cc ); - + if ( is_array( $states ) && empty( $states ) ) { - + // Hidden ?> @@ -47,14 +51,14 @@ ?>

diff --git a/templates/cart/totals.php b/templates/cart/totals.php index 694bab348deb..9fe8d64d5195 100644 --- a/templates/cart/totals.php +++ b/templates/cart/totals.php @@ -1,38 +1,42 @@ shipping->get_available_shipping_methods(); ?>
- + - + shipping->enabled || $available_methods || ! $woocommerce->customer->get_shipping_country() || ! $woocommerce->customer->has_calculated_shipping() ) : ?> - +

- + - + cart->get_discounts_before_tax()) : ?> - + - + - + cart->needs_shipping() && $woocommerce->cart->show_shipping() && ( $available_methods || get_option( 'woocommerce_enable_shipping_calc' ) == 'yes' ) ) { ?> - + - + - + - - cart->get_cart_tax() ) : - + $taxes = $woocommerce->cart->get_formatted_taxes(); - + if (sizeof($taxes)>0) : - + $has_compound_tax = false; - - foreach ($taxes as $key => $tax) : + + foreach ($taxes as $key => $tax) : if ($woocommerce->cart->tax->is_compound( $key )) : $has_compound_tax = true; continue; endif; ?> @@ -133,9 +137,9 @@ cart->prices_include_tax) : ?> @@ -144,8 +148,8 @@ $tax) : + + foreach ($taxes as $key => $tax) : if (!$woocommerce->cart->tax->is_compound( $key )) continue; ?> @@ -160,88 +164,88 @@ - + cart->get_discounts_after_tax()) : ?> - + - + - + - - +
cart->get_cart_subtotal(); ?>
-cart->get_discounts_before_tax(); ?>
@@ -69,28 +73,28 @@ // Show multiple shipping methods } else { - + if ( get_option('woocommerce_shipping_method_format') == 'select' ) { echo ''; - + } else { - - + + echo '
    '; - + foreach ( $available_methods as $method ) echo '
  • id, $_SESSION['_chosen_shipping_method'], false) . ' />
  • '; - + echo '
'; - + } - + } // No shipping methods are available @@ -104,21 +108,21 @@ } ?>
cart->get_cart_tax(); ?>
-cart->get_discounts_after_tax(); ?>
cart->prices_include_tax) : - echo $woocommerce->cart->get_total_ex_tax(); + echo $woocommerce->cart->get_total_ex_tax(); else : - echo $woocommerce->cart->get_total(); + echo $woocommerce->cart->get_total(); endif; - + ?>
- + cart->get_cart_tax() ) : ?> -

customer->is_customer_outside_base() && ! $woocommerce->customer->has_calculated_shipping() ) ? sprintf( ' ' . __('(taxes estimated for %s)', 'woocommerce'), $woocommerce->countries->estimated_for_prefix() . __($woocommerce->countries->countries[ $woocommerce->countries->get_base_country() ], 'woocommerce') ) : ''; - - printf(__('Note: Shipping and taxes are estimated%s and will be updated during checkout based on your billing and shipping information.', 'woocommerce'), $estimated_text ); - + + printf(__('Note: Shipping and taxes are estimated%s and will be updated during checkout based on your billing and shipping information.', 'woocommerce'), $estimated_text ); + ?>

- + cart->needs_shipping() ) : ?> - + customer->get_shipping_state() || ! $woocommerce->customer->get_shipping_postcode() ) : ?> - +

- + - +
- +

countries->countries[ $woocommerce->customer->get_shipping_country() ]); ?>

- +

- +
- + - + - + - +
\ No newline at end of file diff --git a/templates/checkout/cart-errors.php b/templates/checkout/cart-errors.php index 487c90fd9191..694a107de998 100644 --- a/templates/checkout/cart-errors.php +++ b/templates/checkout/cart-errors.php @@ -1,6 +1,10 @@ diff --git a/templates/checkout/form-billing.php b/templates/checkout/form-billing.php index 2c9e7b2cbafe..6d71b77a6be9 100644 --- a/templates/checkout/form-billing.php +++ b/templates/checkout/form-billing.php @@ -1,7 +1,12 @@ diff --git a/templates/checkout/form-checkout.php b/templates/checkout/form-checkout.php index 4719f47be065..6f87a692661a 100644 --- a/templates/checkout/form-checkout.php +++ b/templates/checkout/form-checkout.php @@ -1,4 +1,14 @@ -checkout(); ?> +checkout(); +?> show_messages(); ?> @@ -14,28 +24,28 @@ $get_checkout_url = apply_filters( 'woocommerce_get_checkout_url', $woocommerce->cart->get_checkout_url() ); ?>
- + checkout_fields)>0) : ?> - +
- +
- + - +
- +

- + - +
\ No newline at end of file diff --git a/templates/checkout/form-coupon.php b/templates/checkout/form-coupon.php index ac501dbe9f71..654034765c7e 100644 --- a/templates/checkout/form-coupon.php +++ b/templates/checkout/form-coupon.php @@ -1,7 +1,12 @@

- +
\ No newline at end of file diff --git a/templates/checkout/form-login.php b/templates/checkout/form-login.php index 56a35998133b..7a5206c7b305 100644 --- a/templates/checkout/form-login.php +++ b/templates/checkout/form-login.php @@ -1,7 +1,12 @@
- + @@ -15,20 +20,20 @@ - get_order_item_totals() ) foreach ( $totals as $total ) : ?> - get_items())>0) : + if (sizeof($order->get_items())>0) : foreach ($order->get_items() as $item) : echo ' @@ -36,27 +41,27 @@ '; - endforeach; + endforeach; endif; ?>
'.$item['qty'].' ' . $order->get_formatted_line_subtotal($item) . '
- +
order_total > 0) : ?>
    - payment_gateways->get_available_payment_gateways(); - if ($available_gateways) : + if ($available_gateways) : // Chosen Method if (sizeof($available_gateways)) current($available_gateways)->set_current(); foreach ($available_gateways as $gateway ) : ?>
  • chosen) echo 'checked="checked"'; ?> /> - + has_fields() || $gateway->get_description() ) : + if ( $gateway->has_fields() || $gateway->get_description() ) : echo ''; @@ -66,9 +71,9 @@ '.__('Sorry, it seems that there are no available payment methods for your location. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce').'

    '; - + endif; ?>
@@ -81,5 +86,5 @@
- +
\ No newline at end of file diff --git a/templates/checkout/form-shipping.php b/templates/checkout/form-shipping.php index 19f4f27708cf..be385ed6a98d 100644 --- a/templates/checkout/form-shipping.php +++ b/templates/checkout/form-shipping.php @@ -1,22 +1,27 @@ cart->needs_shipping() || get_option('woocommerce_require_shipping_address') == 'yes' ) && ! $woocommerce->cart->ship_to_billing_address_only() ) : ?> - - get_value('shiptobilling'); - + endif; ?> @@ -24,41 +29,41 @@ type="checkbox" name="shiptobilling" value="1" />

- +

- +
- + - + checkout_fields['shipping'] as $key => $field) : ?> - + get_value( $key ) ); ?> - + - + - +
- + - + - + - + cart->ship_to_billing_address_only()) : ?> - +

- + - + checkout_fields['order'] as $key => $field) : ?> - + get_value( $key ) ); ?> - + - + - + \ No newline at end of file diff --git a/templates/checkout/review-order.php b/templates/checkout/review-order.php index 588473e6c56a..5700ce89ffb9 100755 --- a/templates/checkout/review-order.php +++ b/templates/checkout/review-order.php @@ -1,14 +1,18 @@ shipping->get_available_shipping_methods(); ?>
- + @@ -18,25 +22,25 @@ - + - + cart->get_discounts_before_tax()) : ?> - + - + - + cart->needs_shipping() && $woocommerce->cart->show_shipping() ) : ?> - + - + - + - + - - cart->get_cart_tax()) : - + $taxes = $woocommerce->cart->get_formatted_taxes(); - + if (sizeof($taxes)>0) : - + $has_compound_tax = false; - + foreach ($taxes as $key => $tax) : if ($woocommerce->cart->tax->is_compound( $key )) : $has_compound_tax = true; continue; endif; ?> - cart->prices_include_tax) : ?> @@ -148,32 +152,32 @@ $tax) : if (!$woocommerce->cart->tax->is_compound( $key )) continue; ?> - @@ -187,27 +191,27 @@ ?> cart->get_discounts_after_tax()) : ?> - + - + - + - + - + - + cart->get_cart())>0) : + if (sizeof($woocommerce->cart->get_cart())>0) : foreach ($woocommerce->cart->get_cart() as $item_id => $values) : $_product = $values['data']; if ($_product->exists() && $values['quantity']>0) : @@ -218,20 +222,20 @@ '; endif; - endforeach; + endforeach; endif; do_action( 'woocommerce_cart_contents_review_order' ); ?>
cart->get_cart_subtotal(); ?>
-cart->get_discounts_before_tax(); ?>
@@ -78,24 +82,24 @@ if ( get_option('woocommerce_shipping_method_format') == 'select' ) { echo ''; - + } else { - - + + echo '
    '; - + foreach ( $available_methods as $method ) echo '
  • id, $_SESSION['_chosen_shipping_method'], false) . ' />
  • '; - + echo '
'; - + } - + } // No shipping methods are available @@ -109,37 +113,37 @@ } ?>
cart->tax->get_rate_label( $key ); + cart->tax->get_rate_label( $key ); ?>
cart->tax->get_rate_label( $key ); + cart->tax->get_rate_label( $key ); ?>
countries->tax_or_vat(); ?> cart->get_cart_tax(); ?>
-cart->get_discounts_after_tax(); ?>
cart->get_total(); ?>
' . apply_filters( 'woocommerce_checkout_item_subtotal', $woocommerce->cart->get_product_subtotal( $_product, $values['quantity'] ), $values, $item_id ) . '
- +
cart->needs_payment()) : ?>
    - payment_gateways->get_available_payment_gateways(); - if ($available_gateways) : + if ($available_gateways) : // Chosen Method if (sizeof($available_gateways)) : $default_gateway = get_option('woocommerce_default_gateway'); @@ -247,9 +251,9 @@ ?>
  • chosen) echo 'checked="checked"'; ?> /> - + has_fields() || $gateway->get_description() ) : + if ( $gateway->has_fields() || $gateway->get_description() ) : echo ''; @@ -259,41 +263,41 @@ customer->get_country() ) : echo '

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

    '; else : echo '

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

    '; endif; - + endif; ?>
- + - + nonce_field('process_checkout')?> - + - + - + 0) : ?>

id="terms" />

- + - +
- +
- +
\ No newline at end of file diff --git a/templates/checkout/thankyou.php b/templates/checkout/thankyou.php index 617060a0db9a..cafe63565cc1 100644 --- a/templates/checkout/thankyou.php +++ b/templates/checkout/thankyou.php @@ -1,15 +1,20 @@ status, array('failed'))) : ?> - +

- +

@@ -28,9 +33,9 @@

- +

- +
- + - + payment_method, $order->id ); ?> id ); ?> - +

- + \ No newline at end of file diff --git a/templates/content-product.php b/templates/content-product.php index 7cf1fc516cc4..3c6030c56f07 100644 --- a/templates/content-product.php +++ b/templates/content-product.php @@ -4,61 +4,62 @@ * * Override this template by copying it to yourtheme/woocommerce/content-product.php * - * @package WooCommerce - * @since WooCommerce 1.6 + * @author WooThemes + * @package WooCommerce/Templates + * @version 1.6.4 */ - + global $product, $woocommerce_loop; // Store loop count we're currently on -if ( empty( $woocommerce_loop['loop'] ) ) +if ( empty( $woocommerce_loop['loop'] ) ) $woocommerce_loop['loop'] = 0; // Store column count for displaying the grid -if ( empty( $woocommerce_loop['columns'] ) ) +if ( empty( $woocommerce_loop['columns'] ) ) $woocommerce_loop['columns'] = apply_filters( 'loop_shop_columns', 4 ); // Ensure visibilty -if ( ! $product->is_visible() ) - return; +if ( ! $product->is_visible() ) + return; // Increase loop count $woocommerce_loop['loop']++; ?> -
  • "> - + - + - +

    - +
    - + - +
  • \ No newline at end of file diff --git a/templates/content-product_cat.php b/templates/content-product_cat.php index dc47aee83d0a..9c3e0e1bdbf2 100644 --- a/templates/content-product_cat.php +++ b/templates/content-product_cat.php @@ -4,59 +4,60 @@ * * Override this template by copying it to yourtheme/woocommerce/content-product_cat.php * - * @package WooCommerce - * @since WooCommerce 1.6 + * @author WooThemes + * @package WooCommerce/Templates + * @version 1.6.4 */ - + global $woocommerce_loop; // Store loop count we're currently on -if ( empty( $woocommerce_loop['loop'] ) ) +if ( empty( $woocommerce_loop['loop'] ) ) $woocommerce_loop['loop'] = 0; // Store column count for displaying the grid -if ( empty( $woocommerce_loop['columns'] ) ) +if ( empty( $woocommerce_loop['columns'] ) ) $woocommerce_loop['columns'] = apply_filters( 'loop_shop_columns', 4 ); // Increase loop count $woocommerce_loop['loop']++; ?> -
  • "> - + - + - +

    - name; ?> + name; ?> count > 0 ) : ?> (count; ?>)

    - +
    - + - +
  • \ No newline at end of file diff --git a/templates/content-single-product.php b/templates/content-single-product.php index 7beaee15c395..6f44a003b839 100644 --- a/templates/content-single-product.php +++ b/templates/content-single-product.php @@ -4,36 +4,36 @@ * * Override this template by copying it to yourtheme/woocommerce/content-single-product.php * - * @package WooCommerce - * @since WooCommerce 1.6 - * @todo prepend class names with wc- + * @author WooThemes + * @package WooCommerce/Templates + * @version 1.6.4 */ ?> -
    > -
    -
    - - +
    \ No newline at end of file diff --git a/templates/emails/admin-new-order.php b/templates/emails/admin-new-order.php index bb5b46c34695..37150ed8a4df 100644 --- a/templates/emails/admin-new-order.php +++ b/templates/emails/admin-new-order.php @@ -1,4 +1,13 @@ - + @@ -20,7 +29,7 @@ email_order_items_table( false, true ); ?> - get_order_item_totals() ) { $i = 0; foreach ( $totals as $total ) { @@ -28,7 +37,7 @@ ?> - diff --git a/templates/emails/customer-completed-order.php b/templates/emails/customer-completed-order.php index 6fbdd965b21c..19271ce5dcab 100644 --- a/templates/emails/customer-completed-order.php +++ b/templates/emails/customer-completed-order.php @@ -1,4 +1,13 @@ - + @@ -20,7 +29,7 @@ email_order_items_table( true, false, true ); ?> - get_order_item_totals() ) { $i = 0; foreach ( $totals as $total ) { @@ -28,7 +37,7 @@ ?> - diff --git a/templates/emails/customer-invoice.php b/templates/emails/customer-invoice.php index 18288370b0ab..62e4aae7551a 100644 --- a/templates/emails/customer-invoice.php +++ b/templates/emails/customer-invoice.php @@ -1,11 +1,20 @@ - + status=='pending') : ?>

    Pay', 'woocommerce' ), get_bloginfo( 'name' ), $order->get_checkout_payment_url() ); ?>

    - + @@ -21,22 +30,22 @@ - status ) { case "completed" : echo $order->email_order_items_table( true, false, true ); break; case "processing" : - echo $order->email_order_items_table( get_option('woocommerce_downloads_grant_access_after_payment')=='yes' ? true : false, true, true ); + echo $order->email_order_items_table( get_option('woocommerce_downloads_grant_access_after_payment')=='yes' ? true : false, true, true ); break; default : - echo $order->email_order_items_table( false, true, false ); + echo $order->email_order_items_table( false, true, false ); break; } ?> - get_order_item_totals() ) { $i = 0; foreach ( $totals as $total ) { @@ -44,7 +53,7 @@ ?> - diff --git a/templates/emails/customer-new-account.php b/templates/emails/customer-new-account.php index 94d6d717c044..db3e22ceb430 100644 --- a/templates/emails/customer-new-account.php +++ b/templates/emails/customer-new-account.php @@ -1,4 +1,13 @@ - + diff --git a/templates/emails/customer-note.php b/templates/emails/customer-note.php index a845819ada3c..f0b7187371be 100644 --- a/templates/emails/customer-note.php +++ b/templates/emails/customer-note.php @@ -1,4 +1,13 @@ - + @@ -24,7 +33,7 @@ status=='completed') echo $order->email_order_items_table( true, true ); else echo $order->email_order_items_table( false, true ); ?> - get_order_item_totals() ) { $i = 0; foreach ( $totals as $total ) { @@ -32,7 +41,7 @@ ?> - diff --git a/templates/emails/customer-processing-order.php b/templates/emails/customer-processing-order.php index 31b9e2f9bc4f..7c4a3c646fa5 100644 --- a/templates/emails/customer-processing-order.php +++ b/templates/emails/customer-processing-order.php @@ -1,4 +1,13 @@ - + @@ -20,7 +29,7 @@ email_order_items_table( (get_option('woocommerce_downloads_grant_access_after_payment')=='yes' && $order->status=='processing') ? true : false, true, ($order->status=='processing') ? true : false ); ?> - get_order_item_totals() ) { $i = 0; foreach ( $totals as $total ) { @@ -28,7 +37,7 @@ ?> - diff --git a/templates/emails/email-addresses.php b/templates/emails/email-addresses.php index 90dc56286096..efba7520be8b 100644 --- a/templates/emails/email-addresses.php +++ b/templates/emails/email-addresses.php @@ -1,13 +1,22 @@ - +
    @@ -15,13 +24,13 @@ - + + + - +

    - +

    get_formatted_billing_address(); ?>

    - +

    - +

    get_formatted_shipping_address(); ?>

    - -
    \ No newline at end of file diff --git a/templates/emails/email-footer.php b/templates/emails/email-footer.php index e8182bb6817a..0cf5f935fc6e 100644 --- a/templates/emails/email-footer.php +++ b/templates/emails/email-footer.php @@ -1,3 +1,13 @@ + @@ -21,7 +31,7 @@ - + diff --git a/templates/emails/email-header.php b/templates/emails/email-header.php index 4638db6325d3..687f27d95107 100644 --- a/templates/emails/email-header.php +++ b/templates/emails/email-header.php @@ -1,8 +1,17 @@ - + - + <?php echo get_bloginfo('name'); ?>