Joe

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • in reply to: Display Event Custom Field in WooCommerce Templates #1482672
    Joe
    Participant

    Bah I keep asking questions too early 😀

    We’ve just moved the if ($event_id) check into the foreach statement. Should work perfectly?
    It’ll display the custom field link for each product if applicable…

    Our question regarding the output of the URL Custom Field remains though..
    How would we output the raw data for this?

    Cheers,
    Swim

    in reply to: Display Event Custom Field in WooCommerce Templates #1482671
    Joe
    Participant

    Quick update, we’ve managed to get the following working:

    <?php 
    	$order = wc_get_order( $order_id );
    	$items = $order->get_items();
    
    	foreach ( $items as $item ) {
    		$product_id = $item->get_product_id();
    		$event_id = get_post_meta( $product_id , '_tribe_wooticket_for_event', true );
    	}
    
    	if($event_id) {
    		$event_fields = tribe_get_custom_fields($event_id);
    		echo '<div class="alert alert-info">';
    			if ($event_fields) {
    				$event_url = $event_fields['Vettrack URL'];
    				echo '<a href="'.$event_url.'" target="_blank" rel="noopener">Click here to enrol now</a>'; 
    			}
    		echo '</div>';
    	}
    ?>

    This returns the custom field we’re after. I just wonder if you can help us figure out a couple of things:

    • How should we make this work with multiple products? Is there a contingency we can put in place?
    • How can we echo the ‘URL’ custom field without it being an anchor tag? We just want the raw data

    Again I appreciate any help you can offer.

    Regards,
    Swim

    in reply to: Date Picker | AJAX Broken #1295617
    Joe
    Participant

    Hi Barry,

    No worries, we simply tried disabling AJAX using the native setting under Events > Settings.

    The setting in question: Use Javascript to control date filtering.. We’ve now switched it back on as it didn’t fix the problem.

    It seems like AJAX is being used even when we disable it, it just relies on the ‘Submit’ button instead when ‘disabled’.

    For now I have enabled both WP_DEBUG and SCRIPT_DEBUG.

    Cheers mate.

    in reply to: Date Picker | AJAX Broken #1295533
    Joe
    Participant

    Hi Barry,

    Yes we tried these steps, the issue was not resolved.

    The search by keyword works fine and it’s using AJAX, so we can’t understand why the filtering by date wouldn’t work also.

    Can you offer any additional suggestions beyond the basic troubleshooting steps which I have now told you twice, we’ve completed.

    Thanks.

    in reply to: Date Picker | AJAX Broken #1295057
    Joe
    Participant

    Hey guys,

    Any update on this? It’s been several days with no reply..

    Cheers.

    in reply to: License Key Issues #1267965
    Joe
    Participant

    Thanks Nico,

    All looks good now.

    Cheers!

    in reply to: Ticket Custom Fields #1260235
    Joe
    Participant

    I think you’re misinterpreting what I’m asking here Geoff.

    Instead of adding fields to the ticket purchase form process, we want to be able to assign fields to the ticket object itself.

    That way we won’t need to create a recurring event at all, we can just create multiple ticket types for the one event which has different properties (i.e location, date, price etc)

    Can you please let me know if this is possible?

    As I mentioned, we tried creating a custom field set using ACF and assigning it to the ‘Ticket’ post type, but when we create a new event, none of the custom fields display when adding a new ticket type.

    Thanks.

    in reply to: Ticket Custom Fields #1259207
    Joe
    Participant

    So what you’re saying is, to have recurring events with different locations we may as well just create a seperate event altogether?

    How about my question on the Tickets custom field options?

    2) Is it possible to create custom fields to associate with Tickets (we have also purchased the Events Tickets Plus plugin) such as Location, Date etc?

    Cheers.

    in reply to: Charge user for new Event Listing #1256549
    Joe
    Participant

    Thanks Geoff,

    Just another quick question; are there conditional checks for the Community Events plugin available? I’ve had a look through the docs and can’t find anything about it..

    As an example, tribe_is_community or tribe_is_community_add? That would help a great deal.

    Cheers.

    in reply to: Charge user for new Event Listing #1255682
    Joe
    Participant

    Sorry to post again, but to follow up my initial enquiry, what is the best way to hook into the form submission action? I want to make sure I redirect the user once the submission is complete..

    Are there any actions/filters I can use to write the redirect based on the Select value chosen?

    I imagine using basic PHP form functions would clash with the Event submission….

    Cheers.

    in reply to: Charge user for new Event Listing #1255671
    Joe
    Participant

    Thanks Geoff,

    Can you see any reason why this may not be a good idea? – it’s just that you used the word ‘interesting’

    Could there be any major security or compatibility issues?

    Cheers for pointing out the location of custom fields and how that could work.

    I’ll see how I go and report back. Could be helpful to other users of your plugins.

    in reply to: Charge user for new Event Listing #1255588
    Joe
    Participant

    Hi Geoff,

    Before I go ahead with a refund, can I ask if there’s any easy way to add custom fields to the Community Events submission form?

    I was thinking that if I could add a Select Dropdown that gave the option of different Event Listing types, I could then write some code that redirects the user on Form Submission to a specific Product > Checkout page..

    I would need to know how to add fields to the Submission form and if there’s any actions/filters I can hook into on submission to write the redirect.

    If you can offer any advice on this it would be greatly appreciated.

    Kind regards.

    in reply to: Charge user for new Event Listing #1254847
    Joe
    Participant

    Hi Geoff,

    This doesn’t really help us, we need variable pricing (two event options) and for the user to pay each time they’d like to post an event listing.

    The restricted content plugins only really work for one-off payments.

    It really is a shame this isn’t a default functionality of the community plugin, especially as the wording around it’s description alludes to this functionality being possible.

    Regards.

    in reply to: Breadcrumbs and Page Titles #1231740
    Joe
    Participant

    Thanks George,

    I get the following PHP error when adding the code and adjusting it to be suited to the theme’s PHP namespace.

    Strict Standards: Non-static method Tribe__Events__Main::getLink() should not be called statically in /sommeliers/sa-site-content/themes/sommeliers/lib/extras.php on line 118

    Also as per the original post in this thread, the Page Title and Page Header still remain blank.

    Cheers,
    SWiM

    in reply to: Breadcrumbs and Page Titles #1230349
    Joe
    Participant

    Thanks George! The Featured Event filtering worked perfectly 🙂

    Perhaps it should be added to your documentation somewhere?

    Cheers,
    SWiM

Viewing 15 posts - 1 through 15 (of 21 total)