Add price to related events

Home Forums Calendar Products Events Calendar PRO Add price to related events

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #268538
    indrakubicek
    Participant

    I managed to add prices to the photo view but I’m now having trouble doing the same for the related events.

    I tried using the same code in various places in related-events.php but couldn’t get it to work properly.

    Any help would be much appreciated.

    Thanks!

    #270225
    Barry
    Member

    Hi – I’d be happy to take a peek at your code – can you share what you tried with your custom related-events.php template? If you could do so via Pastebin, Gist or some similar service rather than by posting it directly into the forum that would be great.

    Thanks!

    #270403
    indrakubicek
    Participant

    Hi Barry,

    I hadn’t actually kept a copy, but your response prompted me to give it another try and I sussed it! 🙂

    My related-events.php file in theme-folder/tribe-events/pro now looks like this

    The extra code I used can be found in lines 50-54.

    #270446
    indrakubicek
    Participant

    Ah, actually, I still need to get null, true in there somewhere so that events without prices look correct too… can you help me with the final stretch?

    #270527
    indrakubicek
    Participant

    Worked it out! 😀

    (and updated code linked to above in question marked as answer)

    #274180
    Barry
    Member

    Awesome – glad you figured everything out (and thanks for sharing the updated solution – definitely appreciated as it makes it easier for others researching similar issues in the future) 🙂

    I’ll go ahead and close this thread, but of course if we can help with anything else please don’t hesitate to create new threads as needed.

    Thanks!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Add price to related events’ is closed to new replies.