juanw Posted February 12, 2013 Share Posted February 12, 2013 Dear friends, I have two attributes in each product, but I just want to show one attribute in the cart. I can not delete the the attribute because I need it the connect with my office program. The code is this, but I do not know how to say "only show attribute group 1" <td class="cart_description"> <h5><a href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category, null, null, null, $product.id_product_attribute)|escape:'htmlall':'UTF-8'}">{$product.name|escape:'htmlall':'UTF-8'}</a></h5> {if isset($product.attributes) && $product.attributes}<a href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category, null, null, null, $product.id_product_attribute)|escape:'htmlall':'UTF-8'}">{$product.attributes|escape:'htmlall':'UTF-8'}</a>{/if} </td> Any help? Thanks in advance. Link to comment Share on other sites More sharing options...
yaniv14 Posted February 12, 2013 Share Posted February 12, 2013 if you know the attribute group number you want to "hide", you can hide it with css. let say you want to hide group_3 so you can add: #group_3 {display:none;} label[for=group_3] {display:none;} Link to comment Share on other sites More sharing options...
juanw Posted February 12, 2013 Author Share Posted February 12, 2013 if you know the attribute group number you want to "hide", you can hide it with css. let say you want to hide group_3 so you can add: #group_3 {display:none;} label[for=group_3] {display:none;} Hi Yaniv, thanks for your reply, but where have I put the CSS code? Link to comment Share on other sites More sharing options...
yaniv14 Posted February 12, 2013 Share Posted February 12, 2013 product.css Link to comment Share on other sites More sharing options...
juanw Posted February 12, 2013 Author Share Posted February 12, 2013 (edited) product.css It does not work :-( Edited February 12, 2013 by juanw (see edit history) Link to comment Share on other sites More sharing options...
yaniv14 Posted February 12, 2013 Share Posted February 12, 2013 can you post your site url? Link to comment Share on other sites More sharing options...
Recommended Posts