Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2333 มุมมอง

Hi, I need to hide the zip code field in the checkout form on the website. Since zip code is a mandatory field by default, first I made it optional.  

Here is what I tried:


<template id="address_layout_inherit" inherit_id="website_sale.address" name="Hide Zip code">    
<xpath expr="//form[@action='/shop/address']" position="inside" >
        
        <xpath expr="//div[@class='div_zip']" position="replace" invisible="1">
xpath>
template>
I am able to hide the 'email' field with the below code.

<template id="address_layout_inherit" inherit_id="website_sale.address" name="Hide Zip code">
<xpath expr="//div[@id='div_email']" position="replace" invisible="1">

xpath>
template>

Am I missing something, Please help.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ส.ค. 24
1379
1
มิ.ย. 23
3684
0
มิ.ย. 23
1610
inherit and change website sale view V15 แก้ไขแล้ว
2
พ.ค. 22
3125
0
พ.ค. 17
3560