Damien

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: All events shown as free #1222861
    Damien
    Participant

    Hi Geoff
    I’ve finally got this figured out!
    Firstly because this is on a multisite using a child theme. I had to place the snippet in the functions file in the child theme, rather than the main theme functions. I don’t know why this should matter.
    Secondly I managed to get it to keep the ‘Free’ block by amending the snippet slightly to this:

    <?php
    /*
     * The Events Calendar - Remove 'Free - ' from price
     * Add to your child theme's functions.php file
    */
    
    add_filter ( 'tribe_get_cost', 'tribe_not_show_free', 10, 3 );
    
    function tribe_not_show_free ( $cost, $post_id, $with_currency_symbol ) {
    	
    	if ( $cost != 0 || $cost != 'Free' ) {
    		$cost = str_replace('Free', '', $cost);
    		$cost = str_replace(' - ', '', $cost);
    	}
    	return $cost;
    }
    
    ?>

    Hopefully this is of use to someone else out there trying to achieve the same thing.

    Thanks for all your help.

    D

    in reply to: All events shown as free #1220828
    Damien
    Participant

    Thanks Geoff
    The snippet looks like it should work but unfortunately it just seems to remove the entire cost field from the front end as per the previous snippet.
    Any ideas why?

    Thanks

    D

    in reply to: All events shown as free #1220146
    Damien
    Participant

    Thanks for the response Geoff.
    I had already tried that snippet, which I found in the forums somewhere.

    Unfortunately that seems to remove the whole cost field from the front end altogether. It removes the ‘Free’ but also removes any mention of the cost.

    What we would like is for it to show ‘Free’ when it is a free event but also show the cost when it is not free. Currently if there is a cost for the event it shows up as ‘Free – £84’! So it shows the cost but it still says Free next to it.

    You can see what I mean here.

    Is this possible?

    Thanks

    D

    in reply to: Unable to add fieldsets to RSVP tickets #1199677
    Damien
    Participant

    Hi Geoff
    Great! Thank you. That did indeed work!
    Many thanks

    Damien

    in reply to: Unable to add fieldsets to RSVP tickets #1198962
    Damien
    Participant

    Hi Geoff
    Thanks for your response.
    Yes, we’ve tried all of those things. Everything was working fine on our development server and this has only started happening since we have moved to the live server. The only difference between the two environments is that the live server is using https for the admin backend. I’ve noticed on a couple of other threads that this has caused other people similar problems.
    Additionally I have noticed the following errors in the console when I try and edit a ticket and get the faded white area:

    events-admin.js?ver=4.3.3:147 Uncaught TypeError: $(…).bumpdown is not a function(…)
    tickets.js?ver=4.3.3:608 Uncaught TypeError: $tribe_tickets.find(…).bumpdown is not a function(…)

    Let me know what you think.

    Many thanks

    Damien

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