Jump to content

Attribute problem


Recommended Posts

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

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

×
×
  • Create New...