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

#   Shipping and billing address

##

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

Less More

- Posts: 31
- Thank you received: 0
-
-

14 years 4 months ago [\#57300](#57300) by [shanwell](/forum/user/6685-shanwell "View shanwell's Profile")  *[Shipping and billing address](/forum/4-how-to/57300-shipping-and-billing-address#57300 "Hi  I am using business version and no registration.  I also only show the selected billing and shipping address in check out page.  After I completed one shopping transaction(done payment) and I return to shop more (without cleaning browser cache), all my details are still filled in the &quot;detail form&quot; which is great since I don't have to re enter, but when I go to the next step - the billing and shipping address details, my old shipping address was displayed as the billing address(selected), so the previous shipping address has suddenly become the billing address.  I know I have the edit button to re-enter the billing address back, but I thought that it shouldn't have changed like that. The billing address should stay the same as the previous transaction which is based on the address from the &quot;detail form&quot; that I first filled, not the old shipping address.  Any idea?")* was created by *[shanwell](/forum/user/6685-shanwell "View shanwell's Profile")*

Hi

I am using business version and no registration.

I also only show the selected billing and shipping address in check out page.

After I completed one shopping transaction(done payment) and I return to shop more (without cleaning browser cache), all my details are still filled in the "detail form" which is great since I don't have to re enter, but when I go to the next step - the billing and shipping address details, my old shipping address was displayed as the billing address(selected), so the previous shipping address has suddenly become the billing address.

I know I have the edit button to re-enter the billing address back, but I thought that it shouldn't have changed like that. The billing address should stay the same as the previous transaction which is based on the address from the "detail form" that I first filled, not the old shipping address.

Any idea?

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

14 years 4 months ago [\#57374](#57374) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Shipping and billing address](/forum/4-how-to/57300-shipping-and-billing-address#57374 "Hi  I am using business version and no registration.  I also only show the selected billing and shipping address in check out page.  After I completed one shopping transaction(done payment) and I return to shop more (without cleaning browser cache), all my details are still filled in the &quot;detail form&quot; which is great since I don't have to re enter, but when I go to the next step - the billing and shipping address details, my old shipping address was displayed as the billing address(selected), so the previous shipping address has suddenly become the billing address.  I know I have the edit button to re-enter the billing address back, but I thought that it shouldn't have changed like that. The billing address should stay the same as the previous transaction which is based on the address from the &quot;detail form&quot; that I first filled, not the old shipping address.  Any idea?")*

Hi,

That shouldn't be the case with the latest version. Could you check that you're using the latest version of HikaShop?

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

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

Less More

- Posts: 31
- Thank you received: 0
-
-

14 years 4 months ago [\#57442](#57442) by [shanwell](/forum/user/6685-shanwell "View shanwell's Profile")  Replied by *[shanwell](/forum/user/6685-shanwell "View shanwell's Profile")* on topic *[Re: Shipping and billing address](/forum/4-how-to/57300-shipping-and-billing-address#57442 "Hi  I am using business version and no registration.  I also only show the selected billing and shipping address in check out page.  After I completed one shopping transaction(done payment) and I return to shop more (without cleaning browser cache), all my details are still filled in the &quot;detail form&quot; which is great since I don't have to re enter, but when I go to the next step - the billing and shipping address details, my old shipping address was displayed as the billing address(selected), so the previous shipping address has suddenly become the billing address.  I know I have the edit button to re-enter the billing address back, but I thought that it shouldn't have changed like that. The billing address should stay the same as the previous transaction which is based on the address from the &quot;detail form&quot; that I first filled, not the old shipping address.  Any idea?")*

Hi Nicolas,

I bought the business package a couple weeks ago. I checked the update/about and it says "You have the latest stable version : 1.5.8"

This is my current checkout/address_view.php. Maybe I did something wrong when I modified it to show selected address only.

&lt;?php
global $Itemid;
$url_itemid='';
if(!empty($Itemid)){
$url_itemid='&amp;Itemid='.$Itemid;
}
$same_address = false;
if($this-&gt;shipping_address==$this-&gt;billing_address){
$same_address = true;
}
if(!empty($this-&gt;addresses)){
?&gt;
&lt;table&gt;
&lt;?php
$varname = $this-&gt;type.'_address';
if(empty($this-&gt;$varname) &#124;&#124; !isset($this-&gt;addresses[$this-&gt;$varname])){
$first = reset($this-&gt;addresses);
$this-&gt;$varname = $first-&gt;address_id;
}
$done = false;
$nb_addresses = count($this-&gt;addresses);
$k=0;
foreach($this-&gt;addresses as $address){
$this-&gt;address =&amp; $address;
$checked = '';
if(($this-&gt;$varname==$address-&gt;address_id)&#124;&#124;(empty($address-&gt;address_id) &amp;&amp; !$done)){
$checked = 'checked="checked"';
$done = true;
}
else{
continue;}

if($this-&gt;config-&gt;get('auto_submit_methods',1)&amp;&amp;empty($checked)){
$checked.=' onclick="this.form.submit(); return false;"';
}
?&gt;

&lt;tr class="&lt;?php echo "row$k"; ?&gt;"&gt;
&lt;td&gt;
&lt;input id="hikashop_checkout_&lt;?php echo $this-&gt;type;?&gt;_address_radio_&lt;?php echo $address-&gt;address_id;?&gt;" class="hikashop_checkout_&lt;?php echo $this-&gt;type;?&gt;_address_radio" type="radio" name="hikashop_address_&lt;?php echo $this-&gt;type;?&gt;" value="&lt;?php echo $address-&gt;address_id;?&gt;" &lt;?php echo $checked; ?&gt; /&gt;
&lt;/td&gt;
&lt;td&gt;&lt;label for="hikashop_checkout_&lt;?php echo $this-&gt;type;?&gt;_address_radio_&lt;?php echo $address-&gt;address_id;?&gt;" style="cursor:pointer;"&gt;
&lt;span class="hikashop_checkout_&lt;?php echo $this-&gt;type;?&gt;_address_info"&gt;

&lt;?php
$params = null;
$js = '';
$html = hikashop_getLayout('address','address_template',$params,$js);
foreach($this-&gt;fields as $field){
$fieldname = $field-&gt;field_namekey;
$html=str_replace('{'.$fieldname.'}',$this-&gt;fieldsClass-&gt;show($field,$address-&gt;$fieldname),$html);
}
echo str_replace("\n","&lt;br/&gt;\n",str_replace("\n\n","\n",preg_replace('#{(?![:(](/media/kunena/emoticons/22.png ":(")?!}).)*}#i','',$html)));
?&gt;
&lt;/span&gt;
&lt;/label&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;span class="hikashop_checkout_&lt;?php echo $this-&gt;type;?&gt;_address_buttons"&gt;
&lt;?php if($nb_addresses&gt;1){ ?&gt;

&lt;?php }
?&gt;

&lt;/span&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;?php
$k = 1-$k;
}
?&gt;
&lt;/table&gt;
&lt;?php
}else{
$app =&amp; JFactory::getApplication();
$app-&gt;enqueueMessage( JText::_('CREATE_OR_SELECT_ADDRESS') );
}
?&gt;
&lt;span id="hikashop_checkout_&lt;?php echo $this-&gt;type;?&gt;_address_new" class="hikashop_checkout_&lt;?php echo $this-&gt;type;?&gt;_address_new"&gt;
&lt;?php $html = $this-&gt;cart-&gt;displayButton(JText::_('HIKA_NEW'),'new',$this-&gt;params,'','var link = document.getElementById(\'hikashop_checkout_'. $this-&gt;type.'_address_new_link\'); if(link) return hikashopEditAddress(link,'.(int)$same_address.',true); return false;');
if(strpos($html,'&lt;a')!==false) echo $html; ?&gt;
&lt;a id="hikashop_checkout_&lt;?php echo $this-&gt;type;?&gt;_address_new_link" rel="{handler: 'iframe', size: {x: 450, y: 480}}" href="&lt;?php echo hikashop_completeLink('address&amp;redirect=checkout&amp;task=add&amp;step='.$this-&gt;step.'&amp;type='.$this-&gt;type.$url_itemid,true);?&gt;" onclick="return hikashopEditAddress(this,&lt;?php echo (int)$same_address; ?&gt;,true);"&gt;
&lt;?php if(strpos($html,'&lt;a')===false) echo $html; ?&gt;
&lt;/a&gt;
&lt;/span&gt;

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

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

Less More

- Posts: 31
- Thank you received: 0
-
-

14 years 4 months ago [\#57586](#57586) by [shanwell](/forum/user/6685-shanwell "View shanwell's Profile")  Replied by *[shanwell](/forum/user/6685-shanwell "View shanwell's Profile")* on topic *[Re: Shipping and billing address](/forum/4-how-to/57300-shipping-and-billing-address#57586 "Hi  I am using business version and no registration.  I also only show the selected billing and shipping address in check out page.  After I completed one shopping transaction(done payment) and I return to shop more (without cleaning browser cache), all my details are still filled in the &quot;detail form&quot; which is great since I don't have to re enter, but when I go to the next step - the billing and shipping address details, my old shipping address was displayed as the billing address(selected), so the previous shipping address has suddenly become the billing address.  I know I have the edit button to re-enter the billing address back, but I thought that it shouldn't have changed like that. The billing address should stay the same as the previous transaction which is based on the address from the &quot;detail form&quot; that I first filled, not the old shipping address.  Any idea?")*

Is there anything wrong with those codes that caused the problem? and any other solutions?

Many thanks,

Shanwell

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

14 years 4 months ago [\#57657](#57657) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Shipping and billing address](/forum/4-how-to/57300-shipping-and-billing-address#57657 "Hi  I am using business version and no registration.  I also only show the selected billing and shipping address in check out page.  After I completed one shopping transaction(done payment) and I return to shop more (without cleaning browser cache), all my details are still filled in the &quot;detail form&quot; which is great since I don't have to re enter, but when I go to the next step - the billing and shipping address details, my old shipping address was displayed as the billing address(selected), so the previous shipping address has suddenly become the billing address.  I know I have the edit button to re-enter the billing address back, but I thought that it shouldn't have changed like that. The billing address should stay the same as the previous transaction which is based on the address from the &quot;detail form&quot; that I first filled, not the old shipping address.  Any idea?")*

I don't think that it comes from the code of that view.

Could you give a link to your shop (and maybe a back end access ?), so that we can try to reproduce the problem and understand what's going on ?

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

14 years 4 months ago [\#57825](#57825) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Shipping and billing address](/forum/4-how-to/57300-shipping-and-billing-address#57825 "Hi  I am using business version and no registration.  I also only show the selected billing and shipping address in check out page.  After I completed one shopping transaction(done payment) and I return to shop more (without cleaning browser cache), all my details are still filled in the &quot;detail form&quot; which is great since I don't have to re enter, but when I go to the next step - the billing and shipping address details, my old shipping address was displayed as the billing address(selected), so the previous shipping address has suddenly become the billing address.  I know I have the edit button to re-enter the billing address back, but I thought that it shouldn't have changed like that. The billing address should stay the same as the previous transaction which is based on the address from the &quot;detail form&quot; that I first filled, not the old shipping address.  Any idea?")*

Ok, I think I understand why you're thinking that the problem is with the selection of the default address.

When I tested on your website, once I got back from the payment gateway and tried a second checkout, the checkout displayed the registration form with all the latest information prefilled. That's actually done by the browser based on the information you entered there previously. And since the latest address you entered is the shipping address, you get the shipping address information pre filled there.
Then, when you proceed, it uses that address for both the shipping and the billing address, like it does the first time. But you need to change the information in the form so that it uses your billing address.

So it's not a problem of default address.
In fact, since you don't have a user account created, the addresses cannot be reused by HikaShop. 0therwise anyone could come to your website and get the address of anyone else who already ordered, which is not something you want.

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

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

Less More

- Posts: 31
- Thank you received: 0
-
-

14 years 4 months ago [\#57903](#57903) by [shanwell](/forum/user/6685-shanwell "View shanwell's Profile")  Replied by *[shanwell](/forum/user/6685-shanwell "View shanwell's Profile")* on topic *[Re: Shipping and billing address](/forum/4-how-to/57300-shipping-and-billing-address#57903 "Hi  I am using business version and no registration.  I also only show the selected billing and shipping address in check out page.  After I completed one shopping transaction(done payment) and I return to shop more (without cleaning browser cache), all my details are still filled in the &quot;detail form&quot; which is great since I don't have to re enter, but when I go to the next step - the billing and shipping address details, my old shipping address was displayed as the billing address(selected), so the previous shipping address has suddenly become the billing address.  I know I have the edit button to re-enter the billing address back, but I thought that it shouldn't have changed like that. The billing address should stay the same as the previous transaction which is based on the address from the &quot;detail form&quot; that I first filled, not the old shipping address.  Any idea?")*

Hi Nicolas,

thanks for clarifying that.

I notice every pop up window has the same background as my website background now. Did you do any CSS changes? It was white background before. It looks nice. I'd like to know how you changed that.

Many thanks,

Shanwell

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

14 years 4 months ago [\#57969](#57969) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Shipping and billing address](/forum/4-how-to/57300-shipping-and-billing-address#57969 "Hi  I am using business version and no registration.  I also only show the selected billing and shipping address in check out page.  After I completed one shopping transaction(done payment) and I return to shop more (without cleaning browser cache), all my details are still filled in the &quot;detail form&quot; which is great since I don't have to re enter, but when I go to the next step - the billing and shipping address details, my old shipping address was displayed as the billing address(selected), so the previous shipping address has suddenly become the billing address.  I know I have the edit button to re-enter the billing address back, but I thought that it shouldn't have changed like that. The billing address should stay the same as the previous transaction which is based on the address from the &quot;detail form&quot; that I first filled, not the old shipping address.  Any idea?")*

I didn't change that. That's the CSS of your template. The popup is also displayed by your template and some templates do that automatically.

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

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