Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2352 Widoki

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
sie 24
1413
1
cze 23
3715
0
cze 23
1631
2
maj 22
3159
0
maj 17
3596