https://t.me/AnonymousX5
Server : Apache
System : Linux ls31.server.ly 3.10.0-962.3.2.lve1.5.68.el7.x86_64 #1 SMP Wed Apr 6 11:12:23 UTC 2022 x86_64
User : medchoco ( 2906)
PHP Version : 8.3.16
Disable Function : mail
Directory :  /home/medchoco/public_html/wp-content/themes/puca/woocommerce/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/medchoco/public_html/wp-content/themes/puca/woocommerce/content-product-cart-modal.php
<?php
/**
 * Mini-cart
 *
 * Contains the markup for the mini-cart, used by the cart widget
 *
 * @author 		WooThemes
 * @package 	WooCommerce/Templates
 * @version     2.1.0
 */

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

global $woocommerce;
?>

<div class="row popup-cart">

	<?php if ( sizeof( WC()->cart->get_cart() ) > 0 ) : ?>

		<?php
			foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) {
				$product_id_cart   = apply_filters( 'woocommerce_cart_item_product_id', $cart_item['product_id'], $cart_item, $cart_item_key );
				if ( $product_id == $product_id_cart ) {
					$_product     = apply_filters( 'woocommerce_cart_item_product', $cart_item['data'], $cart_item, $cart_item_key );
					
					if ( $_product && $_product->exists() && $cart_item['quantity'] > 0 && apply_filters( 'woocommerce_widget_cart_item_visible', true, $cart_item, $cart_item_key ) ) {

						$product_name  = apply_filters( 'woocommerce_cart_item_name', $_product->get_name(), $cart_item, $cart_item_key );
						$thumbnail     = apply_filters( 'woocommerce_cart_item_thumbnail', $_product->get_image(), $cart_item, $cart_item_key );
						$product_price = apply_filters( 'woocommerce_cart_item_price', WC()->cart->get_product_price( $_product ), $cart_item, $cart_item_key );

						?>
						<div class="col-md-6 col-sm-12 col-xs-12">
							<h2 class="title-add"><i class="zmdi zmdi-check-circle"></i> <?php esc_html_e('Product added', 'puca'); ?></h2>
							<div class="media widget-product">
								<a href="<?php echo esc_url( get_permalink( $product_id ) ); ?>" class="image pull-left">
									<?php echo trim($thumbnail); ?>
								</a>
								<div class="cart-main-content media-body">
									
									<h3 class="name">
										<a href="<?php echo esc_url( get_permalink( $product_id ) ); ?>">
											<?php echo esc_html($product_name); ?>
										</a>
									</h3>
									<p class="cart-item">
										<?php echo wc_get_formatted_cart_item_data( $cart_item ); // PHPCS: XSS ok. ?>
										<?php echo apply_filters( 'woocommerce_widget_cart_item_quantity', '<span class="quantity">' . sprintf( '%s &times; %s', $cart_item['quantity'], $product_price ) . '</span>', $cart_item, $cart_item_key ); ?>
									</p>

								</div>
							</div>
						</div>
						<div class="col-md-6 cart col-sm-12 col-xs-12">
							<div>
								<div class="total"><strong><?php esc_html_e( 'Subtotal', 'puca' ); ?>:</strong> <?php echo WC()->cart->get_cart_subtotal(); ?></div>
								<?php do_action( 'woocommerce_widget_shopping_cart_before_buttons' ); ?>

								<div class="gr-buttons clearfix ">
									<a href="<?php echo esc_url( wc_get_cart_url() ); ?>" class="btn btn-default">
										<?php echo sprintf(_n('View Cart (%d)', 'View Cart (%d)', $woocommerce->cart->cart_contents_count, 'puca'), $woocommerce->cart->cart_contents_count);?>
										<i class="icon-bag"></i>
									</a>
									<a href="<?php echo esc_url( wc_get_checkout_url() ); ?>" class="btn btn-default pull-right checkout"><?php esc_html_e( 'Checkout', 'puca' ); ?> <i class="icon-key icons"></i></a>
								</div>
							</div>
						</div>
						<?php
					}
					break;
				}
			}
		?>
		

	<?php else : ?>

		<div class="empty"><?php esc_html_e( 'No products in the cart.', 'puca' ); ?></div>

	<?php endif; ?>

</div>

https://t.me/AnonymousX5 - 2025