Support Forum

For all questions related to themes and plugins!

Enter search keyword e.g. "footer color".

  • Registration is Required

    Registration is required to post questions to support forum. ThemeForest buyers also need to obtain Purchase code to be able to post on forum.

    Please read here how to obtain Purchase code.

#2044
Robert Kavgić
Participant

Hello,

One posibility is to modify the header.php in wp-content/themes/elvyre. Open that file and go to about line 128 where it says:

<?php if (defined('PI_WOOCOMMERCE') && PI_WOOCOMMERCE && isset($pi_theme_options['woo_header_cart']) && $pi_theme_options['woo_header_cart'] == '1'): ?>
	<?php global $woocommerce ?>
	<div class="header-cart">
		<div class="cart-container icon-cart-3">
			<a class="cart-contents" href="<?php echo $woocommerce->cart->get_cart_url(); ?>" title="<?php _e('View your shopping cart', 'pi_framewowk'); ?>"> <span class="cart-count"><?php $woocommerce->cart->cart_contents_count ?></span> <?php echo $woocommerce->cart->get_cart_total(); ?></a>
		</div>
	</div>
<?php endif; ?>

And modify the code to look like:

<?php if (defined('PI_WOOCOMMERCE') && PI_WOOCOMMERCE && isset($pi_theme_options['woo_header_cart']) && $pi_theme_options['woo_header_cart'] == '1'): ?>
	<?php global $woocommerce ?>
	<?php if ( sizeof( $woocommerce->cart->cart_contents ) != 0 ) { ?>
	<div class="header-cart">
		<div class="cart-container icon-cart-3">
			<a class="cart-contents" href="<?php echo $woocommerce->cart->get_cart_url(); ?>" title="<?php _e('View your shopping cart', 'pi_framewowk'); ?>"> <span class="cart-count"><?php $woocommerce->cart->cart_contents_count ?></span> <?php echo $woocommerce->cart->get_cart_total(); ?></a>
		</div>
	</div>
	<?php } ?>
<?php endif; ?>

Let me know if that’s what you wanted…

Robert