Tagged: event tickets plus, TEC, the events calendar
-
AuthorPosts
-
May 24, 2016 at 9:46 pm #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!
May 26, 2016 at 12:43 pm #638670Hi,
Can you please create us a WordPress administrator account? post it here as a private reply.
Regards,
JosueMay 26, 2016 at 1:22 pm #638684Thanks for taking a look.
May 26, 2016 at 1:46 pm #638692Thanks, 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,
JosueMay 26, 2016 at 4:06 pm #638789Well… that’s good news, but it doesn’t work for us! How could that be? What browser are you using?
May 26, 2016 at 6:40 pm #638883Chrome on OS X.
May 26, 2016 at 7:30 pm #638905Me too. I’m at a loss on this one. Any suggestions?
May 26, 2016 at 8:01 pm #638913have you checked in another computer? can you post a screenshot of your view?
Best regards,
JosueMay 26, 2016 at 9:29 pm #638974Same 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*).
May 27, 2016 at 1:45 am #639034Ahh, 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); });
May 27, 2016 at 7:00 pm #639474Thanks 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?
May 28, 2016 at 1:11 am #639565Looks like event booking is disabled.
May 28, 2016 at 1:50 am #639595Sorry. Ticket sales for the test event on the dev site expired. I’ve adjusted it.
May 28, 2016 at 10:52 am #639720May 28, 2016 at 12:49 pm #639753Yes Josue. All set. Any suggestions?
May 28, 2016 at 1:04 pm #639759Hi,
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,
JosueMay 31, 2016 at 2:47 pm #640937Josue, that broke everything to the point the page was blank. Is there something missing/extra in the code causing it to break?
June 1, 2016 at 11:48 am #641399Hi,
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,
JosueJune 1, 2016 at 2:33 pm #641517Ah yes, that was it. Works great! Thanks so much for your help!
June 1, 2016 at 9:42 pm #641736You are welcome, glad to help :)
Regards,
Josue -
AuthorPosts
- The topic ‘Conflict with Event Calendar attendee information’ is closed to new replies.