mizzinc
Forum Replies Created
-
Forum: Plugins
In reply to: [Send PDF for Contact Form 7] creating pdf breaks ajax functionality of cf7Yes, I can confirm this is also happening for me.
Creating a new PDF breaks ajax. Would like a fix asap please.Forum: Plugins
In reply to: [Contact Form 7] Validating Email Bug?Thank you so much for taking the time to answer. Very helpful.
Solution
Ive installed ‘Contact Form 7 Email Validation’ (https://www.ads-software.com/plugins/email-domain-verification-in-cf7/) to assist whereis_email()
doesn’t.- This reply was modified 5 years, 7 months ago by mizzinc.
Forum: Plugins
In reply to: [Contact Form 7] Validating Email Bug?@takayukister – is this a bug?
An incomplete email address is validated as correct.
Example: [email protected] should throw an error, but its accepted.Forum: Plugins
In reply to: [Contact Form 7] Validating Email Bug?Does this need more clarification?
It seems the issue is with domain suffix (.com, .co, .au). The email address is accepted if only one letter of the suffix is provided.
For example domain.c, domain.u, domain.z
The email address [email protected] should not validate.
Forum: Plugins
In reply to: [Mailchimp for WooCommerce] API Request Error – cURL error 35I paused Cloudflare and also deactivated it and am still receiving the same error:
Mailchimp says: API Request Error – cURL error 35: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
Do I need to also remove any A or CNAME records too?
Forum: Plugins
In reply to: [WooCommerce Advanced Free Shipping] Shipping Settings: PHP ErrorsHi Jeroen,
It occurred when I added a new shipping rate.
Forum: Plugins
In reply to: [Mailchimp for WooCommerce] Fatal error on activationFatal error: Cannot redeclare class MailChimp_Error in /plugins/mailchimp-for-woocommerce/includes/api/errors/class-mailchimp-error.php on line 14
- This reply was modified 8 years, 1 month ago by mizzinc.
Forum: Plugins
In reply to: [Ultimate WP Query Search Filter] Populate dropdownHey jediKnight78,
At a glance I would suggest checking all your settings on your live project match all the settings on your local/testing server. Or perhaps migrate the database using https://en-nz.www.ads-software.com/plugins/wp-migrate-db/
Hope that information helps.
Forum: Plugins
In reply to: [YITH WooCommerce Ajax Search] Insanely SlowThird! And additionally options to remove the ajax-loader and use CSS animations would be great.
Forum: Plugins
In reply to: [Ultimate WP Query Search Filter] Populate dropdownRight – its as simple as applying one line of CSS to the select field you want hidden on page load.
For example:
#tax-select-2 { display: none; }
Just look at your page source to see what ‘id’ is used. Please note if you have other search filter forms will also hide the targeted ‘id’.
Forum: Plugins
In reply to: [Ultimate WP Query Search Filter] Populate dropdownHi jediKnight78.
Ill come back to you this week.
Had to manually edit the get access url to retrieve the updated access code. Mark as resolved for now.
Thanks for your response. Did follow those links and attempted to update token before posting.
Thanks for the quick response Craig. Please see: https://tinyurl.com/hdhblh3
Forum: Plugins
In reply to: [Ultimate WP Query Search Filter] Populate dropdownI got this working using a Vehicle Make and Model scenario.
1. Create a new form in Ultimate WP Query Search Filter with two taxonomies and output the form to a page/post/widget.
2. Initialize Ajax. Place this code in functions.php or similar file.
This also assumes your theme has enqueue jQuery.function ajax_auth_init(){ wp_register_script( 'ajax-script', get_stylesheet_directory_uri() . '/assets/js/ajax.js', array('jquery') ); wp_enqueue_script( 'ajax-script' ); wp_localize_script( 'ajax-script', 'ajax_uwpqsf_object', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ))); add_action( 'wp_ajax_nopriv_ajaxuwpqsf', 'ajax_uwpqsf' ); add_action( 'wp_ajax_ajaxuwpqsf', 'ajax_uwpqsf' ); } add_action( 'init', 'ajax_auth_init' );
3. In my scenario, when a user selects a Make (category) the second dropdown is populated with child categories of Models (sub-category).
function ajax_uwpqsf() { $cat_id = get_cat_ID( ucfirst($_POST['id']) ); $args = array( 'child_of' => $cat_id, 'orderby' => 'name', ); $categories = get_terms( 'category', $args ); $modeldata = ''; foreach( $categories as $category ) { $modeldata .= '<option value="'.$category->name.'">'.$category->name.'</option>'; } echo $modeldata; die(); }
4. Add the JS. In step 2 we initalized the ajax.js script. So create this file in /assets/js/ajax.js or anywhere you choose in your theme folder, just remember to update the path above.
Note I have targeted the two taxonomies we created in the form by using the respective IDs. ‘#tdp-0’ and ‘#tdp-1’. There is possibly a better way to do this, but for example purposes, needs/must.jQuery(document).ready(function($) { // Perform AJAX Ultimate WP Query Search Filter $('#tdp-0').change(function(e){ var cat_id = $(this).val(); $.ajax({ cache: false, type: 'POST', url: ajax_uwpqsf_object.ajaxurl, data: { 'action': 'ajaxuwpqsf', 'id': cat_id }, success: function(data){ $('#tdp-1').html(data); } }); e.preventDefault(); return false; }); });
Hope this helps someone.