Jump to content

Hide weight of the product in fron-office


Recommended Posts

Hello,

 

How can I hide the row "Weight" in the product page where are product spesifications? 

I will write the weights in the back-office when I enter the product but what to be hiden for the customers?

 

Also all the names of the specs in the left side are BOLD .. can I make some of them NOT bold?

Edited by slsv (see edit history)
Link to comment
Share on other sites

Version is 1.6. and the themplate is default-bootstrap. The site is in maintain mode but here is the screenshot what I talking about:

 

this is when some product is open. On the left side all are bolds. I want to change some of them to NOT bold. 

I want to hide/remove first row 'Weight'.

specs.jpg

Edited by slsv (see edit history)
Link to comment
Share on other sites

I also have this problem, but I have no idea how to hide it.

 

But how did you change names for "4G" "3G" etc? Besides weight I have there few other values which I don't need, or I'd like to change the description for something else. For example I tried to change DATA SHEET and I made in product.tlp

 

<!-- Data sheet / Capabilities -->
            <section class="page-product-box">
                <h3 class="page-product-heading">{l s='Capabilities'}</h3>
                <table class="table-data-sheet">
                    {foreach from=$features item=feature}
                    <tr class="{cycle values="odd,even"}">
                        {if isset($feature.value)}
                        <td>{$feature.name|escape:'html':'UTF-8'}</td>
                        <td>{$feature.value|escape:'html':'UTF-8'}</td>
                        {/if}
                    </tr>
                    {/foreach}
                </table>
            </section>
            <!--end Data sheet -->
        {/if}

 

But nothing changed :(

Link to comment
Share on other sites

TO change names you can edit the feature name itself from catalog, product features. As for hiding one, you can try, in that foreach loop, with

 

{if $feature.id_feature == theoneyoudonwwantID}{continue}{/if}

Sorry but can you tell me in which file is this loop (in products) and from where to take featureID?

Link to comment
Share on other sites

So this is from themes/default-bootstrap/product.tpl

{if isset($features) && $features}
<!-- Data sheet -->
<section class="page-product-box">
<h3 class="page-product-heading">{l s='Data sheet'}</h3>
<table class="table-data-sheet">
{foreach from=$features item=feature}
<tr class="{cycle values="odd,even"}">
{if isset($feature.value)}
<td>{$feature.name|escape:'html':'UTF-8'}</td>
<td>{$feature.value|escape:'html':'UTF-8'}</td>
{/if}
</tr>
{/foreach}
</table>
</section>
<!--end Data sheet -->
{/if}
 

But still can't understand where exactly to put what you suggest me. 

 

Also in back-office I can change only names. What I want is to change the way they are shown on the front-office. They are all bold now. I want to make some of them normal ( not bold ) i.e. less important.

Edited by slsv (see edit history)
Link to comment
Share on other sites

Ah, then it's about css. Edit product.css (theme folder/css), line 643

 

.table-data-sheet tr td:first-child {
  1. border-right: 1px solid #d6d4d4;
  2. width: 30%;
  3. font-weight: 700;
  4. color: #333333;

 

 

Remove the font-weight

But this mean that all features will be without bold?

 

My most important goal is to hide this feature from front office but I really don't know how to write what you suggest me

{if $feature.id_feature == theoneyoudonwwantID}{continue}{/if}

in here

{if isset($features) && $features}
<!-- Data sheet -->
<section class="page-product-box">
<h3 class="page-product-heading">{l s='Data sheet'}</h3>
<table class="table-data-sheet">
{foreach from=$features item=feature}
<tr class="{cycle values="odd,even"}">
{if isset($feature.value)}
<td>{$feature.name|escape:'html':'UTF-8'}</td>
<td>{$feature.value|escape:'html':'UTF-8'}</td>
{/if}
</tr>
{/foreach}
</table>
</section>
<!--end Data sheet -->
{/if}
Link to comment
Share on other sites

{if isset($features) && $features}
<!-- Data sheet -->
<section class="page-product-box">
<h3 class="page-product-heading">{l s='Data sheet'}</h3>
<table class="table-data-sheet">
{foreach from=$features item=feature}
<tr class="{cycle values="odd,even"}">
{if isset($feature.value) && $feature.id_feature != 13}
<td>{$feature.name|escape:'html':'UTF-8'}</td>
<td>{$feature.value|escape:'html':'UTF-8'}</td>
{/if}
</tr>
{/foreach}
</table>
</section>
<!--end Data sheet -->
{/if}

 

 

Change the 13 to the id of the feature you don't want to display, and add other conditions of the same type if you don't want to display many

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...