Post by hassi_2k7 » Tue Aug 25, 2015 2:58 pm

Hi there,

I try to write an small extension for the product admin panel.

I just want to add a new tab with some content in it. Here is my code, which does'nt work yet.

Code: Select all

<file path="admin/view/template/catalog/product_form.tpl">
        <operation>
            <search trim="true" index="0"><![CDATA[
			<li><a href="#tab-design" data-toggle="tab"><?php echo $tab_design; ?></a></li>
			]]></search>
            <add position="after" trim="false" offset="0"><![CDATA[
				<li><a href="#tab-newcontent" data-toggle="tab">New Content</a></li>
			]]></add>
        </operation>
    </file>

Code: Select all

<file path="admin/view/template/catalog/product_form.tpl">
        <operation>
            <search trim="true" index="0"><![CDATA[
			<div class="tab-pane" id="tab-design">
			]]></search>
            <add position="before" trim="false" offset="0"><![CDATA[
				<div class="tab-pane" id="tab-newcontent">
	<div class="tab-content">
		...some content...
	</div>
</div>
			]]></add>
        </operation>
    </file>
I want to place the tab after the Design tab, but after the installation there is no new tab...

Anyone has an idea what I'm doing wrong?

Newbie

Posts

Joined
Fri Jan 30, 2015 11:36 pm
Who is online

Users browsing this forum: No registered users and 4 guests