[Skip to main content](#vessel-content)

#   Same address for shipping unchecked by default

##

- **[patoushka](/forum/user/6145-patoushka "View patoushka's Profile")**
- [![patoushka's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6145-patoushka "View patoushka's Profile") Topic Author
- [ Offline](/forum/user/6145-patoushka)

Less More

- Posts: 628
- Thank you received: 18
-
-

6 years 5 days ago [\#326442](#326442) by [patoushka](/forum/user/6145-patoushka "View patoushka's Profile")  *[Same address for shipping unchecked by default](/forum/27-checkout/901325-same-address-for-shipping-unchecked-by-default#326442 "Hi is it possible to let the checkbox empty for the option &quot;Same address for shipping&quot; in the checkout?  If it's possible, ho do we achieve that?  Thanks !")* was created by *[patoushka](/forum/user/6145-patoushka "View patoushka's Profile")*

Hi is it possible to let the checkbox empty for the option "Same address for shipping" in the checkout?

If it's possible, ho do we achieve that?

Thanks !

- [ ![Sameadresse.png](/forum/attachment/51225) ](/forum/attachment/51225 "Sameadresse.png") [ ](/forum/attachment/51225?download=1 "Sameadresse.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwMTMyNS1zYW1lLWFkZHJlc3MtZm9yLXNoaXBwaW5nLXVuY2hlY2tlZC1ieS1kZWZhdWx0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

6 years 4 days ago [\#326458](#326458) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Same address for shipping unchecked by default](/forum/27-checkout/901325-same-address-for-shipping-unchecked-by-default#326458 "Hi is it possible to let the checkbox empty for the option &quot;Same address for shipping&quot; in the checkout?  If it's possible, ho do we achieve that?  Thanks !")*

Hi,

Edit the file show_block_address.php via the menu Display&gt;Views and change the line: Code:

&lt;label&gt;&lt;input type="checkbox" checked="checked" name="data[address_bothtypes_&lt;?php echo $this-&gt;step . '_' . $this-&gt;module_position; ?&gt;]" value="1"&gt; &lt;?php

to:
Code:

&lt;label&gt;&lt;input type="checkbox" name="data[address_bothtypes_&lt;?php echo $this-&gt;step . '_' . $this-&gt;module_position; ?&gt;]" value="1"&gt; &lt;?php

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwMTMyNS1zYW1lLWFkZHJlc3MtZm9yLXNoaXBwaW5nLXVuY2hlY2tlZC1ieS1kZWZhdWx0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[patoushka](/forum/user/6145-patoushka "View patoushka's Profile")**
- [![patoushka's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6145-patoushka "View patoushka's Profile") Topic Author
- [ Offline](/forum/user/6145-patoushka)

Less More

- Posts: 628
- Thank you received: 18
-
-

6 years 3 days ago [\#326596](#326596) by [patoushka](/forum/user/6145-patoushka "View patoushka's Profile")  Replied by *[patoushka](/forum/user/6145-patoushka "View patoushka's Profile")* on topic *[Same address for shipping unchecked by default](/forum/27-checkout/901325-same-address-for-shipping-unchecked-by-default#326596 "Hi is it possible to let the checkbox empty for the option &quot;Same address for shipping&quot; in the checkout?  If it's possible, ho do we achieve that?  Thanks !")*

I tried this but it changed nothing. Still checked by default.

The only difference I see is that we remove the"checked="checked"" code.

I'm really not very good with PHP. Is there an unchecked code?

Do you have another another idea?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwMTMyNS1zYW1lLWFkZHJlc3MtZm9yLXNoaXBwaW5nLXVuY2hlY2tlZC1ieS1kZWZhdWx0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

6 years 2 days ago [\#326601](#326601) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Same address for shipping unchecked by default](/forum/27-checkout/901325-same-address-for-shipping-unchecked-by-default#326601 "Hi is it possible to let the checkbox empty for the option &quot;Same address for shipping&quot; in the checkout?  If it's possible, ho do we achieve that?  Thanks !")*

Hi,

I have no other idea.
I actually tested the modification in my end and it works just fine.
I actually don't know of any other way to have a checkbox unchecked by default in HTML. That's how it is supposed to be done and the solution which works.

So if you don't see any difference, it means that you must have edited the view file for another template than the template you're using on your frontend. Or you've modified the file from your test website while you're looking at the checkout on your live website or vice-versa. Or we're not talking about the same checkout.

This modification I proposed is for when you create/edit an address in the checkout's "address" view. There is a similar checkbox on the registration/guest form of the "login" view but the login view already has a setting to uncheck the checkbox by default so no modification is necessary. Looking at your screenshot, I can't say which one you're talking about but since there is already a setting for the "login" one, I assumed you were talking about the "address" one, but maybe you don't know about the setting and are talking about the "login" one.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwMTMyNS1zYW1lLWFkZHJlc3MtZm9yLXNoaXBwaW5nLXVuY2hlY2tlZC1ieS1kZWZhdWx0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.051 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
