slsv Posted October 20, 2014 Share Posted October 20, 2014 (edited) 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 October 20, 2014 by slsv (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted October 20, 2014 Share Posted October 20, 2014 Are you using a custom template? Prestashop version? Would be great to have access to the site's front office anyway Link to comment Share on other sites More sharing options...
slsv Posted October 20, 2014 Author Share Posted October 20, 2014 (edited) 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'. Edited October 20, 2014 by slsv (see edit history) Link to comment Share on other sites More sharing options...
Crowell Posted October 22, 2014 Share Posted October 22, 2014 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 More sharing options...
NemoPS Posted October 24, 2014 Share Posted October 24, 2014 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} 1 Link to comment Share on other sites More sharing options...
slsv Posted October 25, 2014 Author Share Posted October 25, 2014 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 More sharing options...
NemoPS Posted October 27, 2014 Share Posted October 27, 2014 Ah, sorry, the loop is in product.tpl, and looks like {foreach from=$features ... You can see the feature ID in the far left column of the features list in the back office (catalog, features) Link to comment Share on other sites More sharing options...
slsv Posted October 27, 2014 Author Share Posted October 27, 2014 (edited) 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 October 27, 2014 by slsv (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted October 29, 2014 Share Posted October 29, 2014 Ah, then it's about css. Edit product.css (theme folder/css), line 643 .table-data-sheet tr td:first-child { border-right: 1px solid #d6d4d4; width: 30%; font-weight: 700; color: #333333; Remove the font-weight Link to comment Share on other sites More sharing options...
slsv Posted October 29, 2014 Author Share Posted October 29, 2014 Ah, then it's about css. Edit product.css (theme folder/css), line 643 .table-data-sheet tr td:first-child { border-right: 1px solid #d6d4d4; width: 30%; font-weight: 700; 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 More sharing options...
NemoPS Posted October 31, 2014 Share Posted October 31, 2014 {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 1 Link to comment Share on other sites More sharing options...
slsv Posted October 31, 2014 Author Share Posted October 31, 2014 It's working perfectly. I'm still able to add this in the back-office and it is not visible in front-office! Thank's Link to comment Share on other sites More sharing options...
Recommended Posts