Forum Replies Created
-
AuthorPosts
-
Jon
ParticipantHi
OK been testing this for the last 24 hours and there is still no change 🙁
Would it help if I clone the site on the same server so that we have a staging site to test things from?Cheers
Jon
ParticipantHi Geoff
OK thanks for the update. Am testing this now to see how it all goes. I know in the past visitors were able to purchase a ticket without selecting an amount of tickets they wanted even with the option checked to make that mandatory.
Maybe that was addressed in a past update I am unsure but will keep you posted on how it goes.
Have a great weekend!
Cheers
Jon
ParticipantHi Geoff
This does not help at all! In my reply I said that any customizations done to Woo are placed in the /lib/woocommerce-custom.php file.
In that file you can see that I AM using that code snippet as I read in this forum about using that. Please see the screen grab attached.
Am still at a loss here and yesterday the client was not happy again as an event had over booked. I have checked through all my work and can not see anything that can effect the total amount of places from displaying incorrectly or causes an issue letting events to over book.
The only other code that could maybe be effecting this is some code that I was advised to use in this forum. Code added was because when a visitor went to an event they could book the event without entering their details, obviously this was not ideal as we could not collect the attendees details so I was advised to set the min qty to 1 so that the attendee info option was loaded straight away. This code is in the same file and it is this (advised to use in this forum).
// Adjust product qty to 1 by default so we can collect attendees name add_filter( 'woocommerce_quantity_input_args', 'wph_woocommerce_quantity_input_args', 10, 2 ); function wph_woocommerce_quantity_input_args( $args, $product ) { if ( is_singular( 'product' ) ) { $args['input_value'] = 1; // Starting value (we only want to affect product pages, not cart) } $args['max_value'] = 10; // Maximum value $args['min_value'] = 1; // Minimum value $args['step'] = 1; // Quantity steps return $args; } // Variations add_filter( 'woocommerce_available_variation', 'wph_woocommerce_available_variation' ); function wph_woocommerce_available_variation( $args ) { $args['max_qty'] = 10; // Maximum value (variations) $args['min_qty'] = 1; // Minimum value (variations) return $args; }I really do need to get this wrapped up as it is causing a nightmare. If it is something I have in my work then fair enough, but I can not see anything relating to this function.
Cheers
Jon
ParticipantThis reply is private.
Jon
ParticipantHi
Thanks! Yes the Adjust the qty filter worked great 🙂
Cheers
Jon
ParticipantThis reply is private.
Jon
ParticipantHey Josh
Thanks for replying 🙂
I could not get what you suggested to work how I wanted BUT did manage to pull through the number of tickets available with just usingtribe_events_count_available_tickets( $event->ID )
Cheers
Jon
ParticipantHave got the price pulling through now, Just can not find how to pull through the amount of places left in the event.
Any ideas?Just so you can understand what I am doing. Have created a shortcode pulling through events by tag and only showing the next available event. Have then hooked Owl Carousel into the layout. In the image attached you can see the layout I have created, I am trying to pull though how many places are left to book on the event so I can place it above the JOIN CLASS button.
Cheers
-
AuthorPosts
