HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/bwcsports-site/wp-content/themes/salient/woocommerce1/cart/cart.php
<?php
/**
 * Cart Page
 *
 * This template can be overridden by copying it to yourtheme/woocommerce/cart/cart.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://woocommerce.com/document/template-structure/
 * @package WooCommerce\Templates
 * @version 7.9.0
 */

defined( 'ABSPATH' ) || exit;

wc_print_notices();

do_action( 'woocommerce_before_cart' ); ?>

<form class="woocommerce-cart-form" action="<?php echo esc_url( wc_get_cart_url() ); ?>" method="post">
	<?php do_action( 'woocommerce_before_cart_table' ); ?>

<div class="sp-scrollable-table-wrapper">
<table class="shop_table shop_table_responsive cart heading-font woocommerce-cart-form__contents" cellspacing="0">
	<thead>
		<tr>
			<?php if(is_layout("sccr")): ?>
				<th class="product-remove">&nbsp;</th>
			<?php endif; ?>
			<th class="product-name product-col-setting"><?php (!is_layout("sccr")) ? esc_html_e( 'Product', 'splash' ) : esc_html_e( 'Product', 'splash' ); ?></th>
			<th class="product-price" style="text-align:left;"><?php esc_html_e( 'Product Description', 'splash' ); ?></th>
			<!--<th class="product-quantity"><?php esc_html_e( 'Quantity', 'splash' ); ?></th>-->
			<th class="product-subtotal"  style="text-align:center;"><?php esc_html_e( 'Total', 'splash' ); ?></th>
			<?php // if(!is_layout("sccr")) : ?>
				<!--<th class="product-remove">&nbsp;</th>-->
			<?php //endif; ?>
		</tr>
	</thead>
	<tbody>
		<?php do_action( 'woocommerce_before_cart_contents' ); ?>

		<?php
		foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) {
			$_product     = apply_filters( 'woocommerce_cart_item_product', $cart_item['data'], $cart_item, $cart_item_key );
			$product_id   = apply_filters( 'woocommerce_cart_item_product_id', $cart_item['product_id'], $cart_item, $cart_item_key );

			if ( $_product && $_product->exists() && $cart_item['quantity'] > 0 && apply_filters( 'woocommerce_cart_item_visible', true, $cart_item, $cart_item_key ) ) {
                $product_permalink = apply_filters( 'woocommerce_cart_item_permalink', $_product->is_visible() ? $_product->get_permalink( $cart_item ) : '', $cart_item, $cart_item_key );
			    ?>
				<tr class="woocommerce-cart-form__cart-item <?php echo esc_attr( apply_filters( 'woocommerce_cart_item_class', 'cart_item', $cart_item, $cart_item_key ) ); ?>">
					
					<?php if(is_layout("sccr")) : ?>
						<td class="product-remove">
							<?php
							echo apply_filters( 'woocommerce_cart_item_remove_link', sprintf(
								'<a href="%s" class="remove" title="%s" data-product_id="%s" data-product_sku="%s"><i class="fa fa-close"></i></a>',
								esc_url( wc_get_cart_remove_url( $cart_item_key ) ),
								__( 'Remove this item', 'splash' ),
								esc_attr( $product_id ),
								esc_attr( $_product->get_sku() )
							), $cart_item_key );
							?>
						</td>
					<?php endif; ?>

				
					<td class="product-name product-col-setting" data-title="<?php esc_html_e( 'Product', 'splash' ); ?>">
						<?php
							if ( ! $_product->is_visible() ) {
								echo apply_filters( 'woocommerce_cart_item_name', $_product->get_title(), $cart_item, $cart_item_key ) . '&nbsp;';
							} else {
								echo apply_filters( 'woocommerce_cart_item_name', sprintf( '<a href="%s">%s</a>', esc_url( $_product->get_permalink( $cart_item ) ), $_product->get_title() ), $cart_item, $cart_item_key );
							}

							// Meta data
							?>
							<td class="product-desc">
							    <div class="mobile-product">
							    <?php
							if ( ! $_product->is_visible() ) {
								echo apply_filters( 'woocommerce_cart_item_name', $_product->get_title(), $cart_item, $cart_item_key ) . '&nbsp;';
							} else {
								echo apply_filters( 'woocommerce_cart_item_name', sprintf( '<a href="%s">%s</a>', esc_url( $_product->get_permalink( $cart_item ) ), $_product->get_title() ), $cart_item, $cart_item_key );
							}

							// Meta data
							?>
							</div>
							<?php
							echo wc_get_formatted_cart_item_data( $cart_item ); ?>
							</td>
							<?php
                        
							// Backorder notification
							if ( $_product->backorders_require_notification() && $_product->is_on_backorder( $cart_item['quantity'] ) ) {
								echo '<p class="backorder_notification">' . esc_html__( 'Available on backorder', 'splash' ) . '</p>';
							}
						?>
					</td>

				

				

					<td class="product-subtotal" data-title="<?php esc_html_e( 'Total', 'splash' ); ?>">
						<?php
							echo apply_filters( 'woocommerce_cart_item_subtotal', WC()->cart->get_product_subtotal( $_product, $cart_item['quantity'] ), $cart_item, $cart_item_key );
						?>
							<?php
						echo apply_filters( 'woocommerce_cart_item_remove_link', sprintf(
							'<a href="%s" class="remove" title="%s" data-product_id="%s" data-product_sku="%s"><i class="fa fa-close"></i></a>',
							esc_url( wc_get_cart_remove_url( $cart_item_key ) ),
							esc_html__( 'Remove this item', 'splash' ),
							esc_attr( $product_id ),
							esc_attr( $_product->get_sku() )
						), $cart_item_key );
						?>
					</td>

					<?php if(!is_layout("sccr")) : ?>
					<!--<td class="product-remove">-->
					
					<!--</td>-->
					<?php endif; ?>
				</tr>
				<?php
			}
		}

		do_action( 'woocommerce_cart_contents' );
		?>
		<tr>
			<td colspan="6" class="actions">

				<?php if ( wc_coupons_enabled() ) { ?>
					<div class="coupon">

						<label for="coupon_code">
							<?php esc_html_e( 'Coupon', 'splash' ); ?>:</label>
							<input type="text" name="coupon_code" class="input-text" id="coupon_code" value="" placeholder="<?php esc_attr_e( 'Coupon code', 'splash' ); ?>" />
							<?php if(!is_layout("bb")): ?>
								<span class="button-input-wrap <?php if(is_layout("sccr")) echo "button-gray btn-only-border"; ?>">
							<?php endif; ?>
								<input type="submit" name="apply_coupon" value="<?php esc_attr_e( 'Apply', 'splash' ); ?>" />
							<?php if(!is_layout("bb")): ?>
								</span>
							<?php endif; ?>

						<?php do_action( 'woocommerce_cart_coupon' ); ?>
					</div>
				<?php } ?>

				<div class="stm-actions-right">
					<?php if(!is_layout("bb")): ?>
					<span class="button btn-md">
					<?php endif; ?>
						<!--<input type="submit" class="button" name="update_cart" value="<?php esc_attr_e( 'Update Cart', 'splash' ); ?>" />-->
					<?php if(!is_layout("bb")): ?>
						</span>
					<?php endif; ?>
					<?php if(!is_layout("sccr")) : ?>
					<div class="wc-proceed-to-checkout">
						<?php do_action( 'woocommerce_proceed_to_checkout' ); ?>
					</div>
					<?php endif; ?>
				</div>

				<?php do_action( 'woocommerce_cart_actions' ); ?>

				<?php wp_nonce_field( 'woocommerce-cart' ); ?>
			</td>
		</tr>

		<?php do_action( 'woocommerce_after_cart_contents' ); ?>
	</tbody>
</table>
</div>
<?php do_action( 'woocommerce_after_cart_table' ); ?>
</form>

<div class="cart-collaterals1">
	<?php
		/**
		 * woocommerce_cart_collaterals hook.
		 *
		 * @hooked woocommerce_cross_sell_display
		 * @hooked woocommerce_cart_totals - 10
		 */
	 	do_action( 'woocommerce_cart_collaterals' );
	?>
</div>

<?php do_action( 'woocommerce_after_cart' ); ?>