Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #637738

    Hello, and thanks for an excellent theme!

    There have been a number of posts on the Modern Tribe support forums regarding a conflict between The Event Calendar and Enfold theme, yet I still can’t find a solution. The problem: when a user selects the number of tickets to purchase, additional information fields should appear to capture required information, but don’t. Could it be that Enfold is not calling a change event on the quantity field? It seems other users have fixed this by editing some jQuery. Any suggestions?

    Thanks!

    https://theeventscalendar.com/support/forums/topic/httpstheeventscalendar-comsupportforumstopiccollection-of-attendee-inform/

    #638670

    Hi,

    Can you please create us a WordPress administrator account? post it here as a private reply.

    Regards,
    Josue

    #638684

    Thanks for taking a look.

    #638692

    Thanks, which is the field that should be appearing and doesn’t? from what i could test, “Dietary needs?” shows up as expected – http://screencast.com/t/p2DhIWd9m

    Best regards,
    Josue

    #638789

    Well… that’s good news, but it doesn’t work for us! How could that be? What browser are you using?

    #638883

    Chrome on OS X.

    #638905

    Me too. I’m at a loss on this one. Any suggestions?

    #638913

    have you checked in another computer? can you post a screenshot of your view?

    Best regards,
    Josue

    #638974

    Same problem with different browsers and on different computers. When I select the number of “tickets” I want, the additional information window doesn’t appear as it should (and as it does for you for some reason… *mind blown*).

    http://www.screencast.com/t/9h6vco9RHq

    #639034

    Ahh, i think the issue comes when you use the arrows, i’ve been writing the number and pressing enter the whole time. Try the following, open /enfold/config-woocommerce/woocommerce-mod.js and remove/comment this block:

    jQuery(".quantity input[type=number]").each(function() {
    	var number = $(this),
    			max = parseFloat( number.attr( 'max' ) ),
    			min = parseFloat( number.attr( 'min' ) ),
    			step = parseInt( number.attr( 'step' ), 10 ),
    			newNum = jQuery(jQuery('
    <div />').append(number.clone(true)).html().replace('number','text')).insertAfter(number);
    			number.remove();
    
    		setTimeout(function(){
    			if(newNum.next('.plus').length == 0) {
    				var minus = jQuery('<input type="button" value="-" class="minus">').insertBefore(newNum),
    						plus    = jQuery('<input type="button" value="+" class="plus">').insertAfter(newNum);
    
    				minus.on('click', function(){
    					var the_val = parseInt( newNum.val(), 10 ) - step;
    					the_val = the_val < 0 ? 0 : the_val;
    					the_val = the_val < min ? min : the_val;
    					newNum.val(the_val);
    				});
    				plus.on('click', function(){
    					var the_val = parseInt( newNum.val(), 10 ) + step;
    					the_val = the_val > max ? max : the_val;
    					newNum.val(the_val);
    
    				});
    			}
    		},10);
    
    	});
    #639474

    Thanks Josue. That took away the plus/minus buttons, which forces the user to type in a value. That of course “fixes” the issue, but we’d rather keep the plus/minus buttons. Is it possible to have the additional info field show up when the user clicks the “+” button to add a ticket?

    #639565

    Looks like event booking is disabled.

    #639595

    Sorry. Ticket sales for the test event on the dev site expired. I’ve adjusted it.

    #639720

    Hi,

    Can you also please revert the change to woocommerce-mod.js.

    Best regards,
    Josue

    #639753

    Yes Josue. All set. Any suggestions?

    #639759

    Hi,

    Please try adding this at the very end of your themes / child themes functions.php file:

    function add_custom_script(){
    ?>
    
    <script>
    (function($){
    $(window).load(function() {
        $('.quantity').on('click', 'input[type="button"]', function(){
            $('.quantity input[type="text"]').trigger('keyup');
        });
    });
    })(jQuery);
    </script>
    
    <?php
    
    add_action('wp_footer', 'add_custom_script');

    If you’re not using a child theme you can use this plugin to store custom functions like that.

    Best regards,
    Josue

    #640937

    Josue, that broke everything to the point the page was blank. Is there something missing/extra in the code causing it to break?

    #641399

    Hi,

    Yes i missed a character:

    
    function add_custom_script(){
    ?>
    
    <script>
    (function($){
    $(window).load(function() {
        $('.quantity').on('click', 'input[type="button"]', function(){
            $('.quantity input[type="text"]').trigger('keyup');
        });
    });
    })(jQuery);
    </script>
    
    <?php
    }
    add_action('wp_footer', 'add_custom_script');

    Best regards,
    Josue

    #641517

    Ah yes, that was it. Works great! Thanks so much for your help!

    #641736

    You are welcome, glad to help :)

    Regards,
    Josue

Viewing 20 posts - 1 through 20 (of 20 total)
  • The topic ‘Conflict with Event Calendar attendee information’ is closed to new replies.