HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
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/html/wptoho/wp-content/themes/themify-ultra/includes/shopdock.php
<?php
/**
 * Template for cart
 * @package themify
 * @since 1.0.0
 */
?>
<?php themify_shopdock_before(); //hook ?>
<div id="shopdock-ultra">

	<?php themify_shopdock_start(); //hook 
	if(themify_is_ajax()):
		// check whether cart is not empty
		if (!empty( WC()->cart->get_cart() )): ?>
			<div id="cart-wrap">
				<?php
				if(current_user_can( 'manage_woocommerce' ) && 'yes' !== get_option( 'woocommerce_enable_ajax_add_to_cart' )){
					echo sprintf('<div class="tf_admin_msg">%s <a href="%s">%s</a>.</div>',
						/* translators: This string is cached in the browser, make sure to clear browser cache. Also in multilingual websites, WooCommerce Multilingual plugin is required for translated text to show. */
						__('WooCommerce Ajax add to cart option needs to be enabled to use this Ajax cart.','themify'),
						admin_url('admin.php?page=wc-settings&tab=products'),
						/* translators: This string is cached in the browser, make sure to clear browser cache. Also in multilingual websites, WooCommerce Multilingual plugin is required for translated text to show. */
						__('Enable it on WooCommerce settings','themify')
					);
				}
				?>
				<div id="cart-list">
					<?php get_template_part( 'includes/loop-product', 'cart' ); ?>
				</div>
				<!-- /cart-list -->

				<p class="cart-total">
					<?php echo WC()->cart->get_cart_subtotal(); ?>
					<a id="view-cart" href="<?php echo wc_get_cart_url(); ?>">
						<?php
							/* translators: This string is cached in the browser, make sure to clear browser cache. Also in multilingual websites, WooCommerce Multilingual plugin is required for translated text to show. */
							_e('View cart', 'woocommerce')
						?>
					</a>
				</p>

				<?php themify_checkout_start(); //hook ?>

				<p class="checkout-button">
					<button type="submit" class="button checkout white flat" onClick="document.location.href='<?php echo  wc_get_checkout_url(); ?>'; return false;"><?php
						/* translators: This string is cached in the browser, make sure to clear browser cache. Also in multilingual websites, WooCommerce Multilingual plugin is required for translated text to show. */
						_e('Checkout', 'woocommerce')
					?></button>
				</p>
				<!-- /checkout-botton -->

				<?php themify_checkout_end(); //hook ?>

			</div>
			<!-- /#cart-wrap -->
		<?php else: ?>
			<?php
            /* translators: This string is cached in the browser, make sure to clear browser cache. Also in multilingual websites, WooCommerce Multilingual plugin is required for translated text to show. */
			printf( __( 'Your cart is empty. Go to <a href="%s">Shop</a>.', 'themify' ), themify_get_shop_permalink() );
			?>
		<?php endif; // cart whether is not empty?>
	<?php endif;?>

	<?php themify_shopdock_end(); //hook ?>

</div>
<!-- /#shopdock -->
<?php themify_shopdock_after();