Possible to remove RSVP as a ticket option?

Home Forums Ticket Products Event Tickets Plus Possible to remove RSVP as a ticket option?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1102717
    Leah
    Participant

    Hello,

    Is it possible to remove the “RSVP” as a ticket option so that tickets are always automatically “WooCommerce”?

    Thank you!

    #1102859
    Brook
    Participant

    Howdy Leah,

    That is certainly possible. The easiest way would probably be to create a theme override by following our Themer’s Guide. The file you would want to override would be the modules\tickets.php file. You might just copy/paste the following snippet into [your-theme]/tribe-events/community-tickets/modules/tickets.php

    https://gist.github.com/elimn/9270713f8539e3bd8178d35759d9b79a

    From there find the line that says:

    $checked = $module === 'WooCommerce';

    And change it to:

    if ( $module !== 'WooCommerce' ) continue;

    That should show only WooCommerce. The original snippet I shared sets Woo to the default, but this will completely hide the other options.

    Does that all make sense? Will that work for you? Please let me know.

    Cheers!

    – Brook

    #1102860
    Brook
    Participant

    Howdy Leah,

    That is certainly possible. The easiest way would probably be to create a theme override by following our Themer’s Guide. The file you would want to override would be the modules\tickets.php file. You might just copy/paste the following snippet into [your-theme]/tribe-events/community-tickets/modules/tickets.php

    https://gist.github.com/elimn/9270713f8539e3bd8178d35759d9b79a

    From there find the line that says:

    $checked = $module === 'WooCommerce';

    And change it to:

    if ( $module !== 'WooCommerce' ) continue;

    That should show only WooCommerce. The original snippet I shared sets Woo to the default, but this will completely hide the other options.

    Does that all make sense? Will that work for you? Please let me know.

    Cheers!

    – Brook

    #1108863
    Support Droid
    Keymaster

    This 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.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Possible to remove RSVP as a ticket option?’ is closed to new replies.