hskokanek
Forum Replies Created
-
Forum: Plugins
In reply to: [Change Prices with Time for WooCommerce] time dependent product variationThanks fro the answer Igor – it is not, however, answering the possibility to change the price based on time (like from 8pm to 8am for example = overnight). Thx
Forum: Plugins
In reply to: [WPS Hide Login] Woocommerce security holeHia – not really – the Login is done through the page front end, so the previous still applies.
Not criticising your PlugIn. It does, what it does. Just, if this is not the intention, it should be made obvious to the users, as most people will not even notice this security “flaw”.
Thx Nicolas.
Forum: Plugins
In reply to: [WPS Hide Login] Woocommerce security holethe same thing I have asked. no response. what is the alternative – any ideas?
https://www.ads-software.com/support/topic/hide-url-for-user-roles/
Forum: Plugins
In reply to: [Calculated Fields Form] Display conditional text in calculationThanks a lot for this. It is extremely helpful.
One more thing I cannot figure out – how do you prevent the form from being sent/page reloaded upon hitting Enter/Return for example after filling in the first Number field.
The calculates all in real time, so there is no need to submit the form and most of the user will press Enter/Return in order to move onto the next field, which, however, causes the entire form to reload (= poor user experience :/)
Thanks – I am sure this will be somewhere in settings, but I cannot locate that.
BR,
H.Forum: Plugins
In reply to: [Calculated Fields Form] Display conditional text in calculationOK this is really cool!. In order to be able to style the values separately, I have split this using two Summary fields and the code:
(function(){ var result = ROUND(fieldname2*fieldname3), text = jQuery('[id="'+getField(3).name+'"] option:selected').text(); switch(text){ case 'Ibuprofen': return 'maximálně v?ak 3 dávky denně po 8mi hodinách'; case 'Nurofen': return 'maximálně v?ak 3 dávky denně po 8mi hodinách'; case 'Panadol': return 'maximálně v?ak 4 dávky denně po 6ti hodinách'; case 'Paralen': return 'maximálně v?ak 4 dávky denně po 6ti hodinách'; } })()
Though the ‘var result’ function is now unnecessary probably (but code will not work without it).
Is it possible to build the fields to be next to each other (ie. as in two columns) in the form builder?
BTW – if the custom CSS through the Customize Form Design is being used, it will not be applied if the form is placed into a PopUp.
Thanks!! This is unheard of level of support!!
Forum: Plugins
In reply to: [Calculated Fields Form] Display conditional text in calculationThx, this would be my poor explanation ?? Apologies for that. That is probably why the function is not returning anything.
The drop down front-end options (fieldname3) are ‘text values’, however, for the back-end calculation I am using a ‘numerical value’ assigned to each of the text options and then displaying the calculation result lets say in (fieldname1) Calculated field.
Maybe it is actually better to display that using the Summary field (where fieldname1 is the Calculated field)
(function(){ fieldname1; switch(fieldname3){ case 'Ibuprofen': return 'First text'; case 'Nurofen': return 'Second text'; case 'Panadol': return 'Third text'; case 'Paralen': return 'Fourth text'; } })()
Forum: Plugins
In reply to: [Calculated Fields Form] Display conditional text in calculationWow, thanks for the fast heads up!
Actually I have tried the Currency field, but for some reason it is not displaying the currency symbol/description in the form on the live site (it is showing in the back-end, though)
In the suggested equation – where in the following do I put the actual equation like PREC(fieldname2*fieldname3) to return the calculation? Apologies, if this is out of the scope of this forum. I couldnt get the suggested code to work. Thx
(function(){
switch(fieldname3){
case Ibuprofen: return ‘First text’;
case Nurofen: return ‘Second text’;
case Panadol: return ‘Third text’;
case Paralen: return ‘Fourth text’;
}
})()Forum: Plugins
In reply to: [Calculated Fields Form] Display conditional text in calculationalso – can the “number input” field show units? (like “kg”)?
Thx again!