teamworks

Forum Replies Created

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • in reply to: Can't save tickets #539652
    teamworks
    Participant

    The guys over at WPML have said they will be in touch about fixing the compatibility issues. It works in WPML 3.0.2a but not 3.1.6 so it looks as though there’s something in the update that’s causing the issue.

    See the thread here – http://wpml.org/forums/topic/easy-digital-downloads-tickets-cant-save-tickets-when-wpml-is-activated/#post-444775

    in reply to: Can't save tickets #531823
    teamworks
    Participant

    Hi,

    Sorry to drag up and old topic but this is still an issue for me.

    Due to other bugs the time has come that I my hand has been forced into upgrading wpml to the latest version 3.1.6

    With this version installed the inability to save tickets has started happening again.

    I’m cross posting as it seems that each plugin is passing the buck to the other. Please see here for more details:

    https://wpml.org/forums/topic/easy-digital-downloads-tickets-cant-save-tickets-when-wpml-is-activated/

    If anyone can shed some light on the difference between WPML 3.0.2a and 3.1.6 and why it might cause eddtickets to stop working I’d be really grateful.

    Logically it seems that edd tickets needs updating in order to work with the latest version of WPML.

    teamworks
    Participant

    Sorry output above is messed up and can’t seem to edit it…

    the relevant code is:

    $eventID = get_post_meta( $item[‘id’], ‘_tribe_eddticket_for_event’, true );
    if($eventID) {
    $event = get_post($eventID);
    echo ‘[div][a href=”‘.get_permalink($eventID).'”][span class=”edd_checkout_cart_item_title”]’ . $event-]post_title . ‘[/span][/a][/div]’;
    }

    (replacing square brackets around html!)

    teamworks
    Participant

    Hi,

    I ended up solving it by creating an edd_templates folder in my theme, copying ‘checkout_cart.php’ to it and adding the code below:


    <td class="edd_cart_item_name">
    <?php
    if ( current_theme_supports( 'post-thumbnails' ) && has_post_thumbnail( $item['id'] ) ) {
    echo '<div class="edd_cart_item_image">';
    echo get_the_post_thumbnail( $item['id'], apply_filters( 'edd_checkout_image_size', array( 25,25 ) ) );
    echo '</div>';
    }

    $eventID = get_post_meta( $item['id'], '_tribe_eddticket_for_event', true );
    if($eventID) {
    $event = get_post($eventID);
    echo '<div><span class="edd_checkout_cart_item_title">' . $event->post_title . '</span></div>';
    }

    $item_title = get_the_title( $item['id'] );
    if ( ! empty( $item['options'] ) && edd_has_variable_prices( $item['id'] ) ) {
    $item_title .= ' - ' . edd_get_cart_item_price_name( $item );
    }
    echo '<span class="edd_checkout_cart_item_title">' . esc_html( $item_title ) . '</span>';

    wp_reset_query();
    ?>
    </td>

    in reply to: Allow editors to see the downloads tab #147176
    teamworks
    Participant

    Sorry, I’d completely forgotten that we’d renamed the tab to tickets instead of downloads as it was originally!! Does that make sense though?

    in reply to: Allow editors to see the downloads tab #147164
    teamworks
    Participant

    When you install the plugin you get a “Tickets” menu item appear in the backend main menu of WordPress. This only appears for admins, I want to give access to editors so they can adjust things.

    in reply to: Get event title from associated ticket to output in cart #146162
    teamworks
    Participant

    Hi Casey,

    I’ve tried this – http://pastie.org/9126437

    At the moment it isn’t outputting anything.

    in reply to: Can't save tickets #110727
    teamworks
    Participant

    Ok I installed a fresh copy of wordpress with the twentytwelve theme, edd and edd tickets and everything worked. I gradually added all of my other plugins and everything still worked. I installed my theme and everything still worked!

    I had two sites with seemingly the same set of plugins and the same theme, one working, one not…. ?!

    After much head scratching I went through everything again and it seems the difference is this.

    On the site that works I have WPML Multilingual CMS Version 3.0.2-a installed.

    On the site that doesn’t work I have WPML Multilingual CMS Version 3.1.4-b4

    I had installed the beta version of wpml in order to try and fix a seperate issue and it seems that it causes a problem with edd tickets.

    Just a bit of further insight incase anyone comes across the same problem.

    With WPML Multilingual CMS Version 3.1.4-b4 installed the issue is as described above. It appears as though the tickets aren’t saving. If however you disable the plugin and look at the event again the tickets suddenly appear, so they are saved but there must be some hook or filter running that is causing them to not display with the plugin activated.

    It seems to work fine with the latest stable release of wpml.

    in reply to: Can't save tickets #110184
    teamworks
    Participant

    Sorry for the late reply, I’ve been out of the office until now.
    That is correct. For the particular scenario I followed this procedure:

    – Create and publish a new event.
    – Edit that event to add tickets.
    – Create the ticket, save the ticket. I am notified at this point that the ticket has saved.
    – Hit update event.
    – Ticket is no longer saved and does not appear on the event detail screen or in the tickets section.

    The date you are referring to in the past is the date which the ticket goes on sale. Not the event date. The ticket_end_date is 2014-02-28 which is in the future.

    The event is visible on the website but there is no option to purchase tickets available.

    I’ve tried all manner of combinations using ticket start dates in the past, current date, future dates.

    Under no circumstance does the ticket actually save even though the ajax response indicates it has.

    in reply to: Can't save tickets #107822
    teamworks
    Participant

    This is the data sent with the request to add a ticket:
    action:tribe-ticket-add-TribeEDDTickets
    formdata:ticket_provider=TribeEDDTickets&ticket_name=test&ticket_description=test&ticket_price=123&ticket_start_date=2014-02-01&ticket_start_hour=08&ticket_start_minute=00&ticket_start_meridian=am&ticket_end_date=2014-02-28&ticket_end_hour=05&ticket_end_minute=00&ticket_end_meridian=pm&ticket_edd_stock=123&ticket_edd_sku=123&ticket_id=

    and this is the response:
    {“success”:true,”data”:”<div class=\”wrap\”><div class=\”updated\”><p>Your ticket has been saved.<\/p><\/div><\/div>”}

    Everything looks like it has worked but when I revisit the event the ticket is not present. I’ve also tried updating the post after adding the ticket.

    in reply to: Can't save tickets #107819
    teamworks
    Participant

    This reply is private.

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