*

Vlad7

  • ****
  • 244 posts
Required fields when posting an ad
« on: June 25, 2022, 01:25:18 PM »
I found that in the theme settings the fields for mandatory filling are not amenable to settings. In particular, the Region and City fields are always a mandatory field, regardless of the settings, the phone field is not a mandatory field, even if it is specified as a mandatory field in the settings.

*

MB Themes

Re: Required fields when posting an ad
« Reply #1 on: June 30, 2022, 11:07:01 AM »
@Vlad7
In item-post.php find:
Code: [Select]
sPhone: {
change it to:
Code: [Select]
contactPhone: {
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Vlad7

  • ****
  • 244 posts
Re: Required fields when posting an ad
« Reply #2 on: July 01, 2022, 05:55:46 PM »
I changed as you wrote, but I didn't get the result. The phone number is still optional, despite the fact that the theme settings say to require a phone number when posting.

  <?php if(strpos($required_fields, 'phone') !== false) { ?>
        contactPhone: {
          required: true,
          minlength: 6
        },

*

MB Themes

Re: Required fields when posting an ad
« Reply #3 on: July 03, 2022, 09:46:05 AM »
There was one consequent bug when you used cascading locations selection.
Will be fixed soon in theme.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots