noesac Posted August 26, 2011 Share Posted August 26, 2011 Say I have a feature called "Leather", I want to create a category page that displays only products with the feature = "Leather". I'm thinking it would be a combination of the existing product-list.tpl code, with the code from the following link: http://www.prestasho...__1#entry598960 So I tried this but no luck: Changing from: {if isset($products)} <!-- Products list --> <ul id="product_list" class="clear"> {foreach from=$products item=product name=products} ...etc To: $features = self::getFrontFeatures($id_lang); $featureValue = null; foreach ($features as $feature) if ($feature['Style'] == 'Leather') $featureValue = $feature['value']; {if isset($products)} <!-- Products list --> <ul id="product_list" class="clear"> {foreach from=$products item=product name=products} ...etc Any ideas? Link to comment Share on other sites More sharing options...
peepo Posted August 28, 2011 Share Posted August 28, 2011 You could create a category called leather. Then every time you add a new catalogue item that includes leather check the box for the leather category aswell as the item main category. Link to comment Share on other sites More sharing options...
noesac Posted August 30, 2011 Author Share Posted August 30, 2011 No I don't want to mess up my data structure like that. That would be a bit of a hack solution 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