Jump to content

[SOLVED] Hide Attribute Group in shopping cart, but show Attribute


Recommended Posts

Hello, I am building my first prestashop, and love it! I am constantly amazed at cool features and this forum has been incredible. The site is almost complete and ready to go online, but my question today is about displaying attribute groups in the shopping cart. (shopping-cart.tpl and shopping-cart-product-line.tpl)

Currently, the cart displays the product and underneath that, it displays the Attribute group followed by a colon and then the selected attribute. I would like to find a way to separate the two (attribute group and attribute) and only display the selected attribute. I have narrowed the code down to what is posted below and recognize that it is $product.attributes that causes both of them to display. Where is this defined and how can I separate the two?

I have also attached a screenshot to show you that I would like to remove the Choose Your Foundation Shade, etc.. Thank you very much in advance!


getProductLink($product.id_product, $product.link_rewrite, $product.category)|escape:'htmlall':'UTF-8'}">{$product.name|escape:'htmlall':'UTF-8'}
       {if $product.attributes}getProductLink($product.id_product, $product.link_rewrite, $product.category)|escape:'htmlall':'UTF-8'}">{$product.attributes|escape:'htmlall':'UTF-8'}
{/if}

35170_eFVXgkzhcEeElHpriiCB_t

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...