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=":)"> )