Magento: verschil tussen versies
Uit Rolandow
(Nieuwe pagina aangemaakt met '= Remove compare = To remove the compare button, and the sidebar, there's two things that need to be changed. One thing is in the core of magento. To keep installati…') |
(geen verschil)
|
Versie van 10 jun 2011 om 09:59
Remove compare
To remove the compare button, and the sidebar, there's two things that need to be changed. One thing is in the core of magento. To keep installation clean, copy /app/code/core/Mage/Catalog/Helper/Product/Compare.php to /app/code/local/Mage/Catalog/Helper/Product/Compare.php. Then change function getAddUrl, let it return false.
Second, we need to change the template. Edit /app/design/frontend/<package>/<theme>/layout/config.xml .. In the default element, comment out the block that refers to the compare stuff.
It's all explained here:
http://www.aschroder.com/2009/07/removing-the-compare-function-in-magento-the-easy-way/