Home › Forums › Calendar Products › Community Events › Remove Tickets sold/ stock
- This topic has 9 replies, 4 voices, and was last updated 8 years, 3 months ago by Support Droid.
-
AuthorPosts
-
December 8, 2015 at 11:26 am #1037778Thomas BlissParticipant
I have tied to remove the tickets remaining on Event Tickets Pro via all of my settings but yet it remains.
December 8, 2015 at 9:42 pm #1037985BrookParticipantHowdy Thomas,
I would love to help you figure this out. But I want to be sure I understand you completely. Are you trying to delete any and all tickets that were attached to an event, and people have already purchased those tickets?
If so, you might need to double check the ecommerce products. For example it the ticket was a WooCommerce one, the Woo product may still remain.Are you seeing the ticket there still?
Cheers!
– Brook
December 9, 2015 at 6:19 am #1038267Thomas BlissParticipantWhat I need is to hide the number of tickets sold/remaining from view of the buyer. I have already set woo commerce to not show stock, but it is still showing stock.
Example: 24 out of 24 available
Event example:http://northwestresponse.com/course/blscpr-for-healthcare-and-public-safety-122315/December 10, 2015 at 12:50 pm #1039102BrookParticipantAhh, thank you for clarifying.
That should be very doable. You could create a theme override for public_html/wp-content/plugins/event-tickets-plus/src/views/wootickets/tickets.php and alter line 54 which shows how many tickets are available:
echo sprintf( esc_html__( '%1$s out of %2$s available', 'event-tickets-plus' ), esc_html( $remaining ), esc_html( $ticket->original_stock() ) );
You could just remove that line, or perhaps change it to say something like “Tickets are available”.
Does that all make sense? Will that work for you? Please let me know.
Cheers!
– Brook
December 10, 2015 at 12:51 pm #1039104BrookParticipantI forgot to link to our Themer’s Guide. That walks you through creating theme overrides. I see you have been a customer for a while so you might very well be familiar with it already, but just in case. 🙂
– Brook
December 22, 2015 at 3:59 pm #1045631Thomas BlissParticipantThis reply is private.
December 23, 2015 at 1:44 am #1045695BrookParticipantThis reply is private.
January 25, 2016 at 10:19 am #1061988Tim MaeckenParticipantHi, thank you providing us with ticket plus. I also want to remove tickets # sold of # remaining from the buyer’s view.
However, I am not familiar with php. The solution you were providing sounds correct for me:
Removing the lineecho sprintf( esc_html__( ‘%1$s out of %2$s available’, ‘event-tickets-plus’ ), esc_html( $remaining ), esc_html( $ticket->original_stock() ) );
from
…/event-tickets-plus/src/views/shopptickets/tickets.phpCan you please provide more details on how to perform the theme override? I know, there’s a themer’s guide, but as non-php-programmer my question is
(a) do I have to simply change the that single line into
echo sprintf( esc_html__( ‘TICKETS ARE AVAIABLE’, ‘event-tickets-plus’ ), esc_html( $remaining ), esc_html( $ticket->original_stock() ) );if I want to display something else or
(b) to simply delete the complete line or more of the code e.g.:
if ( $remaining ) {
?>
<span class=”tribe-tickets-remaining”>
<?php
echo sprintf( esc_html__( ‘%1$s out of %2$s available’, ‘event-tickets-plus’ ), esc_html( $remaining ), esc_html( $ticket->original_stock() ) );
?>
</span>
<?php
}
}Thank you so much for your help.
January 25, 2016 at 10:21 pm #1062181BrookParticipantHowdy timgesic,
Great question. Option B would work really well. I would delete everything you quoted, expect the final } because that one is still needed for the rest of the page to work. Make sense?
- Brook
February 20, 2016 at 8:35 am #1078862Support DroidKeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Remove Tickets sold/ stock’ is closed to new replies.