This commit is contained in:
Mike Jolley 2011-11-24 14:36:09 +00:00
parent 583741c442
commit 73a7a2d599
1 changed files with 2 additions and 3 deletions

View File

@ -285,7 +285,7 @@ if (!function_exists('woocommerce_simple_add_to_cart')) {
if( $_product->get_price() === '') return;
if ($availability['availability']) :
echo apply_filters( 'woocommerce_stock_html', '<p class="stock '.$availability['class'].'">'.$availability['availability'].'</p>', $availability['availability'] );
echo apply_filters( 'woocommerce_stock_html', '<p class="stock '.$availability['class'].'">'.$availability['availability'].'</p>', $availability['availability'] );
endif;
// Don't show cart if out of stock
@ -338,8 +338,7 @@ if (!function_exists('woocommerce_grouped_add_to_cart')) {
if ($child_product->is_visible()) echo '</a>';
?></label></td>
<td class="price"><?php echo $child_product->get_price_html(); ?>
<?php echo apply_filters( 'woocommerce_stock_html',
'<small class="stock '.$cavailability['class'].'">'.$cavailability['availability'].'</small>', $cavailability['availability'] ); ?>
<?php echo apply_filters( 'woocommerce_stock_html', '<small class="stock '.$cavailability['class'].'">'.$cavailability['availability'].'</small>', $cavailability['availability'] ); ?>
</td>
</tr>
<?php endforeach; ?>