Skip to content

Commit

Permalink
Bugfix. critical microsoft lumia bug
Browse files Browse the repository at this point in the history
Close browser on loading.
  • Loading branch information
flinius committed Feb 5, 2016
1 parent 61e9a03 commit 8a9c1a4
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1414,15 +1414,11 @@ function fruitful_woocommerce_related_products($posts_per_page = 2, $columns = 2
if ( ! function_exists( 'fruitful_woocommerce_header_add_to_cart_fragment' ) ) {
function fruitful_woocommerce_header_add_to_cart_fragment( $fragments ) {
global $woocommerce;
ob_start();
?>
<a href="<?php echo get_permalink( woocommerce_get_page_id( 'cart' ) ); ?>" class="cart-contents">
<div class="cart_image"></div>
<span class="num_of_product_cart"><?php global $woocommerce;
echo sprintf(_n('%d ', '%d ', $woocommerce->cart->cart_contents_count, 'fruitful'), $woocommerce->cart->cart_contents_count); ?> </span>
</a>
<?php
$fragments['a.cart-contents'] = ob_get_clean();
$out = '<a href= '.get_permalink( woocommerce_get_page_id( 'cart' ) ).'" class="cart-contents">';
$out .= '<div class="cart_image"></div>';
$out .= '<span class="num_of_product_cart">';
$out .= sprintf(_n('%d ', '%d ', $woocommerce->cart->cart_contents_count, 'fruitful'), $woocommerce->cart->cart_contents_count) .'</span></a>';
$fragments['a.cart-contents'] = $out;
return $fragments;
}
}
Expand Down

0 comments on commit 8a9c1a4

Please sign in to comment.