pbosakov
Forum Replies Created
-
Forum: Plugins
In reply to: [PVB Contact Form 7 Calculator Add-on] Price per KmYou need a valid Google API key with access to the following services:
- Maps JavaScript API
- Distance Matrix API
The service is free for low-volume usage. For more information, see https://developers.google.com/maps/documentation/javascript/get-api-key
Forum: Plugins
In reply to: [PVB Contact Form 7 Calculator Add-on] Price per KmYes, you can do any arithmetic operations with the calculated distance.
For example, if your price is 3€ / km, you can use it in your formula.
Price: [calculation total precision:2 "3 * fn_distance(start, finish, km)"]
Forum: Plugins
In reply to: [PVB Contact Form 7 Calculator Add-on] Address field not working when hiddenHello, if you need to hide the initial location, I assume that you want it to be pre-set to a fixed address that cannot be modified by the user.
In that case, you may simply use the “hidden” field type available in Contact Form 7: https://contactform7.com/hidden-field/
With a hard-coded field, you do not need the “_formatted” suffix mentioned in the plugin documentation.
Here is some example code that you can adapt to your needs.
Address 1: [hidden start "Via Appia Nuova, 1095 00178 Roma RM, Italy"] Address 2: [address end] Distance: [calculation distance2 "fn_distance(start, end_formatted, km)"] [calculate_button calculate]
Saeed, as per our e-mail exchange, I have updated the documentation to make it easier to understand how the “variable” tag should be used.
Thank you for your feedback and good luck with your website.
Forum: Plugins
In reply to: [PVB Contact Form 7 Calculator Add-on] cf7-hide not working?Issue fixed in the free version, a release for the pro version will follow shortly.
Forum: Plugins
In reply to: [PVB Contact Form 7 Calculator Add-on] cf7-hide not working?For the Enfold theme, please try this code instead:
#top input[type="text"].wpcf7-display-none, #top input[type="number"].wpcf7-display-none { display: none; }
Hope that helps!
Forum: Plugins
In reply to: [PVB Contact Form 7 Calculator Add-on] cf7-hide not working?Hello, I have received several reports about this problem. It turned out to be a CSS priority issue in Contact Form 7, affecting several WordPress themes (including Twenty Seventeen).
To work around it, you can add the following custom CSS to your site:
input[type="text"].wpcf7-display-none { display: none; }
Forum: Plugins
In reply to: [PVB Contact Form 7 Calculator Add-on] Uncaught TypeError: addEventListenerHello,
Thank you for reporting this! The bug affects the Pro version only. Please contact me privately on this form: https://bossakov.eu/connect/ and I will be happy to send you a bugfix.
Many thanks,
Petko- This reply was modified 6 years ago by pbosakov.
Forum: Reviews
In reply to: [Cyrillic Permalinks] Баг с переводом букв Э и ЮПривет, эта ошибка исправлена в новой версии 2.0.0. Я был бы рад получить отзывы от российских пользователей.
Forum: Plugins
In reply to: [PVB Contact Form 7 Calculator Add-on] Multiselect CheckboxesThe fix for multiple checkboxes has been released. Note that if the visitor selects more than one checkbox in the group, the values will be summed. Let me know if you have any other questions or concerns, and consider leaving a review if you like the plugin. Thanks!
Forum: Plugins
In reply to: [PVB Contact Form 7 Calculator Add-on] can I use if function in equationHello, this calculator does not have an “if” logical function. However, the Pro version lets you run arbitrary PHP code, including more complex logical constructs.
Forum: Plugins
In reply to: [PVB Contact Form 7 Calculator Add-on] Minimum/Maximum Value – Doing what?The minimum value is not used for validation, but will simply force the calculation result to be a certain number if the formula resolves to something that is less than that.
For example, if your minimum value for the a+b calculation is 10, you will get something like this:
a b a+b 1 1 10 2 2 10 3 3 10 4 4 10 5 5 10 6 6 12 7 7 14 8 8 16
You can attach your own validation Javascript to the “wpcf7calculate” jQuery event, for example:
jQuery('form').on('wpcf7calculate', function() { var total = jQuery('input[name=total]').val(); var minimum = 20; if (total < minimum) { jQuery('input[type=submit]').prop('disabled', true); alert('Order minimum is 20'); } else { jQuery('input[type=submit]').prop('disabled', false); } });
Forum: Plugins
In reply to: [PVB Contact Form 7 Calculator Add-on] How to do auto calculation@dropshot
Here is an updated link for the current version: https://bossakov.eu/documentation/pvb-cf7-calculator-pro-1.4.0.pdfThanks for your feedback. Since it’s been a month, I am marking this issue as resolved. Feel free to reply to this thread if the problem persists.
Forum: Plugins
In reply to: [PVB Contact Form 7 Calculator Add-on] Multiselect CheckboxesHi, just an update – a new release that supports multiple checkbox groups is right round the corner. The Pro version will be released today, and the free version will be updated later this week.