siddaramesh Posted December 31, 2014 Share Posted December 31, 2014 (edited) hi, i want to display product features in category-wise like below.. OUTPUT light source osram color red, green, blue MECHANICAL Tempreture 50 weight 2grams height 1.2 inch ELECTRICAL input voltage 90v power consumption 12W how can do like this in product page Edited December 31, 2014 by siddaramesh (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted December 31, 2014 Share Posted December 31, 2014 By default, you can't, unfortunately. There is no such thing as feature groups or categories. THerefore, you might try a tricky-like approach by checking the features ids, looping through all of them in the template file 3 files and displaying only the ones you want Link to comment Share on other sites More sharing options...
siddaramesh Posted December 31, 2014 Author Share Posted December 31, 2014 (edited) By default, you can't, unfortunately. There is no such thing as feature groups or categories. THerefore, you might try a tricky-like approach by checking the features ids, looping through all of them in the template file 3 files and displaying only the ones you want i don't know how to code for this please send some code for this. i'll apply to my .tpl file. Edited December 31, 2014 by siddaramesh (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted December 31, 2014 Share Posted December 31, 2014 It's impossible as we would need to know those features' ids. Try something like {foreach from=$features item=feature} {if $feature.id_feature|in_array([1,51,33])} // display, for example, the first group {/if} {/foreach} Link to comment Share on other sites More sharing options...
siddaramesh Posted December 31, 2014 Author Share Posted December 31, 2014 It's impossible as we would need to know those features' ids. Try something like {foreach from=$features item=feature} {if $feature.id_feature|in_array([1,51,33])} // display, for example, the first group {/if} {/foreach} okay thanks for your code, i've one more problem in product features i added product feature value 120° but in front end it displaying like 120°, what to do for this Link to comment Share on other sites More sharing options...
NemoPS Posted December 31, 2014 Share Posted December 31, 2014 it might be escaped, try removing "htmlall" and write "html" instead, when it displays, or remove that completely Link to comment Share on other sites More sharing options...
siddaramesh Posted December 31, 2014 Author Share Posted December 31, 2014 it might be escaped, try removing "htmlall" and write "html" instead, when it displays, or remove that completely where can i remove htmlall... Link to comment Share on other sites More sharing options...
NemoPS Posted December 31, 2014 Share Posted December 31, 2014 AH, it's html already <td>{$feature.name|escape:'html':'UTF-8'}</td> <td>{$feature.value|escape:'html':'UTF-8'}</td> to <td>{$feature.name}</td> <td>{$feature.value}</td> Link to comment Share on other sites More sharing options...
siddaramesh Posted December 31, 2014 Author Share Posted December 31, 2014 AH, it's html already <td>{$feature.name|escape:'html':'UTF-8'}</td> <td>{$feature.value|escape:'html':'UTF-8'}</td> to <td>{$feature.name}</td> <td>{$feature.value}</td> thanks for your help it works perfectly... Link to comment Share on other sites More sharing options...
siddaramesh Posted January 3, 2015 Author Share Posted January 3, 2015 (edited) It's impossible as we would need to know those features' ids. Try something like {foreach from=$features item=feature} {if $feature.id_feature|in_array([1,51,33])} // display, for example, the first group {/if} {/foreach} nemo1, i tried this code in product.tpl , it is not showing anything in front page even product images also not showing.. please give suggestion... Edited January 3, 2015 by siddaramesh (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted January 3, 2015 Share Posted January 3, 2015 Enable error reporting as per my signature. I might have done a small spelling mistake in the example (it's just an example) edit: I think it should be |in_array:[1,2,3] Link to comment Share on other sites More sharing options...
siddaramesh Posted January 3, 2015 Author Share Posted January 3, 2015 Enable error reporting as per my signature. I might have done a small spelling mistake in the example (it's just an example) edit: I think it should be |in_array:[1,2,3] Thank you now it's working fine... Link to comment Share on other sites More sharing options...
newbie87 Posted March 28, 2015 Share Posted March 28, 2015 I have one long list of features to separate into two product Features tabs. The easiest way to do this (in my mind) would be to duplicate the features output tab. That way, I can use one list to add whatever is needed under either tab. I would appreciate help with the coding for this. Thanks in advance! Link to comment Share on other sites More sharing options...
NemoPS Posted March 30, 2015 Share Posted March 30, 2015 Are the two tabs supposed to be adjacent? I mean, you just need two columns or two whole separate tabs? Link to comment Share on other sites More sharing options...
newbie87 Posted March 30, 2015 Share Posted March 30, 2015 Hello and thanks for your reply. I need two whole separate tabs each of which can access and output selected Features. The context/background for the change is to reduce the size of the description section on the product page. I have two bulleted sections on each description. One at the top gives structural details about each product (height, depth, color etc.). The other -at the end of the description - gives extra tips to help customers (dimensional weight, if oversized, or if international shipping is available, layaway plan etc.) I have all this info entered onto the Features list and would like to populate each tab page with the info relevant to each product. See existing page: http://www.ornamenttrees.com/wall-mounted-family-photo-tree-43CL.html . Link to comment Share on other sites More sharing options...
NemoPS Posted March 30, 2015 Share Posted March 30, 2015 Hm, I see. Well then you were on the right way, I think it's better to simply duplicate the table, and show some on the first, some others on the second Link to comment Share on other sites More sharing options...
newbie87 Posted March 30, 2015 Share Posted March 30, 2015 HI thanks for the reply. But it brings me back to the original question. How do I duplicate the features output page? I tried making a copy and renaming it but, the copy has to be connected to the back end and the features list in some way. I do not know how to do this. Link to comment Share on other sites More sharing options...
NemoPS Posted April 1, 2015 Share Posted April 1, 2015 hm? just duplicate the foreach loop {foreach from=$features item=feature}...{/foreach} Link to comment Share on other sites More sharing options...
delete-account-pleas Posted April 29, 2015 Share Posted April 29, 2015 Whats the code you have so far ? Link to comment Share on other sites More sharing options...
Recommended Posts