Totally Zenned
- Join Date:
- Jan 2007
- Location:
- Southern California
- Posts:
- 550
- Plugin Contributions:
- 0
Removed Qty Box, now want it back for some
Here is # 16
<!--bof Product Price block --> <h2 id="productPrices" class="productGeneral"> <?php // base price if ($show_onetime_charges_description == 'true') { $one_time = '<span >' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span><br />'; } else { $one_time = ''; } echo $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int)$_GET['products_id']); ?></h2> <!--eof Product Price block --> ``` and add > > <?php if (!ereg("(^23$|^23_)",$cPath)) { ?> > > and > > <?php } ?> > > to get ```php <!--bof Product Price block --> <?php if (!ereg("(^23$|^23_)",$cPath)) { ?><!--no price in gallery --> <h2 id="productPrices" class="productGeneral"> <?php // base price if ($show_onetime_charges_description == 'true') { $one_time = '<span >' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span><br />'; } else { $one_time = ''; } echo $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int)$_GET['products_id']); ?></h2> <?php } ?><!--/no price in gallery --> <!--eof Product Price block --> ``` > Change 23 to your gallery category id, and the price will not be shown on any product viewed in the gallery.gjh42:
OK, Tim, don't worry! Bite-size chunks coming up ;)
I included the full explanation for those who want to apply the logic to other situations; for you both, you can use what I have posted essentially as is.
Working in /includes/templates/your_template/templates/tpl_product_info_display.php, find this section ```php
