27 Mar 2012, 1:42 PM
New Zenner
- Join Date:
- Jul 2011
- Posts:
- 13
- Plugin Contributions:
- 0
hide attribute on shopping cart page
I am trying to edit the tpl_shopping_cart_default.php file for my attributes. I have an attribute that lists the color for my products. However this is an internal attribute that the customers do not need to see. I have already hidden the attribute on the product page, but I can't get it to hide on the shopping cart page. This is the code from the tpl_shopping_cart_default.php page```php
<?php echo $product['attributeHiddenField']; if (isset($product['attributes']) && is_array($product['attributes'])) { echo '<div class="cartAttribsList">'; echo '<ul>'; reset($product['attributes']); foreach ($product['attributes'] as $option => $value) { ?> <li><?php echo $value['products_options_name'] . TEXT_OPTION_DIVIDER . nl2br($value['products_options_values_name']); ?></li> <?php } echo '</ul>'; echo '</div>'; } ?>
I think I need something under the foreach function that reads something like this but it's not working. ```php
if (($value['products_options_name']) == "Color") {
echo '<li style="opacity:0"></li>';
}else{