I abolished the idea of using the "model" field - too messy etc. and assigned this attribute to relevant products:

ID Option Name Option Type Option Value
2 Restricted Read Only Practitioner Details Required !
It had to be a Read Only attribute as I don't want any dropdowns, radio buttons, text fields or check boxes.

shows up in database as:

products_options_id = 2

products_options_name = Restricted
example product: Blackmores P.C.I.P. 170tabs

So, if the cart contains product(s) with products_options_id = 2 the following should come into play:

(file tpl_shopping_cart_default.php around lines 131-136)

<!--bof practitioner details-->
<fieldset class="shipping" id="comments">
<legend><?php echo TABLE_HEADING_COMMENTS; ?></legend>
<?php echo zen_draw_textarea_field('comments', '45', '3'); ?>
</fieldset>
<!--eof practitioner details-->
If the cart contains no products with products_options_id = 2 then comments box / legend should not be shown.

Not being savvy with php coding, how can I achieve this?


Thanks again