I've found the table header file located at app/design/frontend/base/default/template/sales/order/items.phtml but the table content is generated elsewhere but I don't know where that is
1 Answer
Take a look at /app/design/frontend/base/default/template/sales/order/items/renderer/default.phtml
<sales_order_view translate="label">
.....
<block type="sales/order_view" name="sales.order.view">
<block type="sales/order_items" name="order_items" template="sales/order/items.phtml">
<action method="addItemRender"><type>default</type><block>sales/order_item_renderer_default</block><template>sales/order/items/renderer/default.phtml</template></action>
<action method="addItemRender"><type>grouped</type><block>sales/order_item_renderer_grouped</block><template>sales/order/items/renderer/default.phtml</template></action>
<block type="sales/order_totals" name="order_totals" template="sales/order/totals.phtml">
<action method="setLabelProperties"><value>colspan="4" class="a-right"</value></action>
<action method="setValueProperties"><value>class="last a-right"</value></action>
<block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml" />
</block>
</block>
</block>
-
It's not the admin area in question. It's from My Account -> My Orders -> View Order frontend. i.imgur.com/TVKeyQI.png I would use the developer tool that you've used but since our frontend guy did a CSS job, it no longer works for me :(– SteCommented Oct 23, 2014 at 15:37
-
check to see if that file was overwrite by your local theme frontend/default/{theme}/template/sales/order/items.phtml Commented Oct 23, 2014 at 15:44
-
That's the file but the table body is generated with: <?php echo $this->getItemHtml($_item) ?> There is no table tags surrounding that function so I guess that functions generates the <tr><td>$data etc How would I find what file that is in?– SteCommented Oct 23, 2014 at 15:46
-
See /app/design/frontend/base/default/template/sales/order/items/renderer/default.phtml Commented Oct 23, 2014 at 15:50
app/design/adminhtml/default/default/template/sales/order/view/tab/info.phtml