webkelder
Forum Replies Created
-
Forum: Plugins
In reply to: [List View Google Calendar] start and end timeGreat wonderful!
Thank you so kimipooh!I ended up with this (not sure its the right way but works fine):
shortcode:
[gc_list_view date_format="d-m-Y H.i" hook_secret_key="*****" orderbysort="ascending"]functions.php:
add_filter( 'lvgc_each_output_data' , 'lvgc_each_output_data_fix' , 10 , 2 ); function lvgc_each_output_data_fix($out, $out_atts){ extract($out_atts); $hook_secret_key = '*****'; $startdate = substr($start_date_value, 0, 10); $start_date_value_timestamp = strtotime($start_date_value); $dayname = substr(date_i18n("l",$start_date_value_timestamp), 0, 2); $starttime = substr($start_date_value, 11, 5); $endtime = substr($end_date_value, 11, 5); $out = <<< ___EOF___ <li class="${html_tag_class}_item"><span class="${html_tag_class}_date">$startdate</span> <span class="${html_tag_class}_dayname">($dayname)</span> <span class="${html_tag_class}_time">$starttime - $endtime</span> $output_category_temp <a class="${html_tag_class}_link" href="$gc_link" target="_blank">$gc_title</a></li> ___EOF___; return array('hook_secret_key'=>$hook_secret_key, 'data'=>$out); }Forum: Plugins
In reply to: [Easy Appointments] max 3 (of 5) different services at the same timeHi Nikola,
Thank you. I mean 1 person can only book 1 service at a time (like it is already). I have 5 different services. Only 1 of each can take place at the same time. I can do that by making 5 workers, one for each service.
The question I have is: is it possible to block the slots when there are 3 booked services?
I couldn’t find the hook you are talking about. Can you give me a bit more direction? 🙂Thank you very much!
Hello Nikola,
I have 5 different services (each last 1 hour). I want to let people book max 3 services (at the same time or with overlap) but all 3 services must be different services?
Is that possible?Thank you very much!
Forum: Plugins
In reply to: [WC - APG Weight Shipping] cant add postcode groupsAh ok. So does that mean it isnt possible anymore to use postcode based costs at all? Or is there a different approach now?
Thanks!Hey Nikola,
Thanks for your reply.
I am not sure what you mean. The form does check if email values are valid and gives a message if it’s not valid.
Do you mean turn off sending emails to customer and worker permanently or shortly just to see what’s going on?
The Tools tab doesn’t give a message, except “Loading…” for a short moment.Now I have sort of fixed it with jquery (disabled the submit button untill every required field has a value) because it must work. But of course it’s better if you make the improvement 🙂
Btw, where can I donate?
Thanks.
In addition to:
I find out that it is disabled because the form is sent, even when the required fields are empty. But you can’t say it is sent because you don’t see that. Only in the admin. There you get a record with missing user data.Forum: Plugins
In reply to: [Easy Appointments] dont work on a specific computer (but does on others)The problems were caused by Comodo Antivirus. After I uninstalled it, it worked fine.
Forum: Plugins
In reply to: [Easy Appointments] dont work on a specific computer (but does on others)Thanks!
For your information: my other computer has also windows 10. On that everything works fine.Forum: Plugins
In reply to: [WooCommerce Image Hover] Not compatible with last version of wordpressHi Brad, yes thank you. Thanks for your plugin and info!
Forum: Plugins
In reply to: [WooCommerce Image Hover] Not compatible with last version of wordpressGreat! Glad I could help!
I sent you an email.Forum: Plugins
In reply to: [WooCommerce Image Hover] Not compatible with last version of wordpressOk the script is still not showing despite you activated it.
So maybe you better disable and remove the plugin then and:1) make a directory in your theme or child theme named ‘js’ (if not already exists)
2) make a file called ‘theme.js’ and put it in the directory ‘js’
3) put this code in the file ‘theme.js’:
jQuery( document ).ready( function( $ ) { // preload images $('.thumbnails a').each(function() { var photo_fullsize = $(this).attr('href'); $( "body" ).append( '<img src="'+photo_fullsize+'" class="hide">' ); }) // Get the main WC image as a variable var wcih_main_imgage = $( 'a.woocommerce-main-image img' ).attr( 'src' ); // Swap out the main image with the thumb $( '.thumbnails a' ).mouseover( function() { var photo_fullsize = $( this ).attr( 'href' ); $( '.woocommerce-main-image img' ).attr( 'srcset', photo_fullsize ); $( '.woocommerce-main-image img' ).attr( 'src', photo_fullsize ); } ); // Return the main image to the original $( '.thumbnails a' ).mouseout( function() { $( '.woocommerce-main-image img' ).attr( 'srcset', wcih_main_imgage ); $( '.woocommerce-main-image img' ).attr( 'src', wcih_main_imgage ); } ); });4) put this in your theme or child theme style.css file:
.hide { display: none; }5) put this in your theme or child theme functions.php
// javascript image hover function YourUniqueID_add_enqueue_scripts() { wp_enqueue_script( 'theme_js', trailingslashit( get_stylesheet_directory_uri() ) . 'js/theme.js', array( 'jquery' ) ); } add_action( 'wp_enqueue_scripts', 'YourUniqueID_add_enqueue_scripts' );Forum: Plugins
In reply to: [WooCommerce Image Hover] Not compatible with last version of wordpressIs the plugin active at the moment? When it is it should link to a javascript but thats not the case now.
Forum: Plugins
In reply to: [WooCommerce Image Hover] Not compatible with last version of wordpressHi crashguru, the script (wcih.js) is not loaded on the page. Did you turn off the plugin?
By the way, I see that there has been an update of this plugin 2 weeks ago. When I look at the sourcecode of your page I think it should work without my customizations.Forum: Plugins
In reply to: [WooCommerce Image Hover] Not compatible with last version of wordpressHi crashguru, can you give me the url of a page where this should happen? Thanks!
Forum: Plugins
In reply to: [WooCommerce Image Hover] Not compatible with last version of wordpressAnd another update, now its with preloading the images. Also put this in your css: .hide { display: none; }
jQuery( document ).ready( function( $ ) { // preload images // if you have the images all in the same size you could use this (with your own image size) to save some data loading... $('.thumbnails a').each(function() { var photo_smallsize = $(this).attr('href').replace('.jpg','-583x300.jpg'); $( "body" ).append( '<img src="'+photo_smallsize+'" class="hide">' ); }) // ... otherwise use this //$('.thumbnails a').each(function() { //var photo_fullsize = $(this).attr('href'); //$( "body" ).append( '<img src="'+photo_fullsize+'">' ); //}) // Get the main WC image as a variable var wcih_main_imgage = $( 'a.woocommerce-main-image img' ).attr( 'src' ); // This is what will happen when you hover a product thumb $( '.thumbnails a' ).mouseover( // Swap out the main image with the thumb // if you have the images all in the same size you could use this (with your own image size) to save some data loading... function() { var photo_smallsize = $(this).attr('href').replace('.jpg','-583x300.jpg'); $( '.woocommerce-main-image img' ).attr( 'srcset', photo_smallsize ); $( '.woocommerce-main-image img' ).attr( 'src', photo_smallsize ); } // ... otherwise use this //function() { //var photo_fullsize = $( this ).attr( 'href' ); //$( '.woocommerce-main-image img' ).attr( 'srcset', photo_fullsize ); //$( '.woocommerce-main-image img' ).attr( 'src', photo_fullsize ); //} ); $( '.thumbnails a' ).mouseout( // Return the main image to the original function() { $( '.woocommerce-main-image img' ).attr( 'srcset', wcih_main_imgage ); $( '.woocommerce-main-image img' ).attr( 'src', wcih_main_imgage ); } ); });