Skip to Content
Menú
This question has been flagged
2136 Vistes

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.

Avatar
Descartar
Related Posts Respostes Vistes Activitat
0
d’ag. 24
1157
1
de juny 23
3479
0
de juny 23
1419
2
de maig 22
2907
0
de maig 17
3363