Xóa block trong 1 trang
(How to remove block into a page of magento/Adding A CSS Class To The Body tag)
ví dụ Trong trang cutomer muốn không hiển thị my cart / giỏ hàng thì làm như sau:
Mở file customer.xml layout
bỏ đoạn code dưới vào
<remove name="cart_sidebar"/>
nếu muốn dùng chung cho tất cả các trang thuộc customer thì bỏ vào trong thẻ
<default>
<remove name="cart_sidebar"/>
</default>
.....
Thứ Ba, 8 tháng 7, 2014
Thêm tên class vào body trong magento (How to add class into body in magento)
Thêm tên class vào <body> trong magento (How to add class into body in magento)
Muốn thêm tên class vào body của 1 trang nào đó ví dụ trang customer.
mở file layout : customer.xml
chèn vào đoạn code :
<reference name="root">
<action method="addBodyClass"><classname>customers-profile</classname></action>
</reference>
trong đó customers-profile: là tên class mới thêm vào <body>
Muốn thêm tên class vào body của 1 trang nào đó ví dụ trang customer.
mở file layout : customer.xml
chèn vào đoạn code :
<reference name="root">
<action method="addBodyClass"><classname>customers-profile</classname></action>
</reference>
trong đó customers-profile: là tên class mới thêm vào <body>
Đăng ký:
Bài đăng (Atom)