More Formatting
Make formatting identical with Woo files, for easier syncing later; More capitalization fixes on text, making identical to Woo files;
This commit is contained in:
parent
1eed4183b2
commit
14676bb3f3
|
@ -100,22 +100,20 @@ do_action( 'woocommerce_before_cart' ); ?>
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td class="product-quantity" data-title="<?php esc_attr_e( 'Quantity', 'understrap' ); ?>">
|
<td class="product-quantity" data-title="<?php esc_attr_e( 'Quantity', 'understrap' ); ?>"><?php
|
||||||
<?php
|
if ( $_product->is_sold_individually() ) {
|
||||||
if ( $_product->is_sold_individually() ) {
|
$product_quantity = sprintf( '1 <input type="hidden" name="cart[%s][qty]" value="1" />', $cart_item_key );
|
||||||
$product_quantity = sprintf( '1 <input type="hidden" name="cart[%s][qty]" value="1" />', $cart_item_key );
|
} else {
|
||||||
} else {
|
$product_quantity = woocommerce_quantity_input( array(
|
||||||
$product_quantity = woocommerce_quantity_input( array(
|
'input_name' => "cart[{$cart_item_key}][qty]",
|
||||||
'input_name' => "cart[{$cart_item_key}][qty]",
|
'input_value' => $cart_item['quantity'],
|
||||||
'input_value' => $cart_item['quantity'],
|
'max_value' => $_product->get_max_purchase_quantity(),
|
||||||
'max_value' => $_product->get_max_purchase_quantity(),
|
'min_value' => '0',
|
||||||
'min_value' => '0',
|
), $_product, false );
|
||||||
), $_product, false );
|
}
|
||||||
}
|
|
||||||
|
|
||||||
echo apply_filters( 'woocommerce_cart_item_quantity', $product_quantity, $cart_item_key, $cart_item );
|
echo apply_filters( 'woocommerce_cart_item_quantity', $product_quantity, $cart_item_key, $cart_item );
|
||||||
?>
|
?></td>
|
||||||
</td>
|
|
||||||
|
|
||||||
<td class="product-subtotal" data-title="<?php esc_attr_e( 'Total', 'understrap' ); ?>">
|
<td class="product-subtotal" data-title="<?php esc_attr_e( 'Total', 'understrap' ); ?>">
|
||||||
<?php
|
<?php
|
||||||
|
@ -162,7 +160,7 @@ do_action( 'woocommerce_before_cart' ); ?>
|
||||||
* @hooked woocommerce_cross_sell_display
|
* @hooked woocommerce_cross_sell_display
|
||||||
* @hooked woocommerce_cart_totals - 10
|
* @hooked woocommerce_cart_totals - 10
|
||||||
*/
|
*/
|
||||||
do_action( 'woocommerce_cart_collaterals' );
|
do_action( 'woocommerce_cart_collaterals' );
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -24,8 +24,8 @@ wc_print_notices();
|
||||||
|
|
||||||
do_action( 'woocommerce_before_checkout_form', $checkout );
|
do_action( 'woocommerce_before_checkout_form', $checkout );
|
||||||
|
|
||||||
// If checkout registration is disabled and not logged in, the user cannot checkout.
|
|
||||||
if ( ! $checkout->enable_signup && ! $checkout->enable_guest_checkout && ! is_user_logged_in() ) {
|
if ( ! $checkout->enable_signup && ! $checkout->enable_guest_checkout && ! is_user_logged_in() ) {
|
||||||
|
// If checkout registration is disabled and not logged in, the user cannot checkout
|
||||||
echo apply_filters( 'woocommerce_checkout_must_be_logged_in_message', __( 'You must be logged in to checkout.', 'understrap' ) );
|
echo apply_filters( 'woocommerce_checkout_must_be_logged_in_message', __( 'You must be logged in to checkout.', 'understrap' ) );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,9 +35,9 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||||
<?php if ( sizeof( $order->get_items() ) > 0 ) : ?>
|
<?php if ( sizeof( $order->get_items() ) > 0 ) : ?>
|
||||||
<?php foreach ( $order->get_items() as $item_id => $item ) : ?>
|
<?php foreach ( $order->get_items() as $item_id => $item ) : ?>
|
||||||
<?php
|
<?php
|
||||||
if ( ! apply_filters( 'woocommerce_order_item_visible', true, $item ) ) {
|
if ( ! apply_filters( 'woocommerce_order_item_visible', true, $item ) ) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<tr class="<?php echo esc_attr( apply_filters( 'woocommerce_order_item_class', 'order_item', $item, $order ) ); ?>">
|
<tr class="<?php echo esc_attr( apply_filters( 'woocommerce_order_item_class', 'order_item', $item, $order ) ); ?>">
|
||||||
<td class="product-name">
|
<td class="product-name">
|
||||||
|
|
|
@ -37,12 +37,12 @@ do_action( 'woocommerce_before_edit_account_address_form' ); ?>
|
||||||
|
|
||||||
<div class="woocommerce-address-fields__field-wrapper">
|
<div class="woocommerce-address-fields__field-wrapper">
|
||||||
<?php
|
<?php
|
||||||
foreach ( $address as $key => $field ) {
|
foreach ( $address as $key => $field ) {
|
||||||
if ( isset( $field['country_field'], $address[ $field['country_field'] ] ) ) {
|
if ( isset( $field['country_field'], $address[ $field['country_field'] ] ) ) {
|
||||||
$field['country'] = wc_get_post_data_by_key( $field['country_field'], $address[ $field['country_field'] ]['value'] );
|
$field['country'] = wc_get_post_data_by_key( $field['country_field'], $address[ $field['country_field'] ]['value'] );
|
||||||
}
|
|
||||||
woocommerce_form_field( $key, $field, wc_get_post_data_by_key( $key, $field['value'] ) );
|
|
||||||
}
|
}
|
||||||
|
woocommerce_form_field( $key, $field, wc_get_post_data_by_key( $key, $field['value'] ) );
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ $customer_orders = get_posts( apply_filters( 'woocommerce_my_account_my_orders_q
|
||||||
|
|
||||||
if ( $customer_orders ) : ?>
|
if ( $customer_orders ) : ?>
|
||||||
|
|
||||||
<h2><?php echo apply_filters( 'woocommerce_my_account_my_orders_title', __( 'Recent Orders', 'understrap' ) ); ?></h2>
|
<h2><?php echo apply_filters( 'woocommerce_my_account_my_orders_title', __( 'Recent orders', 'understrap' ) ); ?></h2>
|
||||||
|
|
||||||
<table class="shop_table shop_table_responsive my_account_orders table-hover table-striped">
|
<table class="shop_table shop_table_responsive my_account_orders table-hover table-striped">
|
||||||
|
|
||||||
|
|
Reference in New Issue