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

#   Override namebox - Error

##

- **[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")**
- [![neo191987's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35364.jpg)](/forum/user/35364-neo191987 "View neo191987's Profile") Topic Author
- [ Offline](/forum/user/35364-neo191987)

Less More

- Posts: 431
- Thank you received: 19
-
-

4 years 2 months ago [\#344175](#344175) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  *[Override namebox - Error](/forum/23-market-how-to/904912-override-namebox-error#344175 "Hello, I want to ask how I can fix the following problem. I override the file /administrator/components/com&#95;hikamarket/types/namebox.php but I get multiple errors like this: Class...")* was created by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")*

Hello, I want to ask how I can fix the following problem. I override the file /administrator/components/com_hikamarket/types/namebox.php but I get multiple errors like this: Class "hikamarketNameboxType" not found. All other overrides work fine any ideas how to fix it. I want to replace oTree image folder path by changing this code
Code:

$namebox_options = array( 'mode' =&gt; $typeConfig['mode'], 'img_dir' =&gt; HIKAMARKET_IMAGES, //must be replaced 'map' =&gt; $map, 'min' =&gt; $shopConfig-&gt;get('namebox_search_min_length', 3) );

if there is a way to change from this code that would be great
Code:

&lt;?php echo $this-&gt;nameboxType-&gt;display('data[product][categories]',$categories,hikamarketNameboxType::NAMEBOX_MULTIPLE,'category',array('delete'=&gt;true,'sort'=&gt;true,'root'=&gt;$this-&gt;vendorCategories,'default_text'=&gt;JText::_('HIKA_NONE'))); ?&gt;

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

4 years 2 months ago [\#344181](#344181) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Override namebox - Error](/forum/23-market-how-to/904912-override-namebox-error#344181 "Hello, I want to ask how I can fix the following problem. I override the file /administrator/components/com&#95;hikamarket/types/namebox.php but I get multiple errors like this: Class...")*

Hello,

What is your HikaMarket version number ?
How are you performing the override ?

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")**
- [![neo191987's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35364.jpg)](/forum/user/35364-neo191987 "View neo191987's Profile") Topic Author
- [ Offline](/forum/user/35364-neo191987)

Less More

- Posts: 431
- Thank you received: 19
-
-

4 years 2 months ago -  4 years 2 months ago [\#344183](#344183) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  Replied by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")* on topic *[Override namebox - Error](/forum/23-market-how-to/904912-override-namebox-error#344183 "Hello, I want to ask how I can fix the following problem. I override the file /administrator/components/com&#95;hikamarket/types/namebox.php but I get multiple errors like this: Class...")*

HikaMarket v4.0.0
/templates/template_name/html/com_hikamarket/administrator/types/namebox.override.php
the namebox.php file is renamed to namebox.override.php and class hikamarketNameboxType renamed to class hikamarketNameboxTypeOverride, without any other modifications.
When, for example, I want to add a product (HikaMarket Front-end) and not only there, it will display the above error.

Last edit: 4 years 2 months ago by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

4 years 2 months ago [\#344202](#344202) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Override namebox - Error](/forum/23-market-how-to/904912-override-namebox-error#344202 "Hello, I want to ask how I can fix the following problem. I override the file /administrator/components/com&#95;hikamarket/types/namebox.php but I get multiple errors like this: Class...")*

Hello,

Unfortunately, that is not how overrides should be done.
And it's not how the samples are provided by the support team (in old forum threads).

The issue you have is a coding issue and the error message is already giving you the needed elements to fix it.
Since the nature of your issue and the fact that you're HikaMarket licence is expired ; I'm afraid that I can't help you further.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")**
- [![neo191987's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35364.jpg)](/forum/user/35364-neo191987 "View neo191987's Profile") Topic Author
- [ Offline](/forum/user/35364-neo191987)

Less More

- Posts: 431
- Thank you received: 19
-
-

4 years 2 months ago -  4 years 2 months ago [\#344204](#344204) by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")  Replied by *[neo191987](/forum/user/35364-neo191987 "View neo191987's Profile")* on topic *[Override namebox - Error](/forum/23-market-how-to/904912-override-namebox-error#344204 "Hello, I want to ask how I can fix the following problem. I override the file /administrator/components/com&#95;hikamarket/types/namebox.php but I get multiple errors like this: Class...")*

Hi, thanks for the reply. I have found a solution to the problem. Of course, I will renew my licenses as soon as possible - I don't need a product that is not supported. I've made a few changes refining some of the code as described above and there are no issues, it's only this code that I'm having issues with that's why I'm contacting you as well. It might be some kind of incompatibility with Joomla 4 because I'm testing on it now. Check this issue though.

Last edit: 4 years 2 months ago by [neo191987](/forum/user/35364-neo191987 "View neo191987's Profile").

The following user(s) said Thank You: [Jerome](/forum/user/80-jerome "View Jerome's Profile")

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

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.069 seconds

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

[](#top)
