简体   繁体   中英

Magento disable My Cart block from reviews page

I am trying to disable My Cart block from the reviews page, It is not displaying on my product page until I click reviews. I also need to change the buy box to include a size dropdown like on the product page.

I tried display:none in the CSS, but it still takes up space which shifts my entire page out of place.

According to my understanding,i concluded with this solution

<?xml version="1.0" encoding="UTF-8"?>
<layout version="0.1.0">
<default>
</default>
<review_product_list>
    <remove name="cart_sidebar" />
</review_product_list>
</layout>

The above code will remove .If you want to remove it from every page write : <remove name="cart_sidebar" /> between <default> tag. 删除 。如果要从每个页面中删除它,请在<default>标记之间写入: <remove name="cart_sidebar" />
Write the following code in local.xml.
path:magento_folder/app/design/frontend/mytheme(your_package_folder)/neo(your_theme_folder)/layout/local.xml

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM