Maurizio Melandri
Forum Replies Created
-
Hi, I have the same problem with previous versions and last version 3.7.7
Forum: Plugins
In reply to: [Loco Translate] Strings from Javascript not translatedHi Tim,
thank you so much for the support.The following code works:
`wp_enqueue_script( ‘auteciot-script-functions’, plugins_url( ‘frontend/js/functions.js’, dirname( __FILE__ )), array ( ‘wp-i18n’, ‘jquery’ ), ‘1.0.0’);
wp_set_script_translations( ‘auteciot-script-functions’, ‘auteciot’, plugin_dir_path( dirname(__FILE__) ) . ‘languages/’);’Forum: Plugins
In reply to: [Loco Translate] Strings from Javascript not translatedHi Tim, Thanks for the reply.
wp_set_script_translations function is not in a file at the MyPlugin’s root level, and with your suggestion
plugin_dir_path(__FILE__)
I have a relative path to the current file but withplugin_dir_path( dirname(__FILE__) )
I retrieve the parent folder path.In the HTML source there is no JSON content. Related to wp-i18n there is only this code:
<script id='wp-i18n-js-after'> wp.i18n.setLocaleData( { 'text direction\u0004ltr': [ 'ltr' ] } ); </script>
Forum: Plugins
In reply to: [Loco Translate] Strings from Javascript not translatedHi Tim, thanks for reply.
I don’t see the .json file as a resource loaded by the browser. How can I check exactly if the js objects are correctly loaded?
I send you the scripts used in the plugin:
<?php /* Plugin Name: My Plugin ... Text Domain: auteciot Domain Path: /languages */
add_action( 'init', 'mmelandri_plugin_load_text_domain' ); function mmelandri_plugin_load_text_domain() { load_plugin_textdomain( 'auteciot', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); }
function mmelandri_wp_enqueue_scripts() { wp_enqueue_script( 'auteciot-script-functions', plugins_url( '../frontend/js/functions.js', ( __FILE__ )), array ( 'wp-i18n', 'jquery' ), '1.0.0'); } add_action( 'wp_enqueue_scripts', 'mmelandri_wp_enqueue_scripts' ); function mmelandri_wp_load_text_domain() { wp_set_script_translations( 'auteciot-script-functions', 'auteciot', plugin_dir_path( dirname(__FILE__) ) . 'languages/'); } add_action( 'wp_enqueue_scripts', 'mmelandri_wp_load_text_domain', 100 );
In /plugins/auteciot/functions.js:
const { __, _x, _n, sprintf } = wp.i18n; console.log(__('Il campo \'%s\' deve contenere %s caratteri.', 'auteciot'), 'A', '99'); console.log(sprintf(__('Il campo \'%s\' deve contenere %s caratteri.', 'auteciot'), 'A', '99'));
In auteciot-en_US.po:
#: frontend/js/functions.js:49 #, javascript-format msgid "Il campo '%s' deve contenere %s caratteri." msgstr "The field '%s' must contain %s characters."
In plugins/auteciot/auteciot-en_US-78aae6d73b1bd2d0505f0d1ffcd6bc85.json:
{"translation-revision-date":"2021-05-31 13:18+0000","generator":"Loco https:\/\/localise.biz\/","source":"frontend\/js\/functions.js","domain":"auteciot","locale_data":{"auteciot":{"":{"domain":"auteciot","lang":"en_US","plural-forms":"nplurals=2; plural=n != 1;"},"Il campo '%s' deve contenere %s caratteri.":["The field '%s' must contain %s characters."],"Il campo '%s' deve contenere da %s a %s caratteri.":["The field '%s' must contain %s to %s characters."]}}}
I tried with both the ‘Pretty Formatting’ setting toggle.
Hi, examining the plugin code, at the moment I solved it by inserting the following code in my functions.php file
remove_action( 'woocommerce_thankyou', 'user_verification_woocommerce_thankyou');
Maybe there is some problem in ‘uv_wc_redirect_after_payment’ option and the function make redirect to your default value wc_get_page_id (‘myaccount’)?
Thanks for support,
MaurizioHi, after updating the plugin to 1.0.51 and woocommerce to 4.6.0 the problem persist.
Thanks
Hi, I tried with the version downloaded from GitHub but the redirect problem is still present.
Hi, I have the same problem even after installing version 1.0.39. After a purchase I get a 302 redirect in response to /checkout/order-received/10758/?Key=wc_order_ruBqI7EGNnA6C and I am redirected to the my-account page with the parameter /?Uv_check=true
Thanks
Hi Jules,
thanks for reply.I’ll try whithout Material Design plugin.
Hi Jules,
this is the code of the form:
– based on “your-master” I show different group
– I have a lot of hiddend data used in email
– I have some empty group used in email to show different informations[md-form] [md-raw] <h2>Scegli il tuo Master</h2> [/md-raw] [md-radio] [radio your-master default:1 "ONLINE > Master 1" "ONLINE +Live Factory > Master 1" "ONLINE > Master 2" "IN AULA > Master 1" "IN AULA > Master 2" "IN AULA > Master 3" "IN AULA > Master 4"] [/md-radio] [group group-plus] [md-raw] <p><strong>Ora a € 99,00</strong> anzichè € <del>200,00</del> (iva esc.)</p> [/md-raw] [md-select label="Scegli la città e la data"] [select your-data-plus default:1 "BRUXELLES GIUGNO 2020" "ROMA OTTOBRE 2020"] [/md-select] [/group] [group group-plus-online] [md-raw] <p><strong>Ora a € 99,00</strong> anzichè € <del>200,00</del> (iva esc.)</p> [/md-raw] START 26 MAGGIO 2020 [/group] [group group-plus-online-factory] [md-raw] <p><strong>Ora a € 99,00</strong> anzichè € <del>200,00</del> (iva esc.)</p> [/md-raw] Formazione Online +Live Factory. START 26 MAGGIO 2020 [/group] [group group-plus-online-update] [md-raw] <p><strong>Ora a € 99,00</strong> anzichè € <del>200,00</del> (iva esc.)</p> [/md-raw] START 26 MAGGIO 2020 [/group] [group group-plus-special] [md-raw] <p><strong>Ora a € 99,00</strong> anzichè € <del>200,00</del> (iva esc.)</p> [/md-raw] [md-select label="Scegli la città e la data"] [select your-data-plus-special default:1 "BRUXELLES GIUGNO 2020" "ROMA OTTOBRE 2020"] [/md-select] [/group] [group group-rendicontazione] [md-raw] <p><strong>Ora a € 467,00</strong> anzichè <del>€ 687,00</del> (iva esc.)</p> [/md-raw] [md-select label="Scegli la città e la data"] [select your-data-rendicontazione default:1 "BRUXELLES GIUGNO 2020" "ROMA OTTOBRE 2020"] [/md-select] [/group] [group group-media-strategy] [md-raw] <p><strong>Ora a € 697,00</strong> anzichè <del>€ 1100,00</del> (iva esc.)</p> [/md-raw] [md-select label="Scegli la città e la data"] [select your-data-media-strategy default:1 "BRUXELLES GIUGNO 2020" "ROMA OTTOBRE 2020"] [/md-select] [/group] [md-raw] <h2>Inserisci i tuoi dati</h2> [/md-raw] [md-radio label="Tipo di registrazione (Procedi pure con nome e cognome soltanto: i dati fiscali potrai comunicarli successivamente)"] [radio your-tiporegistrazione default:1 "Privato" "Azienda"] [/md-radio] [group group-azienda][/group][group group-privato][/group] [md-text label="Nome" tabletwidth="4" desktopwidth="6"] [text* your-nome] [/md-text] [md-text label="Cognome" tabletwidth="4" desktopwidth="6"] [text* your-cognome] [/md-text] [md-text label="Email"] [email* your-email] [/md-text] [md-text label="Cellulare"] [tel* your-telefono] [/md-text] [group group-pagamento-standard][md-radio label="Metodo di pagamento"] [radio your-pagamento default:1 "Iscriviti adesso pagando solo 99 € I Rata" "Paga subito" "Paga in seguito offline"] [/md-radio][/group] [group group-99][/group][group group-no99][/group][group group-subito][/group][group group-offline][/group] [hidden your-prezzo-plus "€ 99,00"] [hidden your-prezzo-special "€ 99,00"] [hidden your-prezzo-plus-online "€ 99,00"] [hidden your-prezzo-plus-online-factory "€ 99,00"] [hidden your-prezzo-plus-online-update "€ 99,00"] [hidden your-prezzo-rendicontazione "€ 99,00"] [hidden your-prezzo-media-strategy "€ 99,00"] [hidden your-prezzo-iva-plus "€ 119,79"] [hidden your-prezzo-iva-special "€ 119,79"] [hidden your-prezzo-iva-plus-online "€ 119,79"] [hidden your-prezzo-iva-plus-online-factory "€ 119,79"] [hidden your-prezzo-iva-plus-online-update "€ 119,79"] [hidden your-prezzo-iva-rendicontazione "€ 119,79"] [hidden your-prezzo-iva-media-strategy "€ 119,79"] [hidden your-prezzo-plus-btn "/paypal/99"] [hidden your-prezzo-special-btn "/paypal/99"] [hidden your-prezzo-plus-online-btn "/paypal/564"] [hidden your-prezzo-plus-online-factory-btn "/paypal/99"] [hidden your-prezzo-plus-online-update-btn "/paypal/99"] [hidden your-prezzo-rendicontazione-btn "/paypal/99"] [hidden your-prezzo-media-strategy-btn "/paypal/99"] [hidden your-prezzo-plus-btn-iva "/paypal/99+"] [hidden your-prezzo-special-btn-iva "/paypal/99+"] [hidden your-prezzo-plus-online-btn-iva "/paypal/99+"] [hidden your-prezzo-plus-online-factory-btn-iva "/paypal/99+"] [hidden your-prezzo-plus-online-update-btn-iva "/paypal/99+"] [hidden your-prezzo-rendicontazione-btn-iva "/paypal/99+"] [hidden your-prezzo-media-strategy-btn-iva "/paypal/99+"] [md-accept] <label>[acceptance accettazione-privacy] Cliccando INVIA ADESSO, dichiari di aver letto e accettato le <a class="popmake-terms-and-conditions footerbar-links" style="color:black !important;">Terms and conditions</a> *.[/acceptance]</label> [/md-accept] Riceverai via email la Conferma di iscrizione e le modalità per procedere con il pagamento. [md-submit] [submit "Invia adesso"] [/md-submit] <p><small><strong>*</strong> Campo obbligatorio</small></p> [/md-form]
Hi Jules,
Thanks for the quick response. Its just the fact that I am unable at the moment to establish the error conditions that generate the problem. About 95% of emails are correct while 5% are not.The main question is whether there is any particular event or condition that I should better check out and which, in general, could cause logical conditions to fail.
Thank you,
MaurizioForum: Plugins
In reply to: [Redirection for Contact Form 7] Pass specific field not works in SafariHi, I have tried the plugin conflicts and the problem is with “MultiLine files for Contact Form 7” https://it.www.ads-software.com/plugins/multiline-files-for-contact-form-7/
I replaced the plugin with another one.
Forum: Plugins
In reply to: [Redirection for Contact Form 7] Pass specific field not works in SafariHi, thank for reply. I’m using the latest version (1.3.1).
After deactivating some plugins I think that the problem is that CF7 reload the page after submit; I found several topics but I can’t fix it:
https://www.ads-software.com/support/topic/when-submitting-a-form-it-reloads-the-page-completly-in-safari/
https://www.ads-software.com/support/topic/contact-form-7-not-working-on-safari-browser/Just a question: If CF7 reloads always the page (i.e. in Safari), can your plugin pass a parameter?
Hi,
thanks for that great plugin!Is there a workaround to support Conditional fields?
Thank you
Forum: Plugins
In reply to: [WP Email Users] Sending to role not workingHi, thank for reply.
In my case I have some custom roles (i.e. “Member Premium” is the display name, and “member_level_10” is the role name) and the selection of the custom roles doesn’t work (emails are not sent).
I changed the file “wp-sens-mail.php” where there is the the foreach for the the select with id=”wau_role” and now it works for me.
This is the code:
foreach ($roles as $key => $value) { echo '<option value="'.$key.'"> '.$value.' </option>'; }