Add three or more conditions
-
Hello,
first of all I have to say that you have developed a great plugin. I’m trying to display three or more conditions. The user on my website should have the choice to chosse one of my products. Several products have differnet size formats and each format has a different price group. If the user chooses format A and wants to order 5 pieces there is a different price group as if the user chooses format B and 5 pieces. I hope you can understand what I’m trying to explain. All this conditions should be displayed in one contact form. Is this possible?
Thanks a lot.
Best regards
Mario
-
Hello,
anybody can help me or has an idea?
Thanks a lot.Best regards
Mariocan you set up a form with the groups and all, and then give me the conditions you would like to apply. It’s easier to understand the exact problem like that. Thanks!
-
This reply was modified 8 years ago by
Jules Colle.
Hello Jules,
first of all thanks a lot for your answer. Here is the form with the different conditions. Maybe it workes with nested groups but I don’t know how to configurate it.
<table>
<tr><td>W?hlen Sie Ihr gewünschtes Format*</td><td>[select* Material multiple” 2,50m x 2,00m” “3,00m x 2,00m]</td></tr><tr><td>Konfektionierung*</td><td>[checkbox* Konfektionierung use_label_element “ges?umt” “ge?st” “hohlsaum”]</td></tr>
<tr><td>Druckart*</td><td>[checkbox* Druckart use_label_element “UV-Druck” “Solvent”]</td></tr>
<tr><td>Stückpreise und Bestellmengen (Format 2,50m x 2,00m) – versandkostenfreie Lieferung nach Deutschland und ?sterreich (Lieferzeit ca. 4-8 Werktage)*</td><td> [select menu-229 include_blank “ab 1 Stück 66,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand” “ab 3 Stück 47,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand” “ab 5 Stück 42,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand” “ab 10 Stück 39,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand” “ab 15 Stück 37,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand” “ab 30 Stück 33,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand” “ab 45 Stück 31,50 €/Stk zzgl. der gesetzlichen MwSt. und Versand” “ab 60 Stück 30,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand” “ab 75 Stück 29,50 €/Stk zzgl. der gesetzlichen MwSt. und Versand” “ab 90 Stück 29,25 €/Stk zzgl. der gesetzlichen MwSt. und Versand” “ab 105 Stück 29,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand” “ab 150 Stück 28,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand” “H?here Stückzahlen auf Anfrage”]</td></tr>
<tr><td>Gesamtpreis (2,50m x 2,00m) </td><td>[group Preis1]66,00 €[/group][group Preis2] 141,00 €[/group][group Preis3] 210,00 €[/group] [group Preis4] 390,00 €[/group][group Preis5] 550,00 €[/group][group Preis6] 990,00 €[/group][group Preis7] 1417,50 €[/group][group Preis8] 1800,00 €[/group][group Preis9] 2212,50 €[/group][group Preis10] 2632,50 €[/group][group Preis11] 3045,00 €[/group][group Preis12]4200,00 €[/group] [group Preis13] Auf Anfrage[/group] </td></tr>
<tr><td>Stückpreise und Bestellmengen (Format 3,00m x 2,00m) – versandkostenfreie Lieferung nach Deutschland und ?sterreich (Lieferzeit ca. 4-8 Werktage)*</td><td> [select menu-229 include_blank “ab 1 Stück 69,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand” “ab 3 Stück 49,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand” “ab 5 Stück 46,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand” “ab 10 Stück 41,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand” “ab 15 Stück 39,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand” “ab 30 Stück 35,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand” “ab 45 Stück 33,50 €/Stk zzgl. der gesetzlichen MwSt. und Versand” “ab 60 Stück 32,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand” “ab 75 Stück 30,50 €/Stk zzgl. der gesetzlichen MwSt. und Versand” “ab 90 Stück 29,90€/Stk zzgl. der gesetzlichen MwSt. und Versand” “ab 105 Stück 29,50€/Stk zzgl. der gesetzlichen MwSt. und Versand” “ab 150 Stück 29,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand” “H?here Stückzahlen auf Anfrage”]</td></tr>
<tr><td>Gesamtpreis (3,00m x 2,00m) </td><td>[group Preis1]69,00 €[/group][group Preis2] 178,00 €[/group][group Preis3] 225,00 €[/group] [group Preis4] 390,00 €[/group][group Preis5] 550,00 €[/group][group Preis6] 990,00 €[/group][group Preis7] 1417,50 €[/group][group Preis8] 1800,00 €[/group][group Preis9] 2212,50 €[/group][group Preis10] 2632,50 €[/group][group Preis11] 3100,00 €[/group][group Preis12]4200,00 €[/group] [group Preis13] Auf Anfrage[/group] </td></tr>
</table>
The User should have to choose 2 differnt formats. Format 2,50m x 2,00 m or 3,00m x 2,00m. After choosing the format the user can choose the amount of products, for example “ab 3 Stück 47,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand”. Every format has a different price of unit. If the user chooses “ab 3 Stück 47,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand” of format 2,50m x 2,00 m there should be displayed in the next row the hole price. In this example it would be 210 €.
I hope you can help. Thanks a lot.
Best regards
MarioHello Jules,
I just wanted to ask if you could figer out my problem.
Thanks a lot.
Best regards
Mario
hey, first of all, you need to have unique names for all your fields and groups. You copied the menu-299, Preis1, Preis2, Preis3, .. without renaming them. So the first thing you need to make sure is that your group names and field names are all unique. So rename them to Preis-1-1, Preis-1-2, Preis-1-3, … and Preis-2-1, Preis-2-2, Preis2-3, … and rename the second drop down to menu-230. Then you can declare the conditions, like so:
if [menu-229] equals "ab 1 Stück 66,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand" then show [Preis-1-1] if [menu-229] equals "ab 3 Stück 47,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand" then show [Preis-1-2] if [menu-229] equals "ab 5 Stück 42,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand" then show [Preis-1-3] if [menu-229] equals "ab 10 Stück 39,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand" then show [Preis-1-4] if [menu-229] equals "ab 15 Stück 37,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand" then show [Preis-1-5] if [menu-229] equals "ab 30 Stück 33,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand" then show [Preis-1-6] if [menu-229] equals "ab 45 Stück 31,50 €/Stk zzgl. der gesetzlichen MwSt. und Versand" then show [Preis-1-7] if [menu-229] equals "ab 60 Stück 30,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand" then show [Preis-1-8] if [menu-229] equals "ab 75 Stück 29,50 €/Stk zzgl. der gesetzlichen MwSt. und Versand" then show [Preis-1-9] if [menu-229] equals "ab 90 Stück 29,25 €/Stk zzgl. der gesetzlichen MwSt. und Versand" then show [Preis-1-10] if [menu-229] equals "ab 105 Stück 29,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand" then show [Preis-1-11] if [menu-229] equals "ab 150 Stück 28,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand" then show [Preis-1-12] if [menu-229] equals "H?here Stückzahlen auf Anfrage" then show [Preis-1-13] if [menu-230] equals "ab 5 Stück 46,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand" then show [Preis-2-1] if [menu-230] equals "ab 3 Stück 49,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand" then show [Preis-2-2] if [menu-230] equals "ab 5 Stück 46,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand" then show [Preis-2-3] if [menu-230] equals "ab 10 Stück 41,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand" then show [Preis-2-4] if [menu-230] equals "ab 15 Stück 39,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand" then show [Preis-2-5] if [menu-230] equals "ab 30 Stück 35,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand" then show [Preis-2-6] if [menu-230] equals "ab 45 Stück 33,50 €/Stk zzgl. der gesetzlichen MwSt. und Versand" then show [Preis-2-7] if [menu-230] equals "ab 60 Stück 32,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand" then show [Preis-2-8] if [menu-230] equals "ab 75 Stück 30,50 €/Stk zzgl. der gesetzlichen MwSt. und Versand" then show [Preis-2-9] if [menu-230] equals "ab 90 Stück 29,90€/Stk zzgl. der gesetzlichen MwSt. und Versand" then show [Preis-2-10] if [menu-230] equals "ab 105 Stück 29,50€/Stk zzgl. der gesetzlichen MwSt. und Versand" then show [Preis-2-11] if [menu-230] equals "ab 150 Stück 29,00 €/Stk zzgl. der gesetzlichen MwSt. und Versand" then show [Preis-2-12] if [menu-230] equals "H?here Stückzahlen auf Anfrage" then show [Preis-2-13]
Here’s the full working example: https://bdwm.be/wpcf7cf/mariocirio1986/
Hello Jules,
thanks a lot for your help. The problem is now, that the first field <tr><td>W?hlen Sie Ihr gewünschtes Format*</td><td>[select* format”2,50m x 2,00m” “3,00m x 2,00m]</td></tr> is no longer available and does not work. Is it possible to configurate it like this: When the user chooses the format “2,50m x 2,00m” for example then only appear the fields with the prices of this format?I want to donate something for your plugin. Is it possible?
Best regards
MarioHey Mario,
the code is invalid, instead of
[select* format"2,50m x 2,00m" "3,00m x 2,00m]
it should read
[select* format "2,50m x 2,00m" "3,00m x 2,00m"]
PS, you can always make a donation to https://www.paypal.me/JulesColle
or, another great way to support me might be to purchase the Pro version of my other plugin if you like it: https://bdwm.be/rgg/responsive-gallery-grid-pro/
Hello Jules,
thanks a lot. I will donate something for sure. One last question: is it possible to hide some fields? This means, it should depend on which format the user chooses. If the user chooses “2,50 x 2,00” that only appear the prices for this format. Do you know what i mean?
Thanks a lot.
Best regards
MarioHey Mario,
I have updated the form: https://bdwm.be/wpcf7cf/mariocirio1986/
What I did was surround the 2 form parts with group tags and new tables:
<table> ... [select* Material multiple "2,50m x 2,00m" "3,00m x 2,00m"] ... </table> [group group-250]<table> (2,50m x 2,00m stuff here) </table>[/group] [group group-300]<table> (3,00m x 2,00m stuff here) </table>[/group]
And then I added these 2 conditions:
if [Material] equals "3,00m x 2,00m" then show [group-300] if [Material] equals "2,50m x 2,00m" then show [group-250]
Hope it’s all clear.
-
This reply was modified 8 years ago by
Jules Colle.
-
This reply was modified 8 years ago by
- The topic ‘Add three or more conditions’ is closed to new replies.