Jump to content

Hide product attributes cart overview


Recommended Posts

Hi,

 

For a shop I'm building, I've many products with a lot of attributes. These attributes groups only have 2 values: "ja" and "nee"

 

 

In my shopping cart overview I only wat to display the product attributes with the value "ja"

The attributes with the value "nee" I want to hide from the overview. (See the attached picture, it shows all attributes, even with value "nee")

 

In shopping-cart.tpl is the following code which displays the attributes in the shopping-cart overview:

{if isset($product.attributes) && $product.attributes}<a class="product_descr" href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)|escape:'htmlall':'UTF-8'}">{$product.attributes|escape:'htmlall':'UTF-8'}</a>{/if}

 

Does anyone knows how to modify this code, so it doesn't display the attribute-groups with value "nee"?

 

Thanks in advance!

 

Regards Remy

post-354795-0-55324600-1350304466_thumb.jpg

Link to comment
Share on other sites

It's not so simply.

You probably want to modify the getProducts() function in the Cart.php class, and add a new variable (IE attribute_clean), you will have to parse out the attributes and remove any attribute with value nee (make sure to do it for all languages if you use more than 1)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...