Magento去掉左栏和右栏的广告图片,这个问题有很多人在问,所以分享下方法。

去掉这两个广告图片,需要我们对Magento结构的了解,左栏和右栏的内容都是在catalog.xml里控制的。在52行,去掉这个block

             <block type=”core/template” name=”left.permanent.callout” template=”callouts/left_col.phtml”>
                <action method=”setImgSrc”><src>images/media/col_left_callout.jpg</src></action>
                <action method=”setImgAlt” translate=”alt” module=”catalog”><alt>Our customer service is available 24/7. Call us at (555) 555-0123.</alt></action>
                <action method=”setLinkUrl”><url>checkout/cart</url></action>
            </block>

在60行去掉这个block

             <block type=”core/template” name=”right.permanent.callout” template=”callouts/right_col.phtml”>
                <action method=”setImgSrc”><src>images/media/col_right_callout.jpg</src></action>
                <action method=”setImgAlt” translate=”alt” module=”catalog”><alt>Keep your eyes open for our special Back to School items and save A LOT!</alt></action>
            </block>

阿里云-推广AD

Magento的模块的调动删除,都是可以在xml中实现的。

另外,Magento右侧栏的PayPal Logo图标是可以在后台关闭的:

后台->System->Configuration->Payapl->Frontend Experience Settings:
在 Paypal Product Logo选项中设置为NO,刷新缓存,即可。