Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Feature In The Block Rate Topic   - - - - -

 
  • HareRama
  • Advanced Member
  • Trial users
  • Join Date: 10-Mar 19
  • 70 posts

Posted 30 August 2019 - 06:39 AM #1

I would like to add selected feature (not whole list) in the block, however code related to feature doesn't work in the block, for example:

{$features = $product|fn_get_product_features_list}
    {foreach from=$features item="feature"}
        {if $feature.description == "my-feature"} 
          <div class="ty-product-switcher"><span class="switcher-total">  {$feature.variant} -should be visible as a sticker </span>   </div>
        {/if}
    {/foreach}

Block is loaded in Tabs.



 
  • HareRama
  • Advanced Member
  • Trial users
  • Join Date: 10-Mar 19
  • 70 posts

Posted 30 August 2019 - 07:02 AM #2

Ok. It's working, cache again didn't flush. Btw. Is it any shortcut to get specific feature except using foreach function?