Thankyou @Alexander-MAS !!
Unfortunately another issue has popped up…
I’ve called the section : brand-features.liquid
{%- comment -%}
Trademark integrates with SuperFields app in order to specify unique features per product, instead of relying on global features defined in the theme settings.
The logic is that if there are at least one feature set through the unique features, we use those, otherwise we fallback to the global features.
{%- endcomment -%}
{%- assign has_unique_features = false -%}
{%- for i in (1..6) -%}
{%- assign metafield_option = ‘feature_’ | append: i | append: ‘_enabled’ -%}
{%- if product.metafields.sf_product_features[metafield_option] == 1 -%}
{%- assign has_unique_features = true -%}
{%- break -%}
{%- endif -%}
{%- endfor -%}
{%- if has_unique_features or section.blocks.size > 0 -%}
{%- capture brand_icons -%}
500px accessible-icon accusoft adn adversal affiliatetheme algolia amazon amilia android angellist angrycreative angular app-store app-store-ios apper apple
apple-pay asymmetrik audible autoprefixer avianex aviato aws bandcamp behance behance-square bimobject bitbucket bitcoin bity black-tie blackberry blogger
blogger-b bluetooth bluetooth-b btc buromobelexperte buysellads cc-amex cc-apple-pay cc-diners-club cc-discover cc-jcb cc-mastercard cc-paypal cc-stripe cc-visa
centercode chrome cloudscale cloudsmith cloudversify codepen codiepie connectdevelop contao cpanel creative-commons css3 css3-alt cuttlefish d-and-d dashcube delicious
deploydog deskpro deviantart digg digital-ocean discord discourse dochub docker draft2digital dribbble dribbble-square dropbox drupal dyalog earlybirds edge ember
empire envira erlang etsy expeditedssl facebook facebook-f facebook-messenger facebook-square firefox first-order firstdraft flickr fly font-awesome
font-awesome-alt font-awesome-flag fonticons fonticons-fi fort-awesome fort-awesome-alt forumbee foursquare free-code-camp freebsd get-pocket gg gg-circle git
git-square github github-alt github-square gitkraken gitlab gitter glide glide-g gofore goodreads goodreads-g google google-drive google-play google-plus google-plus-g
google-plus-square google-wallet gratipay grav gripfire grunt gulp hacker-news hacker-news-square hire-a-helper hooli hotjar houzz html5 hubspot bleep instagram
internet-explorer ioxhost itunes itunes-note jenkins joget joomla js js-square jsfiddle keycdn kickstarter kickstarter-k laravel lastfm lastfm-square leanpub less
line linkedin linkedin-in linode linux lyft magento maxcdn medapps medium medium-m medrt meetup microsoft mix mixcloud mizuni modx monero napster nintendo-switch
node node-js npm ns8 nutritionix odnoklassniki odnoklassniki-square opencart openid opera optin-monster osi page4 pagelines palfed patreon paypal periscope phabricator
phoenix-framework pied-piper pied-piper-alt pied-piper-pp pinterest pinterest-p pinterest-square playstation product-hunt pushed python qq quora ravelry react rebel
red-river reddit reddit-alien reddit-square rendact renren replyd resolving rocketchat rockrms safari sass schlix scribd searchengin sellcast sellsy servicestack
shirtsinbulk simplybuilt sistrix skyatlas skype slack slack-hash slideshare snapchat snapchat-ghost snapchat-square soundcloud speakap spotify stack-exchange
stack-overflow staylinked steam steam-square steam-symbol sticker-mule strava stripe stripe-s studiovinari stumbleupon stumbleupon-circle superpowers supple
telegram telegram-plane tencent-weibo themeisle trello tripadvisor tumblr tumblr-square twitch twitter twitter-square typo3 uber uikit uniregistry untappd usb
ussunnah vaadin viacoin viadeo viadeo-square viber vimeo vimeo-square vimeo-v vine vk vnv vuejs weibo weixin whatsapp whatsapp-square whmcs wikipedia-w windows
wordpress wordpress-simple wpbeginner wpexplorer wpforms xbox xing xing-square y-combinator yahoo yandex yandex-international yelp yoast youtube
{%- endcapture -%}
{%- assign brand_icons = brand_icons | split: ’ ’ -%}
{%- if has_unique_features -%}
{%- for i in (1..6) -%}
{%- assign metafield_show_option = ‘feature_’ | append: i | append: ‘enabled’ -%}
{%- assign metafield_icon_option = 'feature’ | append: i | append: ‘icon’ -%}
{%- assign metafield_title_option = 'feature’ | append: i | append: ‘title’ -%}
{%- assign metafield_content_option = 'feature’ | append: i | append: ‘_content’ -%}
{%- if product.metafields.sf_product_features[metafield_show_option] == 1 -%}
{%- if product.metafields.sf_product_features[metafield_title_option] != blank -%}
{{ product.metafields.sf_product_features[metafield_title_option] }}
{%- endif -%}{%- if product.metafields.sf_product_features[metafield_content_option] != blank -%}
{{ product.metafields.sf_product_features[metafield_content_option] | strip_html }}
{%- endif -%}{%- if block.settings.title != blank -%}
{{ block.settings.title }}
{%- endif -%}{%- if block.settings.content != blank -%}
{{ block.settings.content | strip_html }}
{%- endif -%}{% schema %}
{
“name”: “Brand features”,
“max_blocks”: 6,
“settings”: [
{
“type”: “paragraph”,
“content”: “You can add per-product features using our app SuperFields. Learn more here.”
}
],
“blocks”: [
{
“type”: “feature”,
“name”: “Feature”,
“settings”: [
{
“type”: “text”,
“id”: “icon_name”,
“label”: “Icon name”,
“info”: “Click here to view the list of available icons. Example: bluetooth”,
“default”: “cog”
},
{
“type”: “text”,
“id”: “title”,
“label”: “Title”,
“default”: “Default title”
},
{
“type”: “textarea”,
“id”: “content”,
“label”: “Content”,
“default”: “Enter a short text here about the feature of your product.”
}
]
}
],
“presets”: [{}]
}
{% endschema %}




