has_pro() ? ' has-ajax-update' : ' no-ajax-update'; ?>
cart->is_empty() ) { wc_get_template( 'cart/cart-empty.php' ); } else { ?>
%s
', esc_attr( $heading['cart_table_items'] ), esc_attr( $heading['_id'] ), esc_html( $heading['cart_table_heading_title'] ) ); } ?> 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 ); $GLOBALS['product'] = $_product; 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 ); $show_image_on_mobile = ( $horizontal_scroll || $controllers['show_image_on_mobile'] ) ? ' show-image-on-mobile' : ' hide-image-on-mobile'; ?> get_name(), $cart_item, $cart_item_key ); switch ( $table['cart_table_items'] ) { case 'remove': echo ''; break; case 'products': echo ''; break; case 'thumbnail': echo ''; break; case 'name': echo ''; break; case 'price': echo ''; break; case 'quantity': echo ''; break; case 'subtotal': echo ''; break; case 'custom_field': echo ''; break; default: break; } } ?>
'; echo apply_filters( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped 'woocommerce_cart_item_remove_link', sprintf( '%s', esc_url( wc_get_cart_remove_url( $cart_item_key ) ), esc_attr__( 'Remove this item', 'shopbuilder' ), esc_attr( $product_id ), esc_attr( $_product->get_sku() ), ! empty( Fns::icons_manager( $table['cart_table_remove_icon'] ) ) ? Fns::icons_manager( $table['cart_table_remove_icon'] ) : '' ), $cart_item_key ); echo '
'; do_action( 'rtsb/cart/table/products/column', $cart_item_key, $_product, $cart_item, $table, $controllers ); echo '
'; $thumbnail_size = isset( $table['cart_table_thumbnail_size'] ) ? $table['cart_table_thumbnail_size'] : 'thumbnail'; $thumbnail = apply_filters( 'woocommerce_cart_item_thumbnail', $_product->get_image( $thumbnail_size ), $cart_item, $cart_item_key ); if ( ! $product_permalink ) { Fns::print_html( $thumbnail, true ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } else { printf( '%s', esc_url( $product_permalink ), $thumbnail ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } echo '
'; if ( ! $product_permalink ) { echo wp_kses_post( apply_filters( 'woocommerce_cart_item_name', $_product->get_name(), $cart_item, $cart_item_key ) . ' ' ); } else { echo wp_kses_post( apply_filters( 'woocommerce_cart_item_name', sprintf( '%s', esc_url( $product_permalink ), $_product->get_name() ), $cart_item, $cart_item_key ) ); } do_action( 'woocommerce_after_cart_item_name', $cart_item, $cart_item_key ); if ( ! empty( $table['show_variation_data'] ) ) { Fns::print_html( wc_get_formatted_cart_item_data( $cart_item ), true ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } // Backorder notification. if ( $_product->backorders_require_notification() && $_product->is_on_backorder( $cart_item['quantity'] ) ) { echo wp_kses_post( apply_filters( 'woocommerce_cart_item_backorder_notification', '

' . esc_html__( 'Available on backorder', 'shopbuilder' ) . '

', $product_id ) ); } echo '
'; echo apply_filters( 'woocommerce_cart_item_price', WC()->cart->get_product_price( $_product ), $cart_item, $cart_item_key ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo '
'; if ( $_product->is_sold_individually() ) { $min_quantity = 1; $max_quantity = 1; } else { $min_quantity = 0; $max_quantity = $_product->get_max_purchase_quantity(); } $product_quantity = woocommerce_quantity_input( [ 'input_name' => "cart[{$cart_item_key}][qty]", 'input_value' => $cart_item['quantity'], 'max_value' => $max_quantity, 'min_value' => $min_quantity, 'product_name' => $product_name, ], $_product, false ); echo apply_filters( 'woocommerce_cart_item_quantity', $product_quantity, $cart_item_key, $cart_item, $table ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo '
'; echo apply_filters( 'woocommerce_cart_item_subtotal', WC()->cart->get_product_subtotal( $_product, $cart_item['quantity'] ), $cart_item, $cart_item_key, $table ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo '
'; echo Fns::get_post_custom_field_value( $product_id, $table['cart_table_custom_field'], $table['cart_table_custom_field_fallback'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo '
placeholder="" />