I abolished the idea of using the "model" field - too messy etc. and assigned this attribute to relevant products:
It had to be a Read Only attribute as I don't want any dropdowns, radio buttons, text fields or check boxes.ID Option Name Option Type Option Value
2 Restricted Read Only Practitioner Details Required !
shows up in database as:
example product: Blackmores P.C.I.P. 170tabsproducts_options_id = 2
products_options_name = Restricted
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)
If the cart contains no products with products_options_id = 2 then comments box / legend should not be shown.<!--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-->
Not being savvy with php coding, how can I achieve this?
Thanks again
Bookmarks