Skip to main content

Delivery address refresh page - checkbox

10 years 2 months ago #248365 by jesper
-- 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 or Create an account to join the conversation.

10 years 2 months ago #248369 by nicolas
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 or Create an account to join the conversation.

10 years 2 months ago #248417 by jesper
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 or Create an account to join the conversation.

10 years 2 months ago #248421 by nicolas
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->shipping_address==$this->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->shipping_address and $this->billing_address with such code in the view:
echo $this->shipping_address . ' ' . $this->billing_address;

Please Log in or Create an account to join the conversation.

Time to create page: 0.047 seconds
Powered by Kunena Forum