/
var
/
www
/
barefootlaw.org
/
wp-content
/
themes
/
barefoot
/
inc
/
woocommerce
/
checkout
/
Upload File
HOME
<?php /** * Pay for order form * * This template can be overridden by copying it to yourtheme/woocommerce/checkout/form-pay.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will need to copy the new files to your theme to * maintain compatibility. We try to do this 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 https://docs.woocommerce.com/document/template-structure/ * @package WooCommerce/Templates * @version 3.4.0 */ defined( 'ABSPATH' ) || exit; ?> <form class="woocommerce-cart-form" id="order_review" method="post"> <div class="table-responsive shop-table-responsive"> <table class="table shop_table shop_table_responsive cart woocommerce-cart-form__contents" cellspacing="0"> <thead> <tr> <th class="product-name" colspan="2"><?php esc_html_e( 'Product', 'covercase' ); ?></th> <th class="product-price"><?php esc_html_e( 'Price', 'covercase' ); ?></th> <th class="product-quantity text-center"><?php esc_html_e( 'Quantity', 'covercase' ); ?></th> <th class="product-subtotal"><?php esc_html_e( 'Total', 'covercase' ); ?></th> </tr> </thead> <tbody> <?php if ( count( $order->get_items() ) > 0 ) : ?> <?php foreach ( $order->get_items() as $item_id => $item ) : ?> <?php if ( ! apply_filters( 'woocommerce_order_item_visible', true, $item ) ) { continue; } $product = $item->get_product(); $is_visible = $product && $product->is_visible(); $product_permalink = apply_filters( 'woocommerce_order_item_permalink', $is_visible ? $product->get_permalink( $item ) : '', $item, $order ); ?> <tr class="<?php echo esc_attr( apply_filters( 'woocommerce_order_item_class', 'order_item', $item, $order ) ); ?>"> <td class="product-thumbnail"> <?php $thumbnail = apply_filters( 'woocommerce_cart_item_thumbnail', $product->get_image(), $item, $item_id ); preg_match( '@src="([^"]+)"@', $thumbnail, $match ); $src = array_pop( $match ); $thumbnail = '<span class="product-cart-thumbnail" style="background-image: url(' . esc_url( $src ) . ')"></span>'; if ( ! $product_permalink ) { printf('%s', $thumbnail); } else { printf( '<a href="%s">%s</a>', esc_url( $product_permalink ), $thumbnail ); } ?> </td> <td class="product-name"> <?php echo apply_filters( 'woocommerce_order_item_name', $product_permalink ? sprintf( '<a href="%s">%s</a>', $product_permalink, $item->get_name() ) : $item->get_name(), $item, $is_visible ); do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $order, false ); covercase_woo_display_item_meta( $item ); do_action( 'woocommerce_order_item_meta_end', $item_id, $item, $order, false ); ?> </td> <td class="product-price" data-title="<?php esc_attr_e( 'Price', 'covercase' ); ?>"> <?php echo apply_filters( 'woocommerce_cart_item_price', WC()->cart->get_product_price( $product ), $item, $item_id ); ?> </td> <td class="product-quantity text-center"><?php echo apply_filters( 'woocommerce_order_item_quantity_html', '' . sprintf( '%s', esc_html( $item->get_quantity() ) ) . '', $item ); ?></td><?php // @codingStandardsIgnoreLine ?> <td class="product-subtotal"><?php printf('%s', $order->get_formatted_line_subtotal( $item ) ); ?></td><?php // @codingStandardsIgnoreLine ?> </tr> <tr><td class="woo-table-pattern" colspan="5"><div></div></td></tr> <?php endforeach; ?> <?php endif; ?> </tbody> </table> </div> <?php $totals = $order->get_order_item_totals(); $order_total = isset($totals['order_total']['value']) ? $totals['order_total']['value'] : ''; $cart_subtotal = isset($totals['cart_subtotal']['value']) ? $totals['cart_subtotal']['value'] : ''; $shipping = isset($totals['shipping']['value']) ? $totals['shipping']['value'] : ''; ?> <div class="row"> <div class="col-lg-6"></div> <div class="col-lg-6"> <div class="woo-cart-collaterals woo-cart-collaterals--normal"> <div class="table-responsive"> <table class="table shop_table shop_table_responsive"> <?php if($cart_subtotal) { ?> <tr class="cart-subtotal"> <th><?php _e( 'Subtotal', 'covercase' ); ?></th> <td><?php printf('%s',$cart_subtotal); ?></td> </tr> <?php } ?> <?php if($cart_subtotal) { ?> <tr class="cart-shipping"> <th><?php _e( 'Shipping', 'covercase' ); ?></th> <td><?php echo esc_html($shipping); ?></td> </tr> <?php } ?> <?php if ( $order->needs_payment() ) : ?> <tr class="payment-method"> <th> <?php _e( 'Payment method', 'covercase' ); ?> </th> <td> <ul class="wc_payment_methods payment_methods methods"> <?php if ( ! empty( $available_gateways ) ) { foreach ( $available_gateways as $gateway ) { wc_get_template( 'checkout/payment-method.php', array( 'gateway' => $gateway ) ); } } else { echo '<li class="woocommerce-notice woocommerce-notice--info woocommerce-info">' . apply_filters( 'woocommerce_no_available_payment_methods_message', __( '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.', 'covercase' ) ) . '</li>'; // @codingStandardsIgnoreLine } ?> </ul> </td> </tr> <?php endif; ?> <tr> <th></th> <td><?php wc_get_template( 'checkout/terms.php' ); ?></td> </tr> <?php if($order_total) { ?> <tr class="order-total"> <th><?php _e( 'Total', 'covercase' ); ?></th> <td><?php printf('%s',$order_total); ?></td> </tr> <?php } ?> </table> </div> </div> </div> </div> <div id="payment" class="woocommerce-checkout-payment"> <div class="woo-cart-goto-checkout"> <input type="hidden" name="woocommerce_pay" value="1"/> <?php do_action( 'woocommerce_pay_order_before_submit' ); ?> <?php echo apply_filters( 'woocommerce_pay_order_button_html', '<button type="submit" class="button alt" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '">' . esc_html( $order_button_text ) . '</button>' ); // @codingStandardsIgnoreLine ?> <?php do_action( 'woocommerce_pay_order_after_submit' ); ?> <?php wp_nonce_field( 'woocommerce-pay', 'woocommerce-pay-nonce' ); ?> </div> </div> </form>