跳至內容
選單
此問題已被標幟
2118 瀏覽次數

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.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
8月 24
1155
1
6月 23
3474
0
6月 23
1411
2
5月 22
2903
0
5月 17
3358