OK, good. I thought you might since you were working in Stock, but wanted to mention it for completeness.
In Product Types, all you have to do is set
Show Quantity in Stock to 1.
In tpl_product_info_display.php, you will want to add a test in this section
PHP Code:
<!--bof Product details list -->
<?php if ( (($flag_show_product_info_model == 1 and $products_model !=”) or ($flag_show_product_info_weight == 1 and $products_weight !=0) or ($flag_show_product_info_quantity == 1) or ($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name))) ) { ?>
<ul id="productDetailsList" >
<?php echo (($flag_show_product_info_model == 1 and $products_model !='') ? '<li>' . TEXT_PRODUCT_MODEL . $products_model . '</li>' : '') . "\n"; ?>
<?php echo (($flag_show_product_info_weight == 1 and $products_weight !=0) ? '<li>' . TEXT_PRODUCT_WEIGHT . $products_weight . TEXT_PRODUCT_WEIGHT_UNIT . '</li>' : '') . "\n"; ?>
<?php echo (($flag_show_product_info_quantity == 1 and $products_quantity >0) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>' : '') . "\n"; ?>
<?php echo ((/*$flag_show_product_info_quantity == 1 and */$products_quantity <=0) ? '<li>' . TEXT_PRODUCT_O_O_S . '</li>' : '') . "\n"; ?>
so this line
<?php echo (($flag_show_product_info_quantity == 1 and $products_quantity >0) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>' : '') . "\n"; ?>
is only executed if you are not in a comics category.
A variation on this code
PHP Code:
if(in_array(str_replace("cPath=","",$box_categories_array[$i]['path']), explode(",",'3,21,21_57'))) {
where the last bunch of numbers are replaced by your comic category cPaths will control it.
I'll go into it more thoroughly tomorrow, though it's not much more complicated than just this.
Bookmarks