Custom field 'display limited to' not affecting display

  • Posts: 198
  • Thank you received: 13
  • Hikashop Business
1 week 6 days ago #365594

-- HikaShop version -- : 5.1.3
-- Joomla version -- : 5.2.3
-- PHP version -- : 8.2.27
-- Browser(s) name and version -- : Firefox 134.0.2 (aarch64)
-- Error-message(debug-mod must be tuned on) -- : None

We've created a custom field in table product of type checkbox with 3 checkbox values - value_a, value_b, value_c. We set the display to back-end form (but we've also tried setting it to front-end also with no change to the issue).

We then created a custom field in table product of type custom text containing some html. We set the field display to front-end and back-end form. We set the 'display limited to' to the custom checkbox field and 'equal to' value_a checked.

(The plan was to also have additional custom text fields that display based on the checkbox field value_b being checked and another based on value_c being checked so that a product could have none, 1, 2 or all of the custom text fields displayed based on the checks for the checkbox field.)

But, regardless of the value(s), or lack there of, of the checkbox field, the custom text field always displays on the frontend.

In troubleshooting we also tried to instead create a custom boolean field and set the custom text field display limited to the custom boolean field value being 'yes'. Changing the boolean field value on a product also did not affect whether the custom text field displayed on the frontend. It always displayed whether the boolean was no or yes.


3by400, Inc.
3by400.com
Websites that Work, Marketing that Matters

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

  • Posts: 83303
  • Thank you received: 13467
  • MODERATOR
1 week 5 days ago #365599

Hi,

The "display limited to" setting is to make fields appear / disappear based on other fields on the form where the fields are being displayed.
So, for custom fields of the table "product", the "display limited to" setting is for the backend edit form, not the frontend product page where only the value of the fields is displayed.

In your case, I don't think you need several fields. You want just that first "product compliance" field with the checkboxes.
In the field's "field data" area, you have a column "value" and a column "title". In the "value" column, you can leave the name of the compliance, like you already have. In the "title" column, instead of the text, you can provide the HTML of an img tag. That way, the field will directly display the selected compliance images on the frontend.

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

Time to create page: 0.057 seconds
Powered by Kunena Forum