First find the "unique" part of the block... something that isn't reproduced anywhere else in the file. For that section you can use:
Code: Select all
<td><?php echo $entry_shipping; ?></td>
Note that "removing" these tags will in turn cause havoc on the php side when those fields are expected by the database calls but not there. So instead you should "hide" these tags by simply adding
style="display:none;" to the parent <tr> tag.
This is slightly trickier to accomplish with just php altering because html is very ambiguous with all the plain <tr> tags out there. So we'll use javascript instead to find the parent by traversing the DOM with jquery. First we need to change the entry <td> to something more unique that jquery can trigger on. This will actually be even better because we can use a class that will match ALL areas you want to hide with a single javascript call.
Code: Select all
<file name="admin/view/template/catalog/product_form.tpl">
<operation>
<search position="replace"><![CDATA[
<td><?php echo $entry_shipping; ?></td>
]]></search>
<add trim="false"><![CDATA[
<td class="hide_my_daddy"><?php echo $entry_shipping; ?></td>
]]><add>
</operation>
<operation>
<search position="replace"><![CDATA[
<?php echo $footer; ?>
]]></search>
<add trim="false"><![CDATA[
<script type="text/javascript">$('.hide_my_daddy').parent().hide();</script>
<?php echo $footer; ?>
]]><add>
</operation>
</file>
Add a new operation block to add the class="hide_my_daddy" for each <tr> block you want to hide.
What might be beneficial is if we added negative number support for offset to the vqmod engine, so that you could do
Code: Select all
<search position="replace" offset="-1">
or some other method like that
But that doesn't exist at the moment.