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

#   How to show Single Address

##

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

Less More

- Posts: 6
- Thank you received: 0
-
-

12 years 5 months ago -  12 years 5 months ago [\#162196](#162196) by [asphika](/forum/user/33144-asphika "View asphika's Profile")  *[How to show Single Address](/forum/27-checkout/869349-how-to-show-single-address#162196 "  www.idolkits.com  Apache : 2.2.26 MySQL : 5.5.37-35.1 PHP : 5.4.29 Joomla : 3.3.1 HikaShop Essential : 2.3.1  Hello,  I modified some code to show only Billing Address Left Part ( Hide the Shipping Address Right Part ) and override the text of Billing Address to show as Shipping Address.  and Edit the mail templates in the folder media/com&#95;hikashop/mail for hiding shipping Address ( comment out ) order&#95;admin&#95;notification.html.php order&#95;creation&#95;notification.html.php order&#95;notification.html.php order&#95;status&#95;notification.html.php payment&#95;notification.html.php  and tricky translate HIKASHOP&#95;BILLING&#95;ADDRESS=&quot;Shipping Address&quot;  The result of displaying only Left Side Address is OK.  But I still get an error, that I think the code still check the fields of Shipping Address that has not been filled by user.  The details of Checkout process as following,  1.) Guest picked some products to the cart 2.) Check out 3.) Register and Confirm Link 4.) click on the Link from email and redirected to fill Address in the website 5.) after fill address, click &quot;OK&quot; Mark, and Radio Check 6.) click &quot;Finish&quot; Button at the bottom of screen 7.) The error appeared that you need to fill the address fields ")* was created by *[asphika](/forum/user/33144-asphika "View asphika's Profile")*

[ www.idolkits.com](http://www.idolkits.com)
Apache : 2.2.26
MySQL : 5.5.37-35.1
PHP : 5.4.29
Joomla : 3.3.1
HikaShop Essential : 2.3.1

Hello,

I modified some code to show only Billing Address Left Part ( Hide the Shipping Address Right Part )
and override the text of Billing Address to show as Shipping Address.
Code:

\#hikashop_checkout_address_right_part{ display: none; }

and
Edit the mail templates in the folder media/com_hikashop/mail for hiding shipping Address ( comment out )
order_admin_notification.html.php
order_creation_notification.html.php
order_notification.html.php
order_status_notification.html.php
payment_notification.html.php

and tricky translate
HIKASHOP_BILLING_ADDRESS="Shipping Address"

The result of displaying only Left Side Address is OK.

But I still get an error,
that I think the code still check the fields of Shipping Address that has not been filled by user.

The details of Checkout process as following,

1.) Guest picked some products to the cart
2.) Check out
3.) Register and Confirm Link
4.) click on the Link from email and redirected to fill Address in the website
5.) after fill address, click "OK" Mark, and Radio Check
6.) click "Finish" Button at the bottom of screen
7.) The error appeared that you need to fill the address fields &lt;&lt;&lt;&lt;&lt; Please see this step
8.) click "Finish" Button again
9.) Finished, the order has been created

[ ![hccc3639.png](/forum/attachment/18169) ](/forum/attachment/18169 "hccc3639.png")

[ ![h3cd4613.png](/forum/attachment/18170) ](/forum/attachment/18170 "h3cd4613.png")

[ ![haaa67b2.png](/forum/attachment/18171) ](/forum/attachment/18171 "haaa67b2.png")

[ ![h532e9b0.png](/forum/attachment/18172) ](/forum/attachment/18172 "h532e9b0.png")

[ ![h0331e0c.png](/forum/attachment/18173) ](/forum/attachment/18173 "h0331e0c.png")

[ ![h76cc120.png](/forum/attachment/18174) ](/forum/attachment/18174 "h76cc120.png")

Could you please suggest me.

Thank you
asphika

- [ ![hccc3639.png](/forum/attachment/18169) ](/forum/attachment/18169 "hccc3639.png") [ ](/forum/attachment/18169?download=1 "hccc3639.png")
- [ ![h3cd4613.png](/forum/attachment/18170) ](/forum/attachment/18170 "h3cd4613.png") [ ](/forum/attachment/18170?download=1 "h3cd4613.png")
- [ ![haaa67b2.png](/forum/attachment/18171) ](/forum/attachment/18171 "haaa67b2.png") [ ](/forum/attachment/18171?download=1 "haaa67b2.png")
- [ ![h532e9b0.png](/forum/attachment/18172) ](/forum/attachment/18172 "h532e9b0.png") [ ](/forum/attachment/18172?download=1 "h532e9b0.png")
- [ ![h0331e0c.png](/forum/attachment/18173) ](/forum/attachment/18173 "h0331e0c.png") [ ](/forum/attachment/18173?download=1 "h0331e0c.png")
- [ ![h76cc120.png](/forum/attachment/18174) ](/forum/attachment/18174 "h76cc120.png") [ ](/forum/attachment/18174?download=1 "h76cc120.png")

Last edit: 12 years 5 months ago by [asphika](/forum/user/33144-asphika "View asphika's Profile").

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

12 years 5 months ago [\#162211](#162211) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to show Single Address](/forum/27-checkout/869349-how-to-show-single-address#162211 "  www.idolkits.com  Apache : 2.2.26 MySQL : 5.5.37-35.1 PHP : 5.4.29 Joomla : 3.3.1 HikaShop Essential : 2.3.1  Hello,  I modified some code to show only Billing Address Left Part ( Hide the Shipping Address Right Part ) and override the text of Billing Address to show as Shipping Address.  and Edit the mail templates in the folder media/com&#95;hikashop/mail for hiding shipping Address ( comment out ) order&#95;admin&#95;notification.html.php order&#95;creation&#95;notification.html.php order&#95;notification.html.php order&#95;status&#95;notification.html.php payment&#95;notification.html.php  and tricky translate HIKASHOP&#95;BILLING&#95;ADDRESS=&quot;Shipping Address&quot;  The result of displaying only Left Side Address is OK.  But I still get an error, that I think the code still check the fields of Shipping Address that has not been filled by user.  The details of Checkout process as following,  1.) Guest picked some products to the cart 2.) Check out 3.) Register and Confirm Link 4.) click on the Link from email and redirected to fill Address in the website 5.) after fill address, click &quot;OK&quot; Mark, and Radio Check 6.) click &quot;Finish&quot; Button at the bottom of screen 7.) The error appeared that you need to fill the address fields ")*

Hi,

The issue comes from the fact that you hide the fields in CSS instead of completely removing the fields from the HTML.
So when the checkout is submitted, the system see the fields empty and thus display theses errors.
To avoid that, edit the file "address" of the view "checkout" via the menu Display&gt;Views and remove the code: Code:

$this-&gt;type = 'shipping'; echo $this-&gt;loadTemplate('select');

That should completely remove the shipping address zone's HTML and thus avoid the errors.

The following user(s) said Thank You: [asphika](/forum/user/33144-asphika "View asphika's Profile")

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

12 years 5 months ago [\#162244](#162244) by [asphika](/forum/user/33144-asphika "View asphika's Profile")  Replied by *[asphika](/forum/user/33144-asphika "View asphika's Profile")* on topic *[How to show Single Address](/forum/27-checkout/869349-how-to-show-single-address#162244 "  www.idolkits.com  Apache : 2.2.26 MySQL : 5.5.37-35.1 PHP : 5.4.29 Joomla : 3.3.1 HikaShop Essential : 2.3.1  Hello,  I modified some code to show only Billing Address Left Part ( Hide the Shipping Address Right Part ) and override the text of Billing Address to show as Shipping Address.  and Edit the mail templates in the folder media/com&#95;hikashop/mail for hiding shipping Address ( comment out ) order&#95;admin&#95;notification.html.php order&#95;creation&#95;notification.html.php order&#95;notification.html.php order&#95;status&#95;notification.html.php payment&#95;notification.html.php  and tricky translate HIKASHOP&#95;BILLING&#95;ADDRESS=&quot;Shipping Address&quot;  The result of displaying only Left Side Address is OK.  But I still get an error, that I think the code still check the fields of Shipping Address that has not been filled by user.  The details of Checkout process as following,  1.) Guest picked some products to the cart 2.) Check out 3.) Register and Confirm Link 4.) click on the Link from email and redirected to fill Address in the website 5.) after fill address, click &quot;OK&quot; Mark, and Radio Check 6.) click &quot;Finish&quot; Button at the bottom of screen 7.) The error appeared that you need to fill the address fields ")*

Hello Nicolas

There are 2 places that I have commented it out in the View / checkout / address
Code:

else if(!empty($address_selector)) { /* $this-&gt;type = 'shipping'; echo $this-&gt;loadTemplate('select'); */ }

and
Code:

&lt;?php /* $this-&gt;type = 'shipping'; echo $this-&gt;loadTemplate('view'); */ ?&gt;

The result is the error messages disappeared,
But I have to click "Finish" Button Twice to be able to place an order.
( refer to procedures in my first posted message )

I have tested after modified that code 2 times before post this message to make sure.

Is there any related code to be modified?

Thank you very much
asphika

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

12 years 4 months ago [\#162246](#162246) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to show Single Address](/forum/27-checkout/869349-how-to-show-single-address#162246 "  www.idolkits.com  Apache : 2.2.26 MySQL : 5.5.37-35.1 PHP : 5.4.29 Joomla : 3.3.1 HikaShop Essential : 2.3.1  Hello,  I modified some code to show only Billing Address Left Part ( Hide the Shipping Address Right Part ) and override the text of Billing Address to show as Shipping Address.  and Edit the mail templates in the folder media/com&#95;hikashop/mail for hiding shipping Address ( comment out ) order&#95;admin&#95;notification.html.php order&#95;creation&#95;notification.html.php order&#95;notification.html.php order&#95;status&#95;notification.html.php payment&#95;notification.html.php  and tricky translate HIKASHOP&#95;BILLING&#95;ADDRESS=&quot;Shipping Address&quot;  The result of displaying only Left Side Address is OK.  But I still get an error, that I think the code still check the fields of Shipping Address that has not been filled by user.  The details of Checkout process as following,  1.) Guest picked some products to the cart 2.) Check out 3.) Register and Confirm Link 4.) click on the Link from email and redirected to fill Address in the website 5.) after fill address, click &quot;OK&quot; Mark, and Radio Check 6.) click &quot;Finish&quot; Button at the bottom of screen 7.) The error appeared that you need to fill the address fields ")*

Hi,

That's normal that you have to click twice the way you configured your checkout.
Once to validate the address form and a second time to validate the order.
If you want to avoid that, I would recommend to turn on the option "Ask address on registration" of the configuration.
That way, the address would actually be entered with the registration form and you would just have to click once on the finish button to validate the order.

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

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