Forum Replies Created
-
AuthorPosts
-
July 28, 2016 at 12:46 am in reply to: Disable Add to Cart button whilst ticket quanitity field equals 0 #1145017
Dean
ParticipantHi Josh,
Thank you for the quick response. Yes, that worked a treat. I combined it with the below code I wrote (sorry but I’m not a JS developer – but it works!) so if the quantity count was set or reduced to zero the Add to Cart button disappeared.
jQuery(document).ready(function($) { var eventQty = $('.tribe-events-single input.qty').val(); if (eventQty == 0) { $('.add-to-cart button').css({'display':'none'}); } $( '.tribe-events-single input.qty' ).change(function() { var eventQty = $('.tribe-events-single input.qty').val(); if (eventQty == 0) { $('.add-to-cart button').css({'display':'none'}); } else if (eventQty > 0) { $('.add-to-cart button').css({'display':'block'}); } }); });Dean
ParticipantThis reply is private.
Dean
ParticipantHi Nico,
Thank you for this. I can confirm it worked!
Dean
Dean
ParticipantHi Nico,
Since I’m using Events Ticket Plus is it best for me to open a new support thread for that software or will your further changes look into this? I don’t want to hijack this thread.
Thank you.
Dean
ParticipantHi Brian,
Thank you for the above. Yes it was a clash of code in my themes’ functions.php file.
All working now with just emails for Customer Confirmation and Admins’ New Order being sent and received.
🙂
-
This reply was modified 10 years ago by
Dean.
Dean
ParticipantHi Brian,
Thank you for that code however that stops all three emails from sending.
1) New Customer Order (for Admin)
2) Your tickets (this is just the one I need stopping)
3) You Order is complete (for customer)Any further assistance would be appreciated. Any chance this can be added as an option in the Admin somewhere in future builds?
Thank you.
Dean
ParticipantHi,
I was just going to post this to the forum as I have the same problem today. I’m using the most up to date version of Events Ticket Plus (4.1.1) and previously the RSVP section would move to the top by the code examples documented throughout this forum.
When I switched over to WooCommerce today with paid for tickets and tried to move the ticket section via the code here to the top (or anywhere) it doesn’t work.
https://theeventscalendar.com/knowledgebase/moving-the-ticket-form/Thank you.
-
This reply was modified 10 years ago by
Dean.
Dean
ParticipantSame here – all worked fine.
Thank you Brian! 🙂
Dean
ParticipantHi,
I’m trying to solve another issue with Events Calendar Pro however I’m experiencing this exact same issue as Dermot. My Events Calendar is currently at Version 4.0.6 whilst the Pro version is Version 4.0.5.
Every time I enter my licence key it validates it saying it expires in 2017 yet when I leave the page a message appears at the top saying an update is available but my licence key hasn’t been entered.
Any help would be appreciated.
Thank you.
Dean.
-
This reply was modified 10 years ago by
-
AuthorPosts
