Hide Custom Field Text In Admin

  • Posts: 385
  • Thank you received: 15
  • Hikashop Business
2 months 3 weeks ago #333939

-- HikaShop version -- : 4.4.3
-- Joomla version -- : 3.9.27

Hi

I have created a custom field in the table order to display some text on the front end of the site, additional information. It also shows in the admin on the order page. I have tried to set the display Back-end Form to no but upon saving it reverts back to yes. Is there a way to override this or an alternative to display the message on the front end?

Thanks

David

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 73703
  • Thank you received: 11298
  • MODERATOR
2 months 3 weeks ago #333961

Hi,

That option is indeed forced to yes for backward compatibility. However, that was made years ago and I don't think it's necessary anymore.
Change the line:
if(in_array($field->field_table, array('order', 'product'))) {
to:
if(in_array($field->field_table, array('product'))) {
in the file administrator/components/com_hikashop/classes/field.php and that should then work properly.

The following user(s) said Thank You: davec

Please Log in or Create an account to join the conversation.

  • Posts: 385
  • Thank you received: 15
  • Hikashop Business
2 months 3 weeks ago #333963

Hi Nicolas

thanks for the code change. I assume this will be addressed in the next update?

Thanks

David

Please Log in or Create an account to join the conversation.

  • Posts: 73703
  • Thank you received: 11298
  • MODERATOR
2 months 2 weeks ago #333965

Yes.

Please Log in or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum