juanmanuelsanch
Forum Replies Created
-
Now its working as it should !
The translation to Spanish doesn’t help because… its not a good translation of the word.
Thanks !There should be an palceholder option (Escoge una opción) and then 2 valid options:
EscazúPinares
Maybe Im setting the placeholder wrong?- This reply was modified 9 months, 2 weeks ago by juanmanuelsanch.
Edit. I think I got it fixed. Could you please let me know?
Thanks !Yeah that seems to be the issue. Weird… I excluded the plugin in the settings and didn’t worked. But If I disable wprocket it will do the trick…
What would be a temp fix without disabling wprocket?
Best regards.
Juan Manuel Sánchez.
Sadly dosent seems to work ??
First of all thanks for the reply ! You need to click on the button that says reservar here is a pick
https://postimg.cc/1VKtbZtp
Once clicked you will get the form and you will see the SEDE list.This is what you will see which is hard to read
https://postimg.cc/w3zXvXNG
If I see the page logged as a admin then I can see the correct way
https://postimg.cc/hhCXBT1x
Any help is appreciateda
dd_filter( 'forminator_custom_form_mail_admin_message', 'wpmudev_show_formatted_date', 10, 5 ); function wpmudev_show_formatted_date( $message, $custom_form, $data, $entry, $cls ) { if ( $custom_form->id == 3344 ) { //Please change the form ID here preg_match_all('/\d{2}\/\d{2}\/\d{4}/', $message, $matches); foreach ( $matches as $date ) { if ( ! empty( $date ) ) { foreach ( $date as $key => $val ) { $date_formats = array( 'd/m/Y', 'Y-m-d', 'm-d-Y', 'd.m.Y' ); // Add more date formats if necessary $date_obj = null; foreach ( $date_formats as $format ) { $date_obj = DateTime::createFromFormat( $format, $val ); if ( $date_obj ) { break; } } if ( $date_obj ) { $timestamp = $date_obj->getTimestamp(); $locale = get_locale(); // Get the WordPress locale setlocale( LC_TIME, $locale ); // Set the locale to the WordPress locale $global_date = strftime( '%d/%B/%Y', $timestamp ); $message = str_replace( $val, $global_date, $message ) ; } } } } } return $message; }
with some help of GPT I got a code that works with several input formats and will give you the desired one. I would be nice to have all the available formats for the confirmation emails, so in case you are using a confirmation languages you can adapt to your needs.
This will work for me for now. Thanks !- This reply was modified 1 year, 10 months ago by juanmanuelsanch.
Hello Nithin ! Happy New Year !
Doesn’t work because the format Im using in the form is d/m/y so for example, that code will return for today 01/03/2023 (third of january 2023) which is 03/01/2023 in d/m/y format a result of 01/March/2023 because its depending on the formatted input instead of a global non formatted one.
Hope this helps and that it could be included as a feature in the future. Since date format can vary a lot depending on where you are located.
Best regards and have a great year.Thanks !
- This reply was modified 1 year, 10 months ago by juanmanuelsanch.
what css class do I have to modify to change the disabled dates?
that worked ! Thanks so much !
Hello ! First of happy christmas ! The code doesn’t work. I get the following date in the mail
Fecha: 01/Jan/1970
Thanks !Hi Kasia,
Thats true but none of the formats seems to write the date as I described it above as 02/December/2022
Thanks for the help
- This reply was modified 1 year, 11 months ago by juanmanuelsanch.
After “debugging” several times, it seems this is related to the position or scroll position you are at the page.
I really dont know how to fix because Im not a coder…. Any help or hint is appreciated
Thanks !Hello NNithin.
Yes the issue is in the form that goes when you click the “Reservar” button. The styles are not the ones I saved in the appearance option. They are overridden by the theme.
Also the calendar is off… If you click it it’s not next to the field it’s at the bottom of the form.
Any help is appreciated.
Best regards.
Juan mManuel Sánchez