HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/shoetique/wp-content/themes/north-wp/woocommerce/cart/cart.php
<?php
/**
 * Cart Page
 *
 * @author 		WooThemes
 * @package 	WooCommerce/Templates
 * @version     2.3.8
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}
?>

<section class="my_woocommerce_page my_cart">
	<?php do_action( 'woocommerce_before_cart' ); ?>
	<div class="row full-width-row">
		<form action="<?php echo esc_url( wc_get_cart_url() ); ?>" method="post" data-equal=">.columns" class="row no-padding">
			<div class="small-12 medium-8 columns">
			<?php wc_print_notices(); ?>
			<?php do_action( 'woocommerce_before_cart_table' ); ?>
			
			<table class="shopping_bag cart" cellspacing="0">
				<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 ) ) {
									?>


									<?php 

									$on_sale = $_product->is_on_sale();

									$current_price = $_product->get_price();

									if ($_product->get_type() == 'variable'){
										$old_price = $_product->get_variation_regular_price('min');
									}
									else{
										$old_price = $_product->get_regular_price();
									}

									$lowest_price = wc_get_price_to_display( $_product, array( 'price' => get_lowest_price( $_product->get_id(), $old_price ) ) );

									?>


								<tr class="<?php echo esc_attr( apply_filters( 'woocommerce_cart_item_class', 'cart_item', $cart_item, $cart_item_key ) ); ?>">
									
			
									<!-- The thumbnail -->
									<td class="product-thumbnail">
										<?php
											$thumbnail = apply_filters( 'woocommerce_cart_item_thumbnail', $_product->get_image(), $cart_item, $cart_item_key );
				
											if ( ! $_product->is_visible() )
												echo $thumbnail;
											else
												printf( '<a href="%s">%s</a>', $_product->get_permalink( $cart_item ), $thumbnail );
										?>
									</td>
			
									<!-- Product Name -->
									<td class="product-name">
										<div class="hide-small">
											<?php
												$size = sizeof( get_the_terms( $product_id, 'product_cat' ) );
												echo wc_get_product_category_list( $product_id, ', ', '<span class="posted_in">' . _n( '', '', $size,'north' ) . ' ', '</span>' );
											?>
											<?php
												if ( ! $_product->is_visible() )
													echo '<h6>'.apply_filters( 'woocommerce_cart_item_name', $_product->get_title(), $cart_item, $cart_item_key ).'</h6>';
												else
													echo '<h6>'.apply_filters( 'woocommerce_cart_item_name', sprintf( '<a href="%s">%s</a>', $_product->get_permalink(), $_product->get_title() ), $cart_item, $cart_item_key ).'</h6>';
					
												// Meta data

												echo wc_get_formatted_cart_item_data_borealis( $cart_item );
					
												// Backorder notification
												if ( $_product->backorders_require_notification() && $_product->is_on_backorder( $cart_item['quantity'] ) )
													echo '<p class="backorder_notification">' . __( 'Available on backorder','north' ) . '</p>';
											?>
										</div>
										<div class="hide-large">
											<div class="mobile-cart-outter">
												<div class="mobile-cart-title-inner">
													<?php
														$size = sizeof( get_the_terms( $product_id, 'product_cat' ) );
														echo wc_get_product_category_list( $product_id, ', ', '<span class="posted_in">' . _n( '', '', $size,'north' ) . ' ', '</span>' );
													?>
													<?php
														if ( ! $_product->is_visible() )
															echo '<h6>'.apply_filters( 'woocommerce_cart_item_name', $_product->get_title(), $cart_item, $cart_item_key ).'</h6>';
														else
															echo '<h6>'.apply_filters( 'woocommerce_cart_item_name', sprintf( '<a href="%s">%s</a>', $_product->get_permalink(), $_product->get_title() ), $cart_item, $cart_item_key ).'</h6>';
							
														// Backorder notification
														if ( $_product->backorders_require_notification() && $_product->is_on_backorder( $cart_item['quantity'] ) )
															echo '<p class="backorder_notification">' . __( 'Available on backorder','north' ) . '</p>';
													?>
												</div>
												<?php
													echo apply_filters( 'woocommerce_cart_item_remove_link', sprintf( '<a href="%s" class="remove" title="%s">&times;</i></a>', esc_url( wc_get_cart_remove_url( $cart_item_key ) ), __( 'Remove this item','north' ) ), $cart_item_key );
												?>
											</div>
											<div class="mobile-cart-outter">
												<div class="mobile-cart-qty-inner">

													<?php
														// Meta data
														echo wc_get_formatted_cart_item_data_borealis( $cart_item );
													
														if ( $_product->is_sold_individually() ) {
															$product_quantity = sprintf( '1 <input type="hidden" name="cart[%s][qty]" value="1" />', $cart_item_key );
														} else {
															$product_quantity = woocommerce_quantity_input( array(
																'input_name'  => "cart[{$cart_item_key}][qty]",
																'input_value' => $cart_item['quantity'],
																'max_value'   => $_product->backorders_allowed() ? '' : $_product->get_stock_quantity(),
															), $_product, false );
														}
							
														echo apply_filters( 'woocommerce_cart_item_quantity', $product_quantity, $cart_item_key, $cart_item );
													?>
													
												</div>
												<div class="mobile-cart-price-inner">
													<?php if ( $price_html = $_product->get_price_html() ) : ?>
														<div class="price-outter">
															<?php if ($on_sale) : ?>
																<span class="price old"><?php echo price_with_secondary($old_price); ?></span>
															<?php endif; ?>
															<span class="price current"><?php echo price_with_secondary($current_price); ?></span>
															<?php if ($on_sale) : ?>
																<span class="lowest_price"><?= __( 'Najniža cijena u zadnjih 30 dana:', 'lowest-price' ) ?> <span class="lowest_amount"><?= price_with_secondary( $lowest_price ) .  $_product->get_price_suffix() ?> </span></span>
															<?php endif; ?>
														</div>
													<?php endif; ?>
												</div>
											</div>
										</div>
									</td>
			
									<!-- Quantity inputs -->
									<td class="product-quantity">
										<?php
											if ( $_product->is_sold_individually() ) {
												$product_quantity = sprintf( '1 <input type="hidden" name="cart[%s][qty]" value="1" />', $cart_item_key );
											} else {
												$product_quantity = woocommerce_quantity_input( array(
													'input_name'  => "cart[{$cart_item_key}][qty]",
													'input_value' => $cart_item['quantity'],
													'max_value'   => $_product->backorders_allowed() ? '' : $_product->get_stock_quantity(),
												), $_product, false );
											}
				
											echo apply_filters( 'woocommerce_cart_item_quantity', $product_quantity, $cart_item_key, $cart_item );
										?>
									</td>
			
									<!-- Product subtotal -->
									<td class="product-subtotal">
									<?php if ( $price_html = $_product->get_price_html() ) : ?>
										<div class="price-outter">
											<?php if ($on_sale) : ?>
												<span class="price old"><?php echo price_with_secondary($old_price); ?></span>
											<?php endif; ?>
											<span class="price current"><?php echo price_with_secondary($current_price); ?></span>
											<?php if ($on_sale) : ?>
												<span class="lowest_price"><?= __( 'NC u zadnjih 30 dana:', 'lowest-price' ) ?> <span class="lowest_amount"><?= price_with_secondary( $lowest_price ) .  $_product->get_price_suffix() ?> </span></span>
											<?php endif; ?>
										</div>
									<?php endif; ?>
									</td>
									<!-- Remove from cart link -->
									<td class="product-remove">
										<?php
											echo apply_filters( 'woocommerce_cart_item_remove_link', sprintf( '<a href="%s" class="remove" title="%s">&times;</i></a>', esc_url( wc_get_cart_remove_url( $cart_item_key ) ), __( 'Remove this item','north' ) ), $cart_item_key );
										?>
									</td>
								</tr>
								<?php
						}
					}
			
					do_action( 'woocommerce_cart_contents' );
					?>
					<?php do_action( 'woocommerce_after_cart_contents' ); ?>
				</tbody>
			</table>
				
			<?php do_action( 'woocommerce_after_cart_table' ); ?>
			</div>
			<div class="small-12 medium-4 columns">
				<aside class="cart-collaterals">
						<div class="inner">
							<a href="<?php echo apply_filters( 'woocommerce_return_to_shop_redirect', get_permalink( wc_get_page_id( 'shop' ) ) ); ?>">&larr; <?php _e( 'Continue Shopping','north' ); ?></a>
						</div>
						<div class="inner">
							<input type="submit" class="update-button button black" name="update_cart" value="<?php _e( 'Update','north' ); ?>" />
							<?php do_action( 'woocommerce_proceed_to_checkout' ); ?>
							<?php wp_nonce_field( 'woocommerce-cart' ); ?>
							
							<?php do_action('woocommerce_cart_collaterals'); ?>
	
							<?php if ( WC()->cart->coupons_enabled() ) { ?>
								<input type="text" name="coupon_code" id="coupon_code" value="" class="full" placeholder="<?php _e( 'Enter Coupon Code', 'north' ); ?>"/>
								<input type="submit" class="apply_coupon" name="apply_coupon" value="<?php _e( 'Apply','north' ); ?>" />
								<?php do_action('woocommerce_cart_coupon'); ?>
							<?php } ?>
							<?php woocommerce_shipping_calculator(); ?>
						</div>
				</aside>
			</div>
		</form>
	</div>
	<?php do_action( 'woocommerce_after_cart' ); ?>
</section>