File manager - Edit - /home/aussies6/public_html/seafoodwarehouse.com.au/wp-content/themes/topshop/includes/inc/woocommerce-inc.php
Back
<?php // Ensure cart contents update when products are added to the cart via AJAX add_filter( 'woocommerce_add_to_cart_fragments', 'topshop_wc_header_add_to_cart_fragment' ); function topshop_wc_header_add_to_cart_fragment( $fragments ) { global $woocommerce; ob_start(); ?> <a class="header-cart-contents" href="<?php echo esc_url( wc_get_cart_url() ); ?>" title="<?php esc_attr_e( 'View your shopping cart', 'topshop' ); ?>"> <span class="header-cart-amount"> <?php echo sprintf( _n( '(%d)', '(%d)', WC()->cart->get_cart_contents_count(), 'topshop' ), WC()->cart->get_cart_contents_count() ); ?><span> - <?php echo wp_kses_data( WC()->cart->get_cart_subtotal() ); ?></span> </span> <span class="header-cart-checkout <?php echo ( WC()->cart->get_cart_contents_count() > 0 ) ? sanitize_html_class( 'cart-has-items' ) : ''; ?>"> <i class="fa <?php echo ( get_theme_mod( 'topshop-cart-icon' ) ) ? sanitize_html_class( get_theme_mod( 'topshop-cart-icon' ) ) : sanitize_html_class( 'fa-shopping-cart' ); ?>"></i> </span> </a> <?php $fragments['a.header-cart-contents'] = ob_get_clean(); return $fragments; }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings