Hyerlink in checkbox field

Home Forums Ticket Products Event Tickets Plus Hyerlink in checkbox field

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1141881
    Sabine
    Participant

    The below is a ticket I had opened on July 1, that to my knowledge has not been resolved/or was updated with a resolution and the autobot closed it.

    This is still a problem and I need to have the ability to have a functioning hyperlink in a checkbox field on ticket checkout.

    Please advise. Currently running Evetns Tickets 4.2.2 w Events Tickets Plus 4.2.2; Events Calendar 4.2..2 and Calendar Pro 4.2.2.

    See below my original ticket and support response.

    Link to page with issue: http://www.pacemakersrun.org/event/tarara-winery-5k-10k/

    Thank you.

    Hi – I need to have a hyperlink in a required checkbox field as part of the registration process. I was originally given this file modification to accomplish this:

    “The option is o create a template override (more info about this in the themer’s guide) of the template located at wp-content/plugins/event-tickets-plus/src/views/meta/checkbox.php. Once you have the copy of the template in your theme folder, go ahead and change this line:”

    <?php echo esc_html( $option ); ?>

    for this

    <?php echo $option; ?>

    Since recent updates, this no longer works and when changing the code, it now simply removes all ticket options and only shows one ticket, without the option to even add a ticket.

    Here is the link to the page and where you can see (withe the original php file) that i now simply shows all code, rather than just the words “Read Waiver” with a clickable hyperlink that opens up the waiver page.

    We are about to go live and I need a resolution for this – this is a very basic functionality and should work….and frankly without having to hack php files after every update….

    Please advise. Thanks.

    Posts: 2495
    Cliff
    July 1, 2016| Permalink
    Hi Sabine.

    I’ve added this forum thread to the internal feature request we had previously logged for this functionality. You’re not the only one who wants to include links in ET+ Attendee Meta fields.

    ===

    I’ve also added this forum thread to the internal bug report I created for this bug that I just now verified is happening.

    For your reference, I included this information in my bug report to our developers:
    <div class=”description”>
    <div class=”wiki”>

    With WP 4.5.3, TEC 4.2.1.1, ET 4.2.1.1, ET+ 4.2.1, WooCommerce 2.6.2…

    I could NOT get the following template overrides to work:

    /wp-content/themes/twentysixteen/tribe-events/event-tickets-plus/wootickets/tickets.php (should work)
    /wp-content/themes/twentysixteen/tribe-events/event-tickets/rsvp.php (should work)
    /wp-content/themes/twentysixteen/event-tickets/rsvp.php (wrong that it’s not in “tribe-events” folder but I tried it anyway)
    /wp-content/themes/twentysixteen/event-tickets-plus/wootickets/tickets.php (same as above)
    </div>
    </div>
    I’ll mark this ticket as Pending Fix, which means this thread should receive a reply once the applicable fix has been released. I cannot guarantee when it will be fixed as it’s in the development team’s hands now. They need to assign it, code it, test it, and schedule it for release.

    I definitely communicated to them that this is a high priority bug. We both hope it’ll be fixed ASAP.

    I apologize for this issue and appreciate your understanding and patience.

    #1142743
    Cliff
    Member

    Sabine,

    As stated previously, it is in the developers’ hands now. However, I bugged them more for you and got it bumped to a higher priority and it might make get added to our release scheduled for a few weeks from now.

    Unfortunately, that doesn’t provide you a solution today, but I hope it does come for you and others soon. It’s actually a feature request I submitted internally prior to any users asking for it so it is near and dear to me too 😉

    #1145315
    Sabine
    Participant

    Thank you for the update Cliff, this is very unfortunate….,especially for a paid product. I am accustomed to more responsive resolutions from other development teams, especially if it is pertaining to something that worked and was broken due to updates from the developers side. It also makes it quite clear that this is not a solid solution for any type of custom tickets with registration; to have the ability to have a waiver link or terms and conditions link is a very standard requirement.

    Can this ticket stay open until it is actually resolved, so I don’t have to constantly re-create it?

    Thank you.

    Sabine.

    #1145352
    Cliff
    Member

    I understand, Sabine. Thank you for your candid feedback.

    I can tell you that our forums were recently updated to not auto-close tickets in Pending Fix status so I’ll put it in that.

    While this code is untested, it might help you achieve what you want until such time that the feature is released:

    /**
    * Allow HTML in custom field names.
    *
    * @param array $fields
    *
    * @return array
    */
    function allow_custom_field_name_html( array $fields ) {
    $revised_field_list = array();
    
    $alternate_names = array(
    'I agreed to the terms and conditions' => 'I agreed to the <a href="#">terms and conditions</a>'
    );
    
    foreach ( $fields as $name => $value ) {
    if ( isset( $alternate_names[ $name ] ) )
    $name = $alternate_names[ $name ];
    
    $revised_field_list[ $name ] = $value;
    }
    
    return $revised_field_list;
    }
    
    add_filter( 'tribe_get_custom_fields', 'allow_custom_field_name_html' );

    and then also copy (not move) /wp-content/plugins/events-calendar-pro/src/views/pro/modules/meta/additional-fields.php
    to [your-child-theme]/tribe-events/pro/modules/meta/additional-fields.php
    and edit this new file to as follows:

    replace:
    <dt> <?php echo esc_html( $name ); ?> </dt>

    with:
    <dt> <?php echo $name; ?> </dt>

    Maybe it’ll work for you; maybe it won’t. You’ll need to verify and vet the code on your own if you do want to try it.

    #1156576
    Nico
    Member

    Hi there,

    Just wanted to give you a heads up that the maintenance release that went out recently has a fix for this issue. Please update when you have a chance and please do let us know if you continue to see this or any other issue happen — we’d be happy to help.

    Thanks, hope you have a great weekend,
    Nico

    #1159274
    Sabine
    Participant

    Hi Nico – thank you for the update. I just updated to all the latest versions. Would you please let me know exactly what I need to do now to get the hyperlink added to my Waiver field? Since several versions of code and steps have been provided, it would be great to get the steps/code that I will need exactly to get a working link back into my waiver field.

    Thanks in advance.

    Sabine.

    #1159452
    Cliff
    Member

    Sabine, you should be able to just enter HTML code as desired, such as <a href="...">Terms</a>

    #1168313
    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 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Hyerlink in checkbox field’ is closed to new replies.