sahifa主题设置头部购物车的方式

Published
April 27, 2022
浏览次数 :  1

<?php
					if( tie_get_option( 'shopping_cart' ) && function_exists( 'is_woocommerce' ) ): ?>
						<a class="tie-cart ttip" href="<?php echo wc_get_cart_url(); ?>" title="<?php _eti( 'View your shopping cart' ); ?>">
							<span id="cart-header-count" class="shooping-count-outer">
								<?php
									$cart_count_items = WC()->cart->get_cart_contents_count();
									if( ! empty( $cart_count_items ) ){ ?>
										<span class="shooping-count"><?php echo ( $cart_count_items ) ?></span>
										<?php
									}
								?><i class="fa fa-shopping-cart"></i>
								</span>
						</a>
					<?php endif ?>

Top