Post by SSNSep » Thu Dec 13, 2012 9:12 pm

I want to remove the following tabs: attribute, option, discount, special, reward points, design from the Admin section of Catalog > Products > Add New.

I'm using the following in the VQMod .xml file but the tab attribute continues to display. Any ideas what I have done wrong, or how to remove these tabs?

Code: Select all

<file name="admin/view/template/catalog/product_form.tpl">
    <operation>
        <search position="replace"><![CDATA[
            <a href="#tab-attribute"><?php echo $tab_attribute; ?></a>
        ]]></search>
        <add><![CDATA[
            <a href="#tab-attribute" style='display:none'><?php echo $tab_attribute; ?></a>
        ]]></add>
    </operation>
    </file>
I'm using Opencart 1.5.4.

Newbie

Posts

Joined
Thu Aug 23, 2012 8:51 pm

Post by OSWorX » Thu Dec 13, 2012 10:15 pm

You have to 'disable' also the divs where this pages/tabs are in.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by SSNSep » Thu Dec 13, 2012 10:39 pm

and how do you go about doing that?

Do you add: <div id="tab-attribute"> to the replace line?

Newbie

Posts

Joined
Thu Aug 23, 2012 8:51 pm

Post by OSWorX » Thu Dec 13, 2012 10:48 pm

You could do it this way:

Code: Select all

<file name="admin/view/template/catalog/product_form.tpl">
    <operation>
        <search position="replace">
            <![CDATA[
            <a href="#tab-attribute"><?php echo $tab_attribute; ?></a>
           ]]>
        </search>
        <add trim="true">
          <![CDATA[
            <!--<a href="#tab-attribute" style='display:none'><?php echo $tab_attribute; ?></a>-->
          ]]>
     </add>
    </operation>
    <operation>
        <search position="replace">
          <![CDATA[
            <div id="tab-attribute">
         ]]>
        </search>
        <add trim="true">
          <![CDATA[
            <div id="tab-attribute" style="display: none;">
         ]]>
     </add>
    </operation>
    </file>

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by SSNSep » Thu Dec 13, 2012 10:59 pm

Boom! You sir, are brilliant, thanks for the quick replies and much needed help. :)

Quick one. How would you go about renaming a tab?

Newbie

Posts

Joined
Thu Aug 23, 2012 8:51 pm

Post by OSWorX » Fri Dec 14, 2012 1:00 am

SSNSep wrote:Boom! You sir, are brilliant, thanks for the quick replies and much needed help. :)

Quick one. How would you go about renaming a tab?
Basically the same way, but changing now language files with new values.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria
Who is online

Users browsing this forum: No registered users and 5 guests