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

#   Username "Fields" causes problem...

##

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

Less More

- Posts: 30
- Thank you received: 0
-
-

14 years 3 months ago [\#59379](#59379) by [jrm](/forum/user/7525-jrm "View jrm's Profile")  *[Username "Fields" causes problem...](/forum/3-bug-report/59379-username-fields-causes-problem#59379 "Hi Nicolas,  A slightly amusing bug here...  We have a customer whose last name is &quot;Fields&quot;. He complained that his address contained the first line &quot;Mr XXXX Custom fields&quot;.  I have tried this - I registered as a test user &quot;Jim Fields&quot;, and the address has &quot;Mr Jim Custom fields&quot; as the first line. See the attachment.  Best regards,  John")* was created by *[jrm](/forum/user/7525-jrm "View jrm's Profile")*

Hi Nicolas,

A slightly amusing bug here...

We have a customer whose last name is "Fields". He complained that his address contained the first line "Mr XXXX Custom fields".

I have tried this - I registered as a test user "Jim Fields", and the address has "Mr Jim Custom fields" as the first line. See the attachment.

Best regards,

John

- [ ![JimCustomFields.jpg](/forum/attachment/5018) ](/forum/attachment/5018 "...stomFields.jpg") [ ](/forum/attachment/5018?download=1 "...stomFields.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC81OTM3OS11c2VybmFtZS1maWVsZHMtY2F1c2VzLXByb2JsZW0/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86321
- Thank you received: 14279
-
-

14 years 3 months ago [\#59437](#59437) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Username "Fields" causes problem...](/forum/3-bug-report/59379-username-fields-causes-problem#59437 "Hi Nicolas,  A slightly amusing bug here...  We have a customer whose last name is &quot;Fields&quot;. He complained that his address contained the first line &quot;Mr XXXX Custom fields&quot;.  I have tried this - I registered as a test user &quot;Jim Fields&quot;, and the address has &quot;Mr Jim Custom fields&quot; as the first line. See the attachment.  Best regards,  John")*

Hi,

That's indeed a funny one ![:)](/media/kunena/emoticons/3.png ":)")

Add the code:
function show(&amp;$field,$value){
if($field-&gt;field_table=='address') return $value;
return $this-&gt;trans($value);
}

after the line:
class hikashopText extends hikashopItem{

in administrator/components/com_hikashop/classes/field.php and that will solve the problem.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC81OTM3OS11c2VybmFtZS1maWVsZHMtY2F1c2VzLXByb2JsZW0/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 30
- Thank you received: 0
-
-

14 years 3 months ago -  14 years 3 months ago [\#59521](#59521) by [jrm](/forum/user/7525-jrm "View jrm's Profile")  Replied by *[jrm](/forum/user/7525-jrm "View jrm's Profile")* on topic *[Re: Username "Fields" causes problem...](/forum/3-bug-report/59379-username-fields-causes-problem#59521 "Hi Nicolas,  A slightly amusing bug here...  We have a customer whose last name is &quot;Fields&quot;. He complained that his address contained the first line &quot;Mr XXXX Custom fields&quot;.  I have tried this - I registered as a test user &quot;Jim Fields&quot;, and the address has &quot;Mr Jim Custom fields&quot; as the first line. See the attachment.  Best regards,  John")*

Thanks, Nicholas.

Is that in the current build, now? I really want to update the whole program soon.

Best regards,

John

Last edit: 14 years 3 months ago by [jrm](/forum/user/7525-jrm "View jrm's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC81OTM3OS11c2VybmFtZS1maWVsZHMtY2F1c2VzLXByb2JsZW0/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86321
- Thank you received: 14279
-
-

14 years 3 months ago [\#59568](#59568) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Username "Fields" causes problem...](/forum/3-bug-report/59379-username-fields-causes-problem#59568 "Hi Nicolas,  A slightly amusing bug here...  We have a customer whose last name is &quot;Fields&quot;. He complained that his address contained the first line &quot;Mr XXXX Custom fields&quot;.  I have tried this - I registered as a test user &quot;Jim Fields&quot;, and the address has &quot;Mr Jim Custom fields&quot; as the first line. See the attachment.  Best regards,  John")*

It will be in next version of HikaShop in one or two weeks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC81OTM3OS11c2VybmFtZS1maWVsZHMtY2F1c2VzLXByb2JsZW0/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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.106 seconds

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

[](#top)
