John Paul

Forum Replies Created

Viewing 15 posts - 106 through 120 (of 129 total)
  • Author
    Posts
  • in reply to: Wootickets is taking me where it can't go #992979
    John Paul
    Participant

    perfect…thank you

    in reply to: targeting the theme page #992866
    John Paul
    Participant

    sorry..I didnt copy the whole code in here….still not working

    add_filter( ‘gettext’, ‘events_to_something_else’ );

    function events_to_something_else( $txt ) {
    //Only override the text on month view
    if( tribe_is_month() ) {
    $txt = str_replace( ‘Events for’, ‘Courses for’, $txt );
    }

    return $txt;
    }

    in reply to: targeting the theme page #992864
    John Paul
    Participant

    Okay , so I found this in another help post and added it to my functions.php

    function events_to_something_else( $txt ) {
    //Only override the text on month view
    if( tribe_is_month() ) {
    $txt = str_replace( ‘Events for’, ‘Courses for’, $txt );
    }

    return $txt;
    }

    but it didnt work…any thoughts?

    in reply to: targeting the theme page #992851
    John Paul
    Participant

    I also want to target the title “Upcoming Events” to read “Upcoming Courses” … I guess that is all in the single-event.php or is it from a Global php file that every template uses??………….I found one of your tutorials that helped me fix most of this…I added the following code into my child theme functions.php file

    which fixed most of my issue..but I still se “Events” in the title for Month and Week view… I tried adding another variable i.e $tribe_is_month…..but no bannna…do I wonder how I might target the month and week titles

    add_filter(‘tribe_get_events_title’, ‘change_upcoming_events_title’);

    function change_upcoming_events_title($title) {
    // Safe detection of photo/map views (in case PRO is not installed or becomes deactivated)
    $tribe_is_map = function_exists( ‘tribe_is_map’ ) && tribe_is_map();
    $tribe_is_photo = function_exists( ‘tribe_is_photo’ ) && tribe_is_photo();

    // We’ll change the title on upcoming, map and photo views
    if ( tribe_is_upcoming() or $tribe_is_map or $tribe_is_photo ) return ‘Upcoming Courses’;

    // In all other circumstances, leave the original title in place
    return $title;
    }

    in reply to: Photo View #992540
    John Paul
    Participant

    HI..I got the price per post in photo view added by following one of the other posts in the forum..so am please with that….

    I have also added some CSS to get the other problems fixed and I will just use the excerpt in the event post to get the rest…it would be good to have an auto content excerpt..but maybe for another day eh?

    so happy to close this

    in reply to: CSS question #990004
    John Paul
    Participant

    Many thanks

    in reply to: list-widget ..sold out / on sale #987853
    John Paul
    Participant

    sorry to be a pain…just to be clear , when I open an event I get a view where the below the venue details there is the heading “Tickets” . I want to be able to put the number of tickets left for sale to the right of this heading and to say “sold out” if true. Which file do I target to do this?? as I guess Wooticket is not part of the core

    in reply to: list-widget ..sold out / on sale #987848
    John Paul
    Participant

    thanks , for the widget and single event views, does it matter what directory structure I use in my child theme? or could I just put the new files directly under …/child-theme/tribe-events/

    in reply to: list-widget ..sold out / on sale #987799
    John Paul
    Participant

    thanks Brian, I will give this a try…I want to be able to then do the single post view as well, so as I am using pro..which file should I target?

    in reply to: Event information #986166
    John Paul
    Participant

    Hi , no problem,

    it is still in development on a test server at the mo and still early days.

    The site is at http://ltdesigns.eu

    I have only configured the “list” view at the moment, so when you see the site there will be a menu option called “Courses”. Click on this to get the list view. You will notice on the heading for the one event I have on at the moment that it says “On Sale! ” after the course title. When the tickets sell out , this changes to “Sold Out”.

    If you look to the bottom of the post, you will see “tickets remaining: 5″…. I may change the position of this and use some CSS to style.

    I will add the other template views of widget and post later this week/weekend.

    The theme is called iMedica from Brainstorm Force and is a hugely flexible theme that is marketed to the Medical Industry, but I use it for any industry as it is so flexible, it also comes with visual composer and rev slider.. I have had no theme conflicts at all so far.

    To achieve this, I followed the instructions in the posts and links in this thread. I did not change anything.
    All the chnages to the files was doing only using FileZilla FTP client and Notepad, nothing else. Though I did take a backup before changing anything and I took a copy of the original php files and save them to be desktop before the editing.

    Hope this helps. I am away all week, so will have limited time to do any updates until the weekend

    in reply to: Event information #986045
    John Paul
    Participant

    actually, I couldnt wait and I tried it — and it worked !!! I can display how many tickets are left and when they are sold out !!!

    MANY THANKS !!!

    in reply to: Event information #986035
    John Paul
    Participant

    ok..so am getting to grips with this 😉

    the code I have entered only goes as far as stating when there are either tickets for sale or they are sold out…it is not meant to display the number available !!! ok got it!! so I have to use the code you have suggested to get the ticket count…..

    thanks ,, I will give that a go later this week…

    best

    in reply to: Event information #986013
    John Paul
    Participant

    it seems such a good idea….my client wants to be able to show readers that her events sell well….its good for business

    in reply to: Event information #985949
    John Paul
    Participant

    Thanks for this, I am not good at PHP, but I do know how to create the child theme folders.

    I still will need to be able to see “sold out” when no tickets are left.

    The original instructions seemed to fit the requirements perfectly (they just don’t seem to work). My interpretation of the original instructions suggest it is looking for information that perhaps used to be displayed in the Post default view, but is no longer present now. But looking at the wooticket code, it is clearly netting off the sales from the inventory in order to know when not to accept anymore orders. So it must be possible for the post default view to display the number left.

    The resultant code would then be referencing this element to know what to display.

    OR , do i follow your instructions and we need to add this code into the code you sent from github?

    in reply to: Problems with upgrade #985863
    John Paul
    Participant

    This reply is private.

Viewing 15 posts - 106 through 120 (of 129 total)