digitalfusion

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: How to Hide the WooCommerce 'Ticket' Category #45125
    digitalfusion
    Participant

    Actually, the one I posted above works in all cases, so for now, I suppose I’ll just use that one. Thanks for the help!

    in reply to: How to Hide the WooCommerce 'Ticket' Category #45091
    digitalfusion
    Participant

    This reply is private.

    in reply to: How to Hide the WooCommerce 'Ticket' Category #45090
    digitalfusion
    Participant

    I actually have another piece of code in there that seems to be doing the trick in both the widget and the shop pages. If I used the one you provided, it works for the widget, but the ticket category still shows up on the shop page. I can switch them out again if you’d like to see.

    This is the code I round elsewhere that seems to be working:

    add_filter( ‘get_terms’, ‘get_subcategory_terms’, 10, 3 );

    function get_subcategory_terms( $terms, $taxonomies, $args ) {
    $new_terms = array();

    // if a product category and on the shop page
    if ( in_array( ‘product_cat’, $taxonomies ) && ! is_admin()) {
    foreach ( $terms as $key => $term ) {
    if ( ! in_array( $term->slug, array( ‘ticket’ ) ) ) {
    $new_terms[] = $term;
    }
    }

    $terms = $new_terms;
    }

    return $terms;
    }

    in reply to: How to Hide the WooCommerce 'Ticket' Category #45076
    digitalfusion
    Participant

    Hmm. That seems to work for the Product Categories widget, but not on the Shop page itself.

    in reply to: List Ticket Price on Event List #43842
    digitalfusion
    Participant

    Nope. I don’t see an “Event Cost” section. There’s nothing after the “Event Organizer Details” section.

    I am using WooTickets. Does that disable that section by any chance?

    in reply to: List Ticket Price on Event List #43783
    digitalfusion
    Participant

    Hmm. I’m familiar with template overrides, but I don’t see an Event Cost field anywhere. Is that available in the standard version of the The Events Calendar? If so, can you point me to where it’s documented? Thanks!

Viewing 6 posts - 1 through 6 (of 6 total)