Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2736 Lượt xem

How to remove street 2 field?


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

Create a custom template, Inherit the address template in website_sale module, and use xpath to replace the street 2 field.

<template id="address" inherit_id="website_sale.address">
<xpath expr="//div[contains(@t-attf-class, ‘col-lg-12 div_street2’)]” position="replace”>
</xpath>
</template>

Then the field and it’s label will be removed.

Regards

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 12 24
2127
3
thg 3 24
2720
0
thg 10 23
1341
1
thg 2 23
3761
1
thg 9 22
3907