Open ihygge opened 3 years ago
Plugin also not working for me. I edited the tribe-custom.js file with the following info as it seems some of the class names and IDs were different.
;(function ($) {
var container = $('.tribe-tickets__tickets-wrapper');
var block_container = $('form#tribe-tickets__tickets-form');
var Tribe_Ticket_Qty = {
init: function () {
var self = this;
// wrapper.find( 'input.tribe-ticket-quantity, .woocommerce .quantity input.qty, .edd.quantity input.edd-input' ).val(1);
if (container.length) {
$inputs = container.find('input.tribe-tickets__tickets-item-quantity-number-input, .woocommerce .quantity input.qty, .edd.quantity input.edd-input');
$inputs.val(1);
$inputs.trigger('change');
}
if (block_container.length) {
$inputs = block_container.find('input.tribe-tickets__tickets-item-quantity-number-input');
$inputs.val(1);
$inputs.trigger('change');
}
},
};
$(function () {
Tribe_Ticket_Qty.init();
});
})(jQuery);
I'm really not understanding the find inside of both container and block_container. Seems redundant.
Please post your question at https://support.theeventscalendar.com/, as these issues are not actively monitored.
Hello, I have installed this plugin on https://s2tconcealed.com/ and it is not setting the default to 1. I have tried to disable all other plugins to rule out any conflicts there, however, this did not do the trick. Are there any known issues with the newest release of Event Tickets?