ceralis
Forum Replies Created
-
Hello
It’s OK for variable products
And it does seem complicated for grouped products… I think I’ll leave it as it isThanks for your help
Thank you very much it works
A similar problem with bundled products.
Example: https://www.dusensauxchoses.com/produits/pichets-gres-anciens-pierrot/
The crossed out product appears on each single product but not for the grouped product.
We have 14€-24€ and it should be the crossed out product and we should display 8.4€-14.40€.
Is this possible?
For example :
https://www.dusensauxchoses.com/produits/vase-ceramique-scheurich-n01-n02/
Ceramic vase, Scheurich
95,00 € 66,50 € – 95,00 €There are two variations at €95
We should therefore simply display the price crossed out at 95€ and the new price at 66.50€.https://www.dusensauxchoses.com/produits/miroir-rotin-vintage-marty/
Vintage rattan mirror, Marty
59,00 € – 69,00 € 41,30 € – 69,00 €There is one variation at 69€ and one at 59€.
It should show 59€-69€ in crossed out price and 41.30€ and 48.30e in normal priceHello
Thanks for your feedback, I’ve just modified it but the alert message still doesn’t appear.
Hello
I understand
Is it possible to get a paid version?
I think I have solved the problem by deleting the field and adding a new one with the same format
Thank you for your feedback
`Hello
I tried the modification with the only difference I could see:
add_filter(‘forminator_form_submit_errors’, ‘my_custom_form_validation’, 10, 3);
add_filter(‘forminator_custom_form_submit_errors’, ‘my_custom_form_validation’, 10, 3);Concerning this line I did not change anything because it is not the same calculation I need
// Custom error if ID already submited
if($num1 + $num2 > 6){
// Custom error if ID already submited
if($num1 + $num2 + $num3!= 6 && $num4>0){I think that the concern can come from this custumisation seen together?
https://www.ads-software.com/support/topic/condition-on-the-result-of-a-calculation/
Hello
Sorry for the request, the concern comes from me and a bad setting of the email address and an error on the form
Forum: Plugins
In reply to: [Before + After Images for Divi] Dont work with wordpress 5.6Thank you @flu5ky
I am going to watch because sensei does not currently work with wordpress 5.6
The developer is looking for a solution
Forum: Plugins
In reply to: [Before + After Images for Divi] Dont work with wordpress 5.6I found the solution !
If no value is entered, forminator considers the field to be zero
When I put different it was therefore 0 + 0 + 0 and so it was different from 6
So I added an additional condition (see the code) on the fact that the choice of the package is greater than zero
Thank you again and happy to use this plugin for my different websites
<?php /** * Create a custom error message */ add_filter('forminator_custom_form_submit_errors', 'my_custom_form_validation', 10, 3); function my_custom_form_validation($submit_errors, $form_id, $field_data_array) { // Skip if is not the correct form if((int)$form_id !== 235465){ return; } $num1 = (int) $_POST['number-6']; $num2 = (int) $_POST['number-7']; $num3 = (int) $_POST['number-5']; $num4 = (int) $_POST['number-4']; $num9 = (int) $_POST['number-9']; $num10 = (int) $_POST['number-10']; $num11 = (int) $_POST['number-11']; $num12 = (int) $_POST['number-12']; // Custom error if ID already submited if($num1 + $num2 + $num3!= 6 && $num4>0){ $submit_errors[][ 'number-6'] = __( 'Le total doit être égal à 6Kg, Merci de modifier vos quantités' ); $submit_errors[][ 'number-7'] = __( 'Le total doit être égal à 6Kg, Merci de modifier vos quantités' ); $submit_errors[][ 'number-5'] = __( 'Le total doit être égal à 6Kg, Merci de modifier vos quantités' ); } // Custom error if ID already submited if($num10 + $num11 + $num12!= 6 && $num9>0){ $submit_errors[][ 'number-10'] = __( 'Le total doit être égal à 6Kg, Merci de modifier vos quantités' ); $submit_errors[][ 'number-11'] = __( 'Le total doit être égal à 6Kg, Merci de modifier vos quantités' ); $submit_errors[][ 'number-12'] = __( 'Le total doit être égal à 6Kg, Merci de modifier vos quantités' ); } // Always return $submit_errors return $submit_errors; }
And with “> 6” instead of “<>” the form is replaced by the fields in error
So your code works fine, but how do you get a condition that the sum must be 6?
Hello
The fact that it blocks me to grab my kg even if I do not choose the collis is due to the faity that I put “<>” instead of “> 6”.
But my sum must be 6, no more no less
Thank you for your help