I want the ticket prices to show up on the upcoming events list page

Home Forums Calendar Products Events Calendar PRO I want the ticket prices to show up on the upcoming events list page

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #74422
    sazzybee
    Participant

    When I go to Admin, Events>Filters and Columns, I am able to add a column for ‘Event Cost’.
    I have put the ticket cost in Edit Event>Tickets>Price (through the Woo-Tickets plugin).
    However the Event Cost column remains blank on the Events admin and the ticket price does not show in the upcoming events list page on my website. It only shows up on the individual event.
    Also is there any way of changing the wording “Upcoming Events” to “Upcoming Workshops”? Thanks!

    #74519
    Kelly
    Participant

    Hi, sazzybee. These are great questions!

    In the future, it’d be helpful for us if you’d create a separate thread for each issue. That way you can post them in the appropriate forum.

    For getting the cost from your tickets created in WooCommerce Tickets, please check out this tutorial:
    https://theeventscalendar.com/filtering-tec-to-show-prices-from-woocommerce-tickets/

    For changing the “Upcoming Events”, I’m guessing you’re talking about the headings in some of the views. If that’s the case, this tutorial should help: https://theeventscalendar.com/alter-or-remove-heading/

    Please let us know how it goes! 🙂

    #74523
    Kelly
    Participant

    Hi, sazzybee. I appear to have given you an old link for the second tutorial. Please use this one instead: https://theeventscalendar.com/altering-or-removing-headings-on-calendar-views/

    Sorry for the misdirection!

    #74938
    sazzybee
    Participant

    Thanks for the response, I used the first woocommerce instructions but kept getting a syntax error:
    Parse error: syntax error, unexpected T_STRING, expecting T_FUNCTION in /home/socialsa/public_html/wp-content/themes/jupiter/functions.php on line 299

    299 is:
    add_filter( ‘tribe_get_cost’, ‘my_wootickets_tribe_get_cost’, 10, 3 );
    Any pointers?

    #74958
    Kelly
    Participant

    Hi, sazzybee. I’m afraid that I don’t understand what you mean in your last post. What have you implemented and where are you getting the error.

    Also, please be aware that the forum can sometimes eat code, so if you want to share code with us, your best bet is to use a service like pastebin or github.

    Thanks!

    #74982
    sazzybee
    Participant

    Hi Kelly,
    I followed the instructions you gave: “For getting the cost from your tickets created in WooCommerce Tickets, please check out this tutorial:
    https://theeventscalendar.com/filtering-tec-to-show-prices-from-woocommerce-tickets/”

    I followed the tutorial (edited the function.php file) and since uploading I get an error when loading the upcoming events page in the browser : syntax error, “unexpected T_STRING, expecting T_FUNCTION in /home/socialsa/public_html/wp-content/themes/jupiter/functions.php on line 299”
    This is the altered function.php file: http://pastebin.com/yNNT32YK
    I just pasted the code at the end of the function.php file, was that correct? There is also mentioned in the tutorial an alternative of putting the code in an mu-plugin, but I don’t have that file.

    #75006
    Kelly
    Participant

    Hi, sassybee. Thanks for explaining.

    The tutorial shows you how to create a function that will allow you to call the price from the event when customizing your site.

    I would recommend that you use a child theme when adding to your theme’s functions.php that way you are not at risk of losing customizations when the time comes to update your theme. For a complete explanation of Child Themes, please see this comprehensive article at the WP Codex: http://codex.wordpress.org/Child_Themes#Using_functions.php

    #75095
    sazzybee
    Participant

    Thanks Kelly – I’m a total noob but got my head around it, I have a child theme installed, but I didn’t realise you could go wild and create another function.php file within that 🙂

    #75141
    Kelly
    Participant

    No problem, sazzybee. That’s what we’re here for!

    In that case though, you may be more comfortable hiring a freelancer or developer to build out the solution you’re looking for. With this function, it shouldn’t be too difficult.

    Let me know if you’d like a list of suggestions! 🙂

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘I want the ticket prices to show up on the upcoming events list page’ is closed to new replies.