Custom Field Validation Issue

  • Posts: 139
  • Thank you received: 9
  • Hikaserial Standard Hikashop Business
5 days 3 hours ago #370907

-- HikaShop version -- : 6.4.0
-- Joomla version -- : 5.4.3
-- PHP version -- : 8.2.30
-- Browser(s) name and version -- : Firefox 148.0.2

I just updated our site to Business 6.4.0 from 6.1.0. I have a custom field that is required, but no regex was specified. With 6.1.0, the customer could put any text in the box and it would be accepted. With 6.4.0, no matter what the customer puts in the box, it shows the custom error message. I did try several regular expressions and all still resulted in the custom error message. I've had to make it non-required for now.

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

  • Posts: 139
  • Thank you received: 9
  • Hikaserial Standard Hikashop Business
5 days 1 hour ago #370909

Can I just reinstall 6.1.0 over 6.4.0?

I also found that variants are not working properly. There's two choices, one that add $5 and the other that doesn't. When selecting the option with no added cost and then adding the product to the shopping cart, what shows up in the cart is with the $5 extra option.

Also, I can't say that I like the backend changes.

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

  • Posts: 85323
  • Thank you received: 13937
  • MODERATOR
4 days 15 hours ago #370908

Hi,

Thank you for the report. We tested a required text field with no regex on our test site with HikaShop 6.4.0 and the validation works correctly. The field accepts any text input without showing the error message.

Since you upgraded from 6.1.0 to 6.4.0, could you check if you have a view override for the product page? In 6.4.0, the product page form structure was changed, and old view overrides can cause issues with field validation.

Please check if you have any of these files in your Joomla template folder:
- `templates/{your_template}/html/com_hikashop/product/show.php`
- `templates/{your_template}/html/com_hikashop/product/show_default.php`
- `templates/{your_template}/html/com_hikashop/product/show_block_custom_item.php`

If any of these exist, try renaming the folder `templates/{your_template}/html/com_hikashop/product/` to `product_backup/` temporarily and test again. If the validation then works correctly, you'll need to update your view overrides to be compatible with the 6.4.0 form structure. You can compare your overrides with the original files using the Display > Views page in HikaShop's backend.

The issue with the variants is most likely the same origin.

You sure can downgrade if you want by installing the 6.1.0 package.

Regarding the backend changes, what do you no like ? It's not like we've changed everything between the 6.1.0 and the 6.4.0 in the backend, so I'm surprised. Could you maybe point at the issues you have with the backend before downgrading ?

Last edit: 4 days 18 hours ago by nicolas.
The following user(s) said Thank You: oxido

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

  • Posts: 139
  • Thank you received: 9
  • Hikaserial Standard Hikashop Business
3 days 17 hours ago #370920

It was an override issue. Not even sure why the site had any overrides. The custom field validation is now working.

With variants, I needed to define a price for each. With 6.1.0, it would use the product price for any that didn't have a variant price.

6.4.0 Backend Issues:
+ The filtering options on the Orders page are stacked. They used to be in line, taking up less vertical space. See screenshot.
+ Can the page layout features be disabled, like when editing a product? Even when I deactivate form customization, I still see some of those layout controls. I find that all to be visual clutter for normal use.
+ On the products page, the Description section flashes on and off. However, I was noticing that with 6.1.0. If I toggle to the editor, it goes right back to the normal view.

On a different note, on the Orders page, can it remember the "Display #" selection? I often find that I need to see more than 20 orders, but as soon as I log back in, it is back to 20.

Attachments:

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

  • Posts: 85323
  • Thank you received: 13937
  • MODERATOR
2 days 17 hours ago #370924

Hi,

Check the "backend CSS" setting under the Display tab of the HikaShop configuration.
What you describe indicates that you're using an old version of that CSS, not the default one and thus you're missing the new CSS we've added for the filters, and the form customization.
Regarding the flashing description, I'm not sure what you mean as I don't think I've seen this problem. I would need more details on the problem.

Regarding the default number of elements, it depends on the main setting of the Joomla configuration. So I would recommend increasing it there.

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

  • Posts: 139
  • Thank you received: 9
  • Hikaserial Standard Hikashop Business
2 days 8 hours ago #370946

I switched to default backend CSS. That improved it somewhat, but it's not all inline. See screenshot. That did clean up most of the visual clutter I was seeing when editing a product.

As for the flashing, it still exists with the default backend CSS. That area literally flashes. I cannot toggle the editor nor resize the box. See video clip

I was able to find how to change the number of records shown via the Joomla config. I must have missed that when I looked before.

Attachments:

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

  • Posts: 85323
  • Thank you received: 13937
  • MODERATOR
2 days 2 hours ago #370953

Hi,

I'm not sure what it could be.
We might have to directly look into it.
First thing would be to click on the "disable form customization" button at the bottom of the product edit form and save. Then, see if you still have the issue.
You can provide a backend access via our contact form so that we can look deeper into the issue.

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

  • Posts: 139
  • Thank you received: 9
  • Hikaserial Standard Hikashop Business
2 days 1 hour ago #370956

That was with the form customization disabled.

I'll provide the backend access.

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

  • Posts: 85323
  • Thank you received: 13937
  • MODERATOR
1 day 17 hours ago #370958

Hi,

Regarding the description field flickering in Firefox, we've investigated and this is a confirmed Joomla bug, not a HikaShop issue. It affects all TinyMCE editors in Firefox, including when editing Joomla articles.

The bug is in Joomla's TinyMCE integration code (`media/plg_editors_tinymce/js/tinymce.js`). An iframe `load` event listener that reinitializes TinyMCE creates an infinite loop in Firefox where each reinitialization triggers a new `load` event.

This was fixed in Joomla 5.4.4 via this pull request: github.com/joomla/joomla-cms/pull/46889

Since you are on Joomla 5.4.3, you have two options:

1. Update Joomla to 5.4.4 or later.
2. Apply the community hotfix available here: github.com/brianteeman/tinymce-firefoxfix/releases . These are drop-in replacement files for `media/plg_editors_tinymce/js/tinymce.js` and `tinymce.min.js`.

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

  • Posts: 139
  • Thank you received: 9
  • Hikaserial Standard Hikashop Business
1 day 9 hours ago #370970

I applied the hotfix, since there is no version 5.4.4. Flashing problem is now resolved.

The following user(s) said Thank You: nicolas

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

Time to create page: 0.076 seconds
Powered by Kunena Forum