Permalink
Browse files

bug fix when hidden

  • Loading branch information...
1 parent a4e65d3 commit 10f226a3326ca0b093e1d721522d3f65cbcea1a9 @mikejolley mikejolley committed Apr 12, 2012
Showing with 0 additions and 4 deletions.
  1. +0 −4 shortcodes/shortcode-init.php
@@ -271,8 +271,6 @@ function woocommerce_product_add_to_cart($atts){
$product = $woocommerce->setup_product_data( $product_data );
- if (!$product->is_visible()) continue;
-
ob_start();
?>
<p class="product" style="<?php echo $atts['style']; ?>">
@@ -293,8 +291,6 @@ function woocommerce_product_add_to_cart($atts){
$variation = new WC_Product_Variation( $product_data->ID );
- if (!$product->is_visible()) continue;
-
ob_start();
?>
<p class="product product-variation" style="<?php echo $atts['style']; ?>">

0 comments on commit 10f226a

Please sign in to comment.