Template Hook Question

Hello,



I’m trying to create an additional button in the cog menu on the products.manage page (/admin.php?dispatch=products.manage)



I can see in the template (design/backend/templates/views/products/manage.tpl) there is a hook:


<br />
        {hook name="products:action_buttons"}<br />
        <li>{btn type="list" text=__("global_update") href="products.global_update"}</li><br />
        <li>{btn type="list" text=__("bulk_product_addition") href="products.m_add"}</li><br />
        <li>{btn type="list" text=__("product_subscriptions") href="products.p_subscr"}</li><br />
{if $products}<br />
            <li class="divider"></li><br />
            <li>{btn type="dialog" class="cm-process-items" text=__("edit_selected") target_id="content_select_fields_to_edit" form="manage_products_form"}</li><br />
            <li>{btn type="list" text=__("clone_selected") dispatch="dispatch[products.m_clone]" form="manage_products_form"}</li><br />
            <li>{btn type="list" text=__("export_selected") dispatch="dispatch[products.export_range]" form="manage_products_form"}</li><br />
            <li>{btn type="delete_selected" dispatch="dispatch[products.m_delete]" form="manage_products_form"}</li><br />
        {/if}<br />
        {/hook}<br />

```<br />
<br />
I am trying to use this hook from an addon (new addon to print product barcodes) but I cannot seem to have any luck <img src="upload://rA9Qa8gnUPZzRZRdI8kt3dpjkrs.png" class="bbc_emoticon" alt=":)"><br />
<br />
I have tried various file path/name permutations including:<br />
<br />
design/backend/templates/addons/my_barcode_addon/hooks/products/action_buttons.tpl<br />
design/backend/templates/addons/my_barcode_addon/hooks/products/action_buttons.override.tpl<br />
design/backend/templates/addons/my_barcode_addon/hooks/products/action_buttons.post.tpl<br />
design/backend/templates/addons/my_barcode_addon/hooks/products/manage/action_buttons.post.tpl<br />
design/backend/templates/addons/my_barcode_addon/hooks/products/manage.post.tpl<br />
<br />
And nothing seems to work. Yes I have cleared my cache... alot! <img src="upload://rA9Qa8gnUPZzRZRdI8kt3dpjkrs.png" class="bbc_emoticon" alt=":)"><br />
<br />
Any clues? (I see it used in ebay synch addon, but I don't have this to inspect <img src="upload://rA9Qa8gnUPZzRZRdI8kt3dpjkrs.png" class="bbc_emoticon" alt=":)"> )

Hello danwalton,



This variant is right:

[color=#282828][font=arial, verdana, tahoma, sans-serif]design/backend/templates/addons/my_barcode_addon/hooks/products/action_buttons.post.tpl[/font][/color]



[color=#282828][font=arial, verdana, tahoma, sans-serif]Be sure that your addon is enabled and check the permissions (it should be 777). Also, clear the cache adding the following parameters to URL :&cc&ctpl (e.g. admin.php?cc&ctpl)[/font][/color]



[color=#282828][font=arial, verdana, tahoma, sans-serif]Hope it will be helpful.[/font][/color]

Hello eComLabs - thanks for your speedy response!



I have other backend template hooks working - so I know it is not a problem with permissions or other problem with the addon. I tried the correct variant first and I have cleared cache. But still nothing

Oh… wait. I was only using &ctpl… I must also use &cc :)



This works now… thanks!

You are welcome :)