Forum Replies Created
-
AuthorPosts
-
Paul
ParticipantCheers Brook, yeah useful to know if any of your other customers are using that theme.
Paul
ParticipantHi Cliff,
I reverted back to the Twenty Fifteen in a test environment and yes, the EDD and WPEC options disappeared, so it was related to the Avada theme. I have gone into the theme files and removed the ‘offending code’ so that those options no longer appear.
Many thanks for your assistance.
Regards,
Paul
Paul
ParticipantHi Brian,
Yes that’s right, it’s not appearing in emails that go out to customers when they have purchased a ticket.
I’m not aware of any scripts or coding on the server that would prevent image downloads from displaying outside the website. you can see more info here: http://www.catthorpemanor.co.uk/phpinfo.php.
Regards,
Paul
Paul
ParticipantThis reply is private.
Paul
ParticipantHi Cliff,
Thanks, I understand. How do I deactivate EDD? It’s not an actual plugin and there’s no option within Event Tickets to disable it?
Regards,
Paul
Paul
ParticipantThis reply is private.
February 24, 2016 at 5:53 am in reply to: Moving 'Tickets' from bottom of sidebar to the top #1081378Paul
ParticipantBrian, disregard my last message, adding:
tribe_etp_move_tickets_purchase_form( ‘tribe_events_single_event_before_the_meta’ );
After the above code block has worked fine.
Many thanks for your help,
Paul
February 24, 2016 at 5:45 am in reply to: Moving 'Tickets' from bottom of sidebar to the top #1081372Paul
ParticipantHi,
Would each of these lines be added to the above code? For example, for number 1:
/*
* Moves the front-end ticket purchase form, accepts WP action/hook and optional hook priority
*
* @param $ticket_location_action WP Action/hook to display the ticket form at
* @param $ticket_location_priority Priority for the WP Action */
function tribe_etp_move_tickets_purchase_form ( $ticket_location_action, $ticket_location_priority = 100 ) {
$etp_classes = array(
‘Tribe__Tickets_Plus__Commerce__EDD__Main’,
// ‘Tribe__Tickets_Plus__Commerce__Shopp__Main’, // As of ETP v4.0 Shopp will generate errors when referenced, if not active. Uncomment this line if you have Shopp Active
‘Tribe__Tickets_Plus__Commerce__WPEC__Main’,
‘Tribe__Tickets_Plus__Commerce__WooCommerce__Main’
);
foreach ( $etp_classes as $ticket_class ) {
if ( ! class_exists( $ticket_class ) ) break;
$form_display_function = array( $ticket_class::get_instance(), ‘front_end_tickets_form’ );
if ( has_action ( ‘tribe_events_single_event_after_the_meta’, $form_display_function ) ) {
remove_action( ‘tribe_events_single_event_after_the_meta’, $form_display_function, 5 );
add_action( $ticket_location_action, $form_display_function, $ticket_location_priority );
tribe_etp_move_tickets_purchase_form( ‘tribe_events_single_event_before_the_content’ );
}
}
}Thanks,
Paul
-
This reply was modified 10 years, 1 month ago by
Paul.
Paul
ParticipantHi Brian, thanks for the prompt reply. I have added the code above to the theme’s functions.php file and the error code has gone, but the Tickets section is still at the bottom of the sidebar. I’ll create a new topic in the forum so we can communicate one on one.
Regards,
Paul
Paul
ParticipantHi,
I have tried adding the code at https://theeventscalendar.com/knowledgebase/moving-the-ticket-form/ to my theme’s functions.php file but I get the following error:
Fatal error: Call to undefined function tribe_etp_move_tickets_purchase_form() in C:\wamp\www\cm\wp-content\themes\HotelRugby\functions.php on line 605
Can anyone help? I just want to move the ‘Tickets’ section at the bottom of the right sidebar to the top of the sidebar (http://catthorpemanor.co.uk/event/game-of-groans-murder-mystery-saturday-16th-april/).
Thanks.
Paul
-
This reply was modified 10 years, 1 month ago by
-
AuthorPosts
