soapdude Posted December 14, 2010 Share Posted December 14, 2010 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} Link to comment Share on other sites More sharing options...
soapdude Posted December 14, 2010 Author Share Posted December 14, 2010 I got it... Simply change $product.attributes to $product.attributes_small {if $product.attributes}getProductLink($product.id_product, $product.link_rewrite, $product.category)|escape:'htmlall':'UTF-8'}">{$product.attributes|escape:'htmlall':'UTF-8'} {/if} {if $product.attributes}getProductLink($product.id_product, $product.link_rewrite, $product.category)|escape:'htmlall':'UTF-8'}">{$product.attributes_small|escape:'htmlall':'UTF-8'} {/if} Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now