Forum Replies Created
-
AuthorPosts
-
momofoneParticipant
Thank you @first4websites for your confirmation of this issue and for your fix!
Much appreciated.
momofoneParticipantJaime,
I have a test site installed with the default Twenty-Seventeen theme, just The Events Calendar and Events Tickets standard (not pro) plugins installed – no other plugins are activated. The site is on another server and the same behavior is easy to reproduce with the RSVP tickets. The only way to get this ticket to display on the front end is to set the start time back by 4 hours.
https://screenshots.firefox.com/lXCrpi7f4KYCRbHc/greentechseacoast.com
momofoneParticipantThis reply is private.
momofoneParticipantHi Jaime,
Same issue. I just set up a test event with a test ticket and set it to display today at 9:30am and no ticket. I reset the ticket start date to 5:30am and it appears. (Using the settings you suggest). I am still out by 4 hours.
momofoneParticipantmomofoneParticipantThis reply is private.
momofoneParticipantThis reply is private.
April 23, 2018 at 8:26 am in reply to: Disparity between ETP stock remaining and WooCommerce product stock remaining #1513829momofoneParticipantThis reply is private.
momofoneParticipantI’m not sure what version of PHP you have but you could try this also:
function sp_add_event_price($data) {
momofoneParticipantYou could try grabbing the fields by key name e.g. _ecp_custom_1, _ecp_custom_2 etc.
Using:
add_filter( 'tribe_rest_event_data', 'sp_add_event_price' ); function sp_add_event_price($data, $event) { $event_id = $data['id']; $data = array_merge( $data, array( 'price' => get_post_meta( $event_id, '_ecp_custom_2', true ), 'price2' => get_post_meta( $event_id, '_ecp_custom_3', true ), )); return $data; }
momofoneParticipantYou may find this a bit more useful if you’ve got version 4.5 or later
add_filter( 'tribe_rest_event_data', 'sp_add_custom_fields' ); function sp_add_custom_fields( $data, $event ) { $event_id = $data['id']; $custom_fields = get_post_custom($event_id); foreach ( $custom_fields as $key => $value ) { $data = array_merge( $data, array( $key => $value, )); return $data; } }
Since it just scoops up the custom fields and adds them to the end of the response – after the organizer. It adds to both the single and the archive.
momofoneParticipantYou sure can, thanks!
momofoneParticipantmomofoneParticipantThis reply is private.
momofoneParticipantIn addition – does the cost / price of the ticket get output via the REST api (for archive/list as opposed to the single product) for display on our HTML website?
-
AuthorPosts