1

I want to edit sidebar in account page and remove recently product viewed and recently product compare. I do this with editing the base files: app\design\frontend\base\default\layout\customer.xml, I add these line in the customer.xml:

<customer_account translate="label">
    <label>Customer My Account (All Pages)</label>
    <remove name="right.reports.product.viewed"/>
    <remove name="right.reports.product.compared"/>
</customer_account>

But I want to do this without changing in the base files. How can I do this?

1
  • Do you copy this base file "customer.xml" in your theme layout folder? Commented Jun 14, 2015 at 5:49

1 Answer 1

1

Copy base file to your theme template

As per as magento design fallback logic,you need to copy customer.xml from base folder and put your Current package template layout folder(app/design/frontend/YourPackage/YourThemeTemplate/layout)

By local.xml

Or create a layout local.xml file at your Current package template layout folder(app/design/frontend/YourPackage/YourThemeTemplate/layout)

out this code

<customer_account translate="label">
    <reference name="right"><!-- may be left / right depend on theme --->
    <remove name="right.reports.product.viewed"/>
    <remove name="right.reports.product.compared"/>
<reference>
</customer_account>

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.