- Posts: 431
- Thank you received: 19
Override namebox - Error
4 years 2 months ago #344175
by neo191987
Override namebox - Error was created by neo191987
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
if there is a way to change from this code that would be great
Code:
$namebox_options = array(
'mode' => $typeConfig['mode'],
'img_dir' => HIKAMARKET_IMAGES, //must be replaced
'map' => $map,
'min' => $shopConfig->get('namebox_search_min_length', 3)
);
if there is a way to change from this code that would be great
Code:
<?php
echo $this->nameboxType->display('data[product][categories]',$categories,hikamarketNameboxType::NAMEBOX_MULTIPLE,'category',array('delete'=>true,'sort'=>true,'root'=>$this->vendorCategories,'default_text'=>JText::_('HIKA_NONE')));
?>
Please Log in or Create an account to join the conversation.
4 years 2 months ago #344181
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Override namebox - Error
Hello,
What is your HikaMarket version number ?
How are you performing the override ?
Regards,
What is your HikaMarket version number ?
How are you performing the override ?
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
4 years 2 months ago - 4 years 2 months ago #344183
by neo191987
Replied by neo191987 on topic Override namebox - Error
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.
/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.
Please Log in or Create an account to join the conversation.
4 years 2 months ago #344202
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Override namebox - Error
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,
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 & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
4 years 2 months ago - 4 years 2 months ago #344204
by neo191987
Replied by neo191987 on topic Override namebox - Error
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.
The following user(s) said Thank You: Jerome
Please Log in or Create an account to join the conversation.
Moderators: Obsidev
Time to create page: 0.119 seconds