Jump to content

Adding to a template that has no hooks


Recommended Posts

Hey everyone!

 

I'm working on a module to add more info to product features and i need to add code to the file product-details.tpl, more specifique:

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

 

This block above.

 

I want to add more info inside

 <dd class="value">{$more_info_here}{$feature.value|escape:'htmlall'|nl2br nofilter}</dd>

 

How can i do this? This block doesnt have any hooks :(

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...