• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 25.04.20, 13:06
  • Opened by: Marco Montanari
  • Closed by: Fred
  • Closed on: 28.04.20, 15:04
  • Reason: Closed
  • Comment: Glad to help!

Ticket #17516 - (REQUEST) Add a class = "function name" in product page datasheet

in every product the caracteristics are taken by the functions inserted in each product: https://www.enotecapirovano.com/it/whisky/296-whisky-taketsuru-pure-malt-17-anni-70-cl-nikka.html

the datasheet : https://gyazo.com/119d9e36c964358f76baf884f2983215

if I want to hide a single parameters is impossible because there is no class nor and id that allow me by CSS to hide a single row/parameter

https://gyazo.com/51c59aa6b2362e1cdd112ade6deca73b

There is a way to introduce a class or a way that allow me to hide for example the Format row?

Thanks

Comments

Marco Montanari 25 Apr 2020, 13:49

i found a temporary solution but i think you need to implement something similar too:

    {block name='product_features'}
    {if $product.grouped_features}
      <section class="product-features">
        <h3 class="h6">{l s='Data sheet' d='Shop.Theme.Catalog'}</h3>
        <dl class="data-sheet">
          {foreach from=$product.grouped_features item=feature}
            <dt class="name feat{$feature.id_feature}">{$feature.name}</dt>
            <dd class="value feat{$feature.id_feature}">{$feature.value|escape:'htmlall'|nl2br nofilter}</dd>
          {/foreach}
        </dl>
      </section>
    {/if}
    {/block}
Fred 28 Apr 2020, 14:58

I just added that code to the theme

Marco Montanari 28 Apr 2020, 15:03

Great Fred, will be more flexible and easy to interact with CSS

Thanks