aftab1003 Posted January 11, 2010 Share Posted January 11, 2010 Helloo all memebres and Mods.i am very new to this site and script and its my first post. thanks for this nice product.i am here to ask something about Product features under DATA SHEET tab.by defaults, its looks like this..* 2G network GSM 850 / 900 / 1800 / 1900* 3G network HSDPA 850 / 1900 - American version* Dimensions 99 x 53 x 21 mm, 96 cc* Display Feature Accelerometer sensor for auto-rotate* Display Size 240 x 320 pixels, 2.8 inches* Display type TFT, 16M colors* Weight 128 gand i want to see it like this* 2G network : GSM 850 / 900 / 1800 / 1900* 3G network : HSDPA 850 / 1900 - American version* Dimensions : 99 x 53 x 21 mm, 96 cc* Display Feature : Accelerometer sensor for auto-rotateor in gridi think its clear anough to explain what i want to do with data sheet style.thanks in advance for the kind reply and suggestions. Link to comment Share on other sites More sharing options...
JAKCRABBIT Posted January 11, 2010 Share Posted January 11, 2010 themes/yourtheme/css/global.css and modife what you need.... Link to comment Share on other sites More sharing options...
rocky Posted January 11, 2010 Share Posted January 11, 2010 You'll also need to modify product.tpl in your theme's directory to add the colon. Change line 347 from: {$feature.name|escape:'htmlall':'UTF-8'} {$feature.value|escape:'htmlall':'UTF-8'} to: {$feature.name|escape:'htmlall':'UTF-8'} : {$feature.value|escape:'htmlall':'UTF-8'} 1 Link to comment Share on other sites More sharing options...
aftab1003 Posted January 11, 2010 Author Share Posted January 11, 2010 You'll also need to modify product.tpl in your theme's directory to add the colon. Change line 347 from: {$feature.name|escape:'htmlall':'UTF-8'} {$feature.value|escape:'htmlall':'UTF-8'} to: {$feature.name|escape:'htmlall':'UTF-8'} : {$feature.value|escape:'htmlall':'UTF-8'} thank you for quick reply... and it works greatis it possible to add a fixed space before ( : ) sign? Link to comment Share on other sites More sharing options...
rocky Posted January 11, 2010 Share Posted January 11, 2010 You can use to add spaces in product.tpl, but you can't make all the items line up that way. To do that, you'll need to add something like the following to css/global.css in your theme's directory: ul#idTab2 li span { float: left; width: 100px; } where 100px is the width of the label column. Link to comment Share on other sites More sharing options...
aftab1003 Posted January 11, 2010 Author Share Posted January 11, 2010 You can use to add spaces in product.tpl, but you can't make all the items line up that way. To do that, you'll need to add something like the following to css/global.css in your theme's directory: ul#idTab2 li span { float: left; width: 100px; } where 100px is the width of the label column. Thank you so much. it 100% same what i am looking for....i use 150px for column width.it can look like CHART? with rows and column like excel sheet. if yes then how.thanks for your kind and quick replies.. Link to comment Share on other sites More sharing options...
rocky Posted January 11, 2010 Share Posted January 11, 2010 I'm not sure what you mean. Can you give me a picture of what you want? Link to comment Share on other sites More sharing options...
aftab1003 Posted January 11, 2010 Author Share Posted January 11, 2010 here what i am looking for, for my site. the attached picture is from gsmarena.com Link to comment Share on other sites More sharing options...
rocky Posted January 12, 2010 Share Posted January 12, 2010 Sorry, but it is not easy to group features like in that screenshot. You would need to use the trick I used on my Product Attributes module: enter the group name then a | then the feature name, then modify product.php to split the name into separate variables. You could then modify the product.tpl to display the features in a table like in the screenshot. 1 Link to comment Share on other sites More sharing options...
aftab1003 Posted January 12, 2010 Author Share Posted January 12, 2010 thank you for your kind replies.can you pleas refer my to your site where you have alter the attributes as you suggested?may be that will be helpful for me.. Link to comment Share on other sites More sharing options...
rocky Posted January 13, 2010 Share Posted January 13, 2010 See my Product Attributes module here. Link to comment Share on other sites More sharing options...
aftab1003 Posted January 13, 2010 Author Share Posted January 13, 2010 this is the attribute display system. but we are here for FEATURES. rite? Link to comment Share on other sites More sharing options...
micozi Posted January 21, 2010 Share Posted January 21, 2010 it can look like CHART? with rows and column like excel sheet. if yes then how. You should add this to product.tpl> <!-- product's features --> </pre> <ul> </ul> <table>{l s='Feature'}{l s='Description'}{$feature.name|escape:'htmlall':'UTF-8'}{$feature.value|escape:'htmlall':'UTF-8'}</table> <br Link to comment Share on other sites More sharing options...
aftab1003 Posted January 23, 2010 Author Share Posted January 23, 2010 it can look like CHART? with rows and column like excel sheet. if yes then how. You should add this to product.tpl> <!-- product's features --> </pre> <ul> </ul> <table>{l s='Feature'}{l s='Description'}{$feature.name|escape:'htmlall':'UTF-8'}{$feature.value|escape:'htmlall':'UTF-8'}</table> <br this is not working...when i add this to product.tpl the product page shows only lest column. any guide? Link to comment Share on other sites More sharing options...
micozi Posted January 23, 2010 Share Posted January 23, 2010 In standard you have > {if $features} <!-- product's features --> </pre> <ul> {foreach from=$features item=feature} {$feature.name|escape:'htmlall':'UTF-8'} {$feature.value|escape:'htmlall':'UTF-8'} {/foreach} </ul> <br> {/if change it to: >{if $features} <!-- product's features --> </pre> <ul> </ul> <table>{l s='Feature'}{l s='Description'}{$feature.name|escape:'htmlall':'UTF-8'}{$feature.value|escape:'htmlall':'UTF-8}</table> <br><br Link to comment Share on other sites More sharing options...
aftab1003 Posted January 24, 2010 Author Share Posted January 24, 2010 still the same issue.only left side column display, nothing else. Link to comment Share on other sites More sharing options...
micozi Posted January 24, 2010 Share Posted January 24, 2010 Upload screen, please Link to comment Share on other sites More sharing options...
micozi Posted February 4, 2010 Share Posted February 4, 2010 Sorry my bad, I missed one sign after utf-8 >{if $features} </pre> <ul> </ul> <table>{l s='Feature'}{l s='Description'}{$feature.name|escape:'htmlall':'UTF-8'}{$feature.value|escape:'htmlall':'UTF-8'}</table> <br><br Link to comment Share on other sites More sharing options...
xetu Posted January 28, 2011 Share Posted January 28, 2011 thanks for this mod, works like charm Link to comment Share on other sites More sharing options...
renamed_account_45578 Posted January 28, 2011 Share Posted January 28, 2011 Does this method work for Attributes as well? I have space-separated words in each attribute I would like to split up and display in a table (using spaces as the delimiter)Anyone? Link to comment Share on other sites More sharing options...
nortom Posted May 15, 2011 Share Posted May 15, 2011 i have try this on 1.4.1, but the product page is gone. Whats the problem? 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