Custom Add On for products has broken save button

I had a custom add on called 'price_group' developed about 2 years ago that, after an update has broken the save and save and close buttons on the product edit screen. Unfortunately, the developer has gone MIA.



I think this might be easy to solve, though, I'm just not there yet so I was seeing if anyone had any tips for me. I noticed that when I added '{capture name="mailbox"}' to the update.tpl file in the /skins/basic/addons/price_group/views/price_group/ directory, both the add-on and the save buttons began working, but the tabs such as images, secondary categories, etc. was pushed to the very bottom of the product edit page.



My code for the file in /skins/basic/addons/price_group/views/price_group/update.tpl is as follows:


```php

{capture name=“mainbox”}

{assign var=“id” value=$price_group_id|default:0}






{if $smarty.request.product_id}
{if !$price_group_data}

{/if}

{/if}






{$lang.name}:



{$lang.column1}:



{$lang.column2}:



{$lang.column3}:



{$lang.column4}:



{$lang.column5}:



{$lang.column6}:




















{foreach from=$price_group_data.values item="vr" name="fe_v"}
{assign var="num" value=$smarty.foreach.fe_v.iteration}




















{/foreach}
{math equation="x + 1" assign="num" x=$num|default:0}{assign var="vr" value=""}
















{$lang.position_short} {$lang.name} {$lang.column1} {$lang.column2} {$lang.column3} {$lang.column4} {$lang.column5} {$lang.column6}  









{include file="buttons/multiple_buttons.tpl" item_id="option_variants_`$id`_`$num`" tag_level="3" only_delete="Y"}









{include file="buttons/multiple_buttons.tpl" item_id="add_variant_`$id`" tag_level="2"}






{if $mode == "add"}
{assign var="_but_text" value=$lang.create}
{include file="buttons/save_cancel.tpl" but_text=$_but_text but_name="dispatch[price_group.add]" cancel_action="close" extra=""}
{else}
{if "COMPANY_ID"|defined && $option_data.option_id && $option_data.company_id != $smarty.const.COMPANY_ID}
{assign var="hide_first_button" value=true}
{/if}
{assign var="_but_text" value=""}
{include file="buttons/save_cancel.tpl" but_text=$_but_text but_name="dispatch[price_group.update]" cancel_action="close" extra="" hide_first_button=$hide_first_button}
{/if}



```


And my code for /skins/basic/addons/price_group/hooks/products/tab_content.post.tpl is:

```php
{* http://cs-cart-development.com *}
{capture name="mainbox_price_group"}

{script src="js/tabs.js"}
{script src="js/picker.js"}

{assign var="rev_delete_id" value="price_groups_list"}
{assign var="query_product_id" value="&product_id=`$product_id`"}

{foreach from=$price_group_list_data item="po"}

{assign var="po_name" value=$po.name}
{assign var="link_text" value=$lang.edit}
{assign var="additional_class" value="cm-no-hide-input"}
{assign var="link_class" value="text-button-edit"}

{capture name="edit_picker"}
{include file="addons/price_group/views/price_group/update.tpl" price_group_id=$po.price_group_id price_group_data=$po.data}
{/capture}
{include file="common_templates/object_group.tpl" id=$po.price_group_id text=$po_name status=$po.status href="" object_id_name="price_group_id" table="price_group" href_delete="price_group.delete?price_group_id=`$po.price_group_id``$query_product_id`" rev_delete="price_groups_list" header_text="Editing price group: `$po_name`" content=$smarty.capture.edit_picker}
{foreachelse}

{$lang.no_items}


{/foreach}


{capture name="tools"}
{capture name="add_new_picker"}
{include file="addons/price_group/views/price_group/update.tpl" mode="add" price_group_id="0"}
{/capture}
{include file="common_templates/popupbox.tpl" id="add_new_price_group" text=$lang.price_group link_text=$lang.add_price_group act="general" content=$smarty.capture.add_new_picker}
{/capture}
{$smarty.capture.tools}

{/capture}

{$smarty.capture.mainbox_price_group}

```


I feel like I'm close but I'm missing something simple. Anyone have any pointers/ideas?

Also, if this is in the wrong forum category, mods please move to the appropriate one. I wasn't sure.