Quantcast
Channel: WordPress.org Forums » [WooCommerce] Support
Viewing all articles
Browse latest Browse all 104029

patxianton on "[Plugin: WooCommerce - excelling eCommerce] Category conditional dont works"

$
0
0

Hello,
I want to make a loop to display some products according to their category.
The products of category "photography" can be chosen amount.
In the products of category "sculpture" can not choose quantity, there is only one product.

The code should be displayed only in the photography category but comes in all

<?php global $post, $product, $woocommerce_loop;

?>

<?php 

if (is_product_category('photography')) ; ?>

<div class="quantity"><input name="<?php echo $input_name; ?>" data-min="<?php echo $min_value; ?>" data-max="<?php echo $max_value; ?>" value="<?php echo $input_value; ?>" size="4" title="Qty" class="input-text qty text" maxlength="12" /></div>

<?php endif ?>

Thanks a lot

http://wordpress.org/extend/plugins/woocommerce/


Viewing all articles
Browse latest Browse all 104029

Trending Articles