Change Woocommerce Label in Community Event Submission Form

Home Forums Ticket Products Community Tickets Change Woocommerce Label in Community Event Submission Form

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1136409
    Carlas
    Participant

    How do I do this in my theme? I am not a coder but I am learning everyday. Please help me figure this out.

    Thank you

    #1136765
    Hunter
    Moderator

    Hey Carlas!

    I’d be happy to help you out 🙂

    Can you send over a screenshot of the label you’re referring to just so I make sure I give you the correct answer the first time around?

    In the mean time, you’ll need to familiarize yourself with the process of creating and saving custom templates. Our Themer’s Guide does a great job of this.

    Reply back and I’ll give you the exact file and line you’ll need to change. Thanks for choosing us for your event & ticketing needs and have a great rest of your day.

    Cheers!

    #1137140
    Carlas
    Participant

    This is the label I would like to change to “Sell Tickets” instead of Woo Commerce

    #1137477
    Hunter
    Moderator

    Hey Carlas,

    Thanks for the response. Try adding the following code to your theme’s functions.php file. Let me know how it works and if you have any more questions 🙂

    /**
    * Change WooCommerce tickets label
    */
    function change_woo_label() { ?>

    <script>

    jQuery(document).ready( function ( ){

    jQuery('input[value="Tribe__Tickets_Plus__Commerce__WooCommerce__Main"]').next().html('Sell Tickets');

    });

    </script>

    <?php
    }
    add_action('wp_head', 'change_woo_label');

    #1137644
    Carlas
    Participant

    I put the snippet in my themes function.php file and it crashed my website. I removed the snippet then updated my file and my website is still not working now. How do I restore it?

    #1137647
    Carlas
    Participant

    Ok, I got my site back up but I still need to change that label, if possible. Please help

    #1137850
    Hunter
    Moderator

    Hey Carlas,

    Sorry to hear you ran into troubles but I’m glad your site is back up! Can you try adding the snippet I provided in my previous response to the Twenty Sixteen theme’s functions.php file and see if it works? I tested it real quick and it worked for me.

    If you want, copy/paste your theme’s functions.php file to Pastebin and share a link. I’d be happy to see why it didn’t work and possibly provide a solution.

    I do want to point out that I’m limited on the amount of support I’m able to provide, so if this doesn’t work, you might have to begin looking for additional resources to help get the label changed.

    Keep me posted and have a good rest of your weekend!

    #1137955
    Carlas
    Participant

    This reply is private.

    #1138265
    Hunter
    Moderator

    Hey Carlas,

    Thank you for sending that over. It looks like you should be able to drop the code I provided at the bottom of your functions.php file. The best way for you to test would be using a text editor so you’re able to undo changes that cause your site to “crash”. You might also want to contact your theme author to see if they have a better idea of where to insert the code.

    Let me know how it goes and have a good Monday!

    #1138559
    Carlas
    Participant

    Thank you, The code you sent me worked!!! I really appreciate it! I double spaced before entering the code the first time but this time I just spaced one time and put the code in there and it worked. Thank you! You guys helped me tremendously!!!

    #1138834
    Hunter
    Moderator

    Carlas,

    I’m so glad it worked out for you! Sometimes it takes a bit of testing to get it working properly. I’ll close this thread out but please open a new one if you have any more questions or concerns 🙂

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Change Woocommerce Label in Community Event Submission Form’ is closed to new replies.