#84 – Setting a field to required=No is not possible - why?

Posted in ‘ReqText VirtueMart Plugin’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Thursday, 05 November 2020 16:35 CET
Hi! When I set the field option 'Required' to 'No' in the product backend and save the product, 'Required' is 'Yes' again. In the custom field configuration 'Required' is set to 'Yes'. What is the problem? Kind regards, Gerald
Custom Fields
ReqText Plugin version 1.60
gmr-foto
Thursday, 05 November 2020 17:24 CET

Hmmm, seems like some strange behaviour. Thanks for reporting - I'll try to replicate the issue in our test environment and bugfix it for the public version 1.63 release.

 

Bug? That's not a bug, that's a feature. :-)

uwix
Thursday, 05 November 2020 17:56 CET
I would be very grateful for a workaround in the meantime, if that was possible. Thank you very much in advance!
gmr-foto
Monday, 09 November 2020 09:42 CET
Hi! We really need to go online. What about the temporary workaround?
gmr-foto
Monday, 09 November 2020 09:59 CET

As stated on every Support page we'll try to handle all support tickets within 48 hours, depending on the complexity. It has not been 48 hours, yet and we are working on a good working solution.

Because a workaround is only temporary and we want to prevent you from altering things once a final fix is released we prefer to implement a good solution.

So please have a little more patience and we'll send a personal working version to you by email.

Bug? That's not a bug, that's a feature. :-)

uwix
Monday, 09 November 2020 12:17 CET

A new version of the ReqText plugin is send to the email address registered to your account. This is the version which will be released today on our website.

It contains several updates and fixes including a fix for the problem described in this ticket.

 

Bug? That's not a bug, that's a feature. :-)

uwix
Wednesday, 11 November 2020 18:54 CET
Sorry for bothering you - installing version 1.63 is leading to a new problem: 1. I add one custom field set to 'Required' in the product backend. 2. I add another custom field set to 'Not required' in the product backend. 3. I add one more custom field set to 'Required' in the product backend. Now only the first of these three custom fields is required in front end on trying to add the product to the cart! BTW a little clarification: 87 hours without any answer by you to my previous post (November 5th) I dared to ask for the progress of the solution (November 9th) ;)
gmr-foto
Thursday, 12 November 2020 08:59 CET

This is strange issue - cannot seem to replicate the issue and should not happen. We'll test more intensively and if needed correct/rewrite the code for it.

Bug? That's not a bug, that's a feature. :-)

uwix
Thursday, 12 November 2020 13:20 CET
Thank you. Do you have enough information on how to reproduce that issue, or do you need more?
gmr-foto
Thursday, 12 November 2020 14:59 CET

Your description will do for now. Thanks.

Bug? That's not a bug, that's a feature. :-)

uwix
Friday, 13 November 2020 09:13 CET

When you check http://demo.uwix.nl, which has ReqText version 1.63 installed, we've setup the situation as described in your report:

  1. Set one custom field to required in the product backend.
  2. Set a second custom field to not required in the product backend.
  3. Set a third custom field to required in the product backend.

When adding the product to the cart; the first and third item report to be "required". We've tested it with several types of custom fields in random order but cannot seem to replicate your described issue.

What type of fields are you using - is it possible for you to let me know the exact field configuration and order for the product you're experiencing troubles with? Maybe it's just some type of strange field/config combination that triggers the issue.
Because of the many combination which are possible it might be better to try to duplicate your exact custom field settings :) Thanks.

Bug? That's not a bug, that's a feature. :-)

uwix
Friday, 13 November 2020 09:52 CET

p.s. it will take some time before our changes to the demo site are visible. This is because of the set reset rules for the demo pages ;)

Bug? That's not a bug, that's a feature. :-)

uwix
Friday, 13 November 2020 14:02 CET
Hi! Attached please find the screenshots of my settings: - Text settings.jpg - Select settings 1.jpg - Select settings 2.jpg - Product settings.jpg Is this, was you requested for?
gmr-foto
Friday, 13 November 2020 14:21 CET
Sorry - upload did not work ... I try it again:
gmr-foto
Friday, 13 November 2020 14:30 CET
Again sorry - here is the correct screen shot of select settings 2:
gmr-foto
Friday, 13 November 2020 19:23 CET

Noticed the same picutes indeed :) But, used the information to add it as new custom reqtext fields in a clean Joomla! and VirtueMart installation with sample data.

Everythings works fine in our environment: the middle field is not required and is not marked as such. The first and third custom fields get a nice "Required" tooltip and adding to the cart is not possible.

Last week I experienced an issue where code changes didn't make a difference in the front-end. No matter if I changed default VM settings of Custom field settings for the test product - nothing was showing up correctly. I removed the field(s) from the product and added them (after saving without any customfield) and all worked fine.
Some sort of caching I guess - didn't had time to look into it and I realize it isn't a very good solution. At first glance it does not seem related to a particuler plugin (ReqText or other custom field type).

As said; using the settings you've uploaded in the pictures work fine in our test case - similar like on our demo.uwix.nl site.

Bug? That's not a bug, that's a feature. :-)

uwix
Friday, 13 November 2020 21:53 CET
"I removed the field(s) from the product and added them (after saving without any customfield) and all worked fine." I will give that a try.
gmr-foto
Saturday, 14 November 2020 11:57 CET
Hi! I installed version 1.64 now. Then I cleared the cache in Joomla! backend. Now the required / not required settings do finally function. Thank you!
gmr-foto
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.
Support Availability

Working days: Monday to Friday. The is available 24 hours a day, 7 days a week but will only be answered during workings days according CET.
Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 48 hours. When we expect longer delays we will notify you when you file a ticket or reply.