Add to cart button not working using WPToolset

Home Forums Ticket Products Event Tickets Plus Add to cart button not working using WPToolset

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1310694
    Guildford Institute
    Participant

    I hope someone can help me and I hope I can explain the problem I have.
    I am running The Events Calendar Pro plugin with event ticket plus. I am using a WPToolset views content template for the single event page view. I’ve managed to get the views content template to display times, location etc by using several variations of the script below and adding to my functions.php.

    For example.

    add_shortcode(‘venue-address’, ‘venue_address_shortcode’);
    function venue_address_shortcode() {
    global $post;
    return tribe_get_address( $post );
    }
    and then adding [venue-address] to the single event content template.

    I can’t work out how to get it the views content template to display an ‘add to cart’ button if the event has a ticket? Is there another ‘add_shortcode’ piece of script that I need to add to my functions.php file?

    I am not a developer but I do have a certain amount of knowledge so if someone can help and explain things to an amateur developer, it would be most appreciated.

    I do hope someone can help me as I have got a client who is running out of patience!

    If anyone needs anything explained a bit better then please do get in touch.

    Many thanks
    Mark

    #1311502
    Guildford Institute
    Participant

    Hi. I’ve just heard back from support at WPToolset and they suggest that I should ask you the following, in an attempt to find a solution for my problem

    How do you setup the relationships between post types “event” and “product”, for example, if the relationships are based on custom fields, you can try these:
    In the single “event” post, Setup a view to list related products post, in the view’s loop, display the shortcode [wpv-woo-buy-or-select]

    #1313351
    Cliff
    Member

    Hi. You might be interested in tribe_get_venues() or similar functions found in that same file.

    Events, Organizers, and Venues are separate custom post types, but we have “Linked Posts” functionality. You can reference https://github.com/moderntribe/the-events-calendar/blob/4.5.7/src/Tribe/Linked_Posts.php

    Please let me know if you have any follow-up questions on this topic.

    #1313765
    Guildford Institute
    Participant

    Hi. Thanks for your reply. Apologies but this dosen’t make a lot of sense to me. Would you mind explaining a little more how I can get the single event template that I have created using WPTOOLSET views to recognise if an event has a ticket and if so display an ‘add to cart button’.

    Thank very much.
    Mark

    #1314848
    Cliff
    Member

    Mark, we do not have any guides for integrating Types/Views with our plugins, and I don’t know that anyone else has asked this before. Sometimes we write such how-tos for popular requests.

    To answer this question, it’d take significant effort to test and find the limitations. This isn’t something we’re able to help with.

    I’d suggest getting a developer involved. Yes, even though Types/Views is meant to help you not need a developer, it doesn’t mean integrations like this are easily accomplished with their plugins to ours or vice-versa.

    I hope you understand.

    If you need some coding help, you may want to ask your developer or reference our documentation and list of known customizers.

    #1324908
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Add to cart button not working using WPToolset’ is closed to new replies.