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

#   Delivery address refresh page - checkbox

##

- **[jesper](/forum/user/8151-jesper "View jesper's Profile")**
- [![jesper's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/dog.png)](/forum/user/8151-jesper "View jesper's Profile") Topic Author
- [ Offline](/forum/user/8151-jesper)

Less More

- Posts: 171
- Thank you received: 4
-
-

10 years 3 months ago [\#248365](#248365) by [jesper](/forum/user/8151-jesper "View jesper's Profile")  *[Delivery address refresh page - checkbox](/forum/27-checkout/886136-delivery-address-refresh-page-checkbox#248365 "-- HikaShop version -- : HikaShop Business: 2.6.3 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6.24-0  1. User add a item to cart. 2. Go to checkout. 3. Tick the checkbox of &quot;Use the same address as payment&quot;. 4. Change the &quot;Delivery address&quot; in the popup. Click &quot;OK&quot;. 5. The browser refresh the page and the &quot;Use the same address as payment&quot; is not ticked of anymore, but the address is added.  We have template overrides, but I have tried to remove these and the problem does still exists.")* was created by *[jesper](/forum/user/8151-jesper "View jesper's Profile")*

-- HikaShop version -- : HikaShop Business: 2.6.3
-- Joomla version -- : 3.6.2
-- PHP version -- : 5.6.24-0

1. User add a item to cart.
2. Go to checkout.
3. Tick the checkbox of "Use the same address as payment".
4. Change the "Delivery address" in the popup. Click "OK".
5. The browser refresh the page and the "Use the same address as payment" is not ticked of anymore, but the address is added.

We have template overrides, but I have tried to remove these and the problem does still exists.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NjEzNi1kZWxpdmVyeS1hZGRyZXNzLXJlZnJlc2gtcGFnZS1jaGVja2JveD90bXBsPW1hcmtkb3du) 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: 14325
-
-

10 years 3 months ago [\#248369](#248369) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Delivery address refresh page - checkbox](/forum/27-checkout/886136-delivery-address-refresh-page-checkbox#248369 "-- HikaShop version -- : HikaShop Business: 2.6.3 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6.24-0  1. User add a item to cart. 2. Go to checkout. 3. Tick the checkbox of &quot;Use the same address as payment&quot;. 4. Change the &quot;Delivery address&quot; in the popup. Click &quot;OK&quot;. 5. The browser refresh the page and the &quot;Use the same address as payment&quot; is not ticked of anymore, but the address is added.  We have template overrides, but I have tried to remove these and the problem does still exists.")*

Hi,

I'm not able to reproduce the problem on your website.
When I arrive on the address view, the checkbox "Use the same address as payment" is already ticked. And if I untick it, I can fill in the delivery address and it will be used.
The problem I see however is that when the page refreshes, the checkbox is still ticked while it shouldn't. It seems to be related to the view overrides. Can you try with the default template of Joomla ? Are you able to reproduce the issue ?

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

- **[jesper](/forum/user/8151-jesper "View jesper's Profile")**
- [![jesper's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/dog.png)](/forum/user/8151-jesper "View jesper's Profile") Topic Author
- [ Offline](/forum/user/8151-jesper)

Less More

- Posts: 171
- Thank you received: 4
-
-

10 years 3 months ago [\#248417](#248417) by [jesper](/forum/user/8151-jesper "View jesper's Profile")  Replied by *[jesper](/forum/user/8151-jesper "View jesper's Profile")* on topic *[Delivery address refresh page - checkbox](/forum/27-checkout/886136-delivery-address-refresh-page-checkbox#248417 "-- HikaShop version -- : HikaShop Business: 2.6.3 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6.24-0  1. User add a item to cart. 2. Go to checkout. 3. Tick the checkbox of &quot;Use the same address as payment&quot;. 4. Change the &quot;Delivery address&quot; in the popup. Click &quot;OK&quot;. 5. The browser refresh the page and the &quot;Use the same address as payment&quot; is not ticked of anymore, but the address is added.  We have template overrides, but I have tried to remove these and the problem does still exists.")*

It is the same error with the standard theme Atomic, that the page refreshes and untick the checkbox.

Have you seen the error before?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NjEzNi1kZWxpdmVyeS1hZGRyZXNzLXJlZnJlc2gtcGFnZS1jaGVja2JveD90bXBsPW1hcmtkb3du) 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: 14325
-
-

10 years 3 months ago [\#248421](#248421) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Delivery address refresh page - checkbox](/forum/27-checkout/886136-delivery-address-refresh-page-checkbox#248421 "-- HikaShop version -- : HikaShop Business: 2.6.3 -- Joomla version -- : 3.6.2 -- PHP version -- : 5.6.24-0  1. User add a item to cart. 2. Go to checkout. 3. Tick the checkbox of &quot;Use the same address as payment&quot;. 4. Change the &quot;Delivery address&quot; in the popup. Click &quot;OK&quot;. 5. The browser refresh the page and the &quot;Use the same address as payment&quot; is not ticked of anymore, but the address is added.  We have template overrides, but I have tried to remove these and the problem does still exists.")*

Hi,

No. It's the first time, as far as I remember.
The tick/untick selection of the checkbox is handled by the code: Code:

if($this-&gt;shipping_address==$this-&gt;billing_address){ $checked = 'checked="checked" ';

in the view file "address" of the "checkout" view. So I would start by checking the value of both $this-&gt;shipping_address and $this-&gt;billing_address with such code in the view:
echo $this-&gt;shipping_address . ' ' . $this-&gt;billing_address;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NjEzNi1kZWxpdmVyeS1hZGRyZXNzLXJlZnJlc2gtcGFnZS1jaGVja2JveD90bXBsPW1hcmtkb3du) 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.065 seconds

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