Jump to content

Product features in data sheet


Recommended Posts

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 g

and 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-rotate

or in grid

i 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

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'}

  • Like 1
Link to comment
Share on other sites

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 great


is it possible to add a fixed space before ( : ) sign?
Link to comment
Share on other sites

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

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

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.

  • Like 1
Link to comment
Share on other sites

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

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

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

  • 2 weeks later...
  • 11 months later...
  • 3 months later...

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