2

G'day, I've never worked with Magento before, so forgive my bull-in-a-china shop blundering. I've been asked to replace the SKU with the items unit price in the order confirmation email, and after some googling, have found this howto :

Add Unit Price To Order Email Template

Which is pretty close, it leaves the Sku in and adds an extra column, that's just HTML tables and I think I get that.

BUT

Is this the right way to do it? Reading through other howtos on how to muck about with order PDF's suggests that you should not go editing the base templates and code, but should instead use a local override in the app/code/local tree

Is that the case for this modification, is editing these files :

app/design/frontend/base/default/template/email/order/items.phtml

app/design/frontend/base/default/template/email/order/items/order/default.phtml

app/design/frontend/base/default/layout/sales.xml

The right way? Or am I creating a maintenance disaster?

Magento 1.9

2
  • Yeah, you're creating a maintenance disaster. You need to add the changes to a local pool module that overrides the core templates
    – scrowler
    Commented Jul 11, 2016 at 5:25
  • Understood - so the next question, "how?". Pointers to the right bit of the doco much appreciated. Commented Jul 11, 2016 at 5:54

1 Answer 1

0

you need to copy this files from base template to your template and edit it as you want

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.