Forum Replies Created
-
AuthorPosts
-
Melanie Adcock
ParticipantDoesn’t work. Oh well thanks for trying. I appreciate the effort.
Melanie Adcock
ParticipantAWESOME! This totally rocks! I actually think I am going to get this site live in the next couple of weeks. He is testing everything now (finally). I’ll upload and test and let you know.
Melanie
Melanie Adcock
ParticipantNo worries. I have plenty of other stuff to work on.
Melanie Adcock
ParticipantThanks Nico,
I’ve created another event for next Wednesday. http://gacpr.melanieadcockdevsites.com/class/bls-healthcare-providers-4/I would like to add the line of text under the word Tickets but before the quantity field. “Select the number of tickets you would like to purchase.
Melanie
Melanie Adcock
ParticipantAndras,
Not good news. I already have the category of Ticket going to Woocommerce. I posted the exact same code in my second post on this thread. I need Tags to be sent to Woocommerce hence the title of this thread. I can create a Tag for each month. And add the appropriate tag for each month. When the month is over my client can simply delete all events with the tag of the previous month.Melanie Adcock
ParticipantI spoke with my client yesterday. He is fine with it being zero. He is happy about the attendee name being added. I would like to add a line to point out to select # of tickets and also change the wording of the Attendees. The first attendee is a not a additional attendee but may or may not be the person purchasing. Therefore, I would like to change this to Name of Attendee. Which file is this located in so I can make an override template.
Melanie
Melanie Adcock
Participantyou were right. It was the code change that had the default showing as 1 (request by client). I disabled that and the attendee box shows. His concern is that most of his clients won’t see the quantity box. I had added the file tickets.php in the wootickets folder to my theme folder and change line 60 to 1.
woocommerce_quantity_input( array( 'input_name' => 'quantity_' . $ticket->ID, 'input_value' => 1, 'min_value' => 0, 'max_value' => $max_quantity, ) );I believe when I started this site back in December Event Ticket PLus came out just after I finished setting up WooTickets. It would be nice to have the default be 1 and have the attendee trigger but I’ll see which is his preference.
MelanieMelanie Adcock
ParticipantA few months ago (yes the project that had dragged on and on) I asked how to make the default 1 and got an answer. I’ll look on Monday. I am in the process of moving to a new state. I won’t have internet installed until Monday. I’ll take a look at the console and see what is happening. I’ll re-test with 2013/14.
Melanie
Melanie Adcock
ParticipantYes, by default I have changed the quantity to one. I have tested changing the quantity to 3 and 5 with the same result. Another poster said it was a Genesis child theme (Dynamik) conflict in her case but since I have even tested with 2014, and 2013 I still don’t see it working.
Melanie
Melanie Adcock
ParticipantI used a custom function to pass the category of Ticket to Woocommerce for each event. The reason being my client also sells tangible goods. This way I can have the classes not show as products in his store. I used the following function to add a category to woocommerce event product:
add_filter( ‘wootickets_after_save_ticket’, ‘tribe_add_category_to_woocommerce_tickets’ );
function tribe_add_category_to_woocommerce_tickets( $event_id ) {wp_set_object_terms( $event_id, ‘Ticket’, ‘product_cat’, true );
}
I need to make it obviously easy for my client to go in and delete passed products. Yes, I would look at the dates but who knows how often he will add them. Since the classes are always Wednesday, Thursday, and Saturday he may do a few months at a time. Sending the Tag to woocommerce would allow him to eliminate the past month easily.Melanie
Melanie Adcock
ParticipantGreat idea using tags or categories. that will make it easy!
Melanie
Melanie Adcock
ParticipantI actually figure it out after sleeping on it. Woke up with the answer. For others wanting to add the events to a page after the content this is what I did (I use Genesis). I didn’t want to reinvent the wheel and I knew I could add the excerpt to the widget and then make it conditional to a specific page thus avoiding a custom page template. I copied the needed tribe-events files to my theme folder following the Themer’s Guide.
1. Added the tribe_events_get_excerpt to the widget list view (widget-list.php) and made it conditional to the page I wanted it to appear on. 97 is the ID of the page. This was on line 56 on the list-widget.php.
<?php if(is_page(97)) { ?> <div class="tribe-event-widget-content"> <?php the_excerpt(); ?> <span class="eventbutton"><a href="<?php echo esc_url( tribe_get_event_link() ); ?>" class="tribe-events-read-more" rel="bookmark"><?php esc_html_e( 'Buy Tickets', 'the-events-calendar' ) ?> »</a></span> </div> <?php } ?>2. Created a custom widget area for that page by adding this to the functions.php file.
// Register openclass page widget area genesis_register_sidebar( array( 'id' => 'openclass-page-sidebar', 'name' => 'Open Class Page Events', 'description' => 'These are events at the bottom of the page.', ) );3. Added the sidebar to the page after the content using a hook in the functions.php file.
//* Add the page widget in the content - HTML5 - for the event list add_action( 'genesis_after_entry_content', 'mga_add_page_content' ); function mga_add_page_content() { if ( is_page(97) ) genesis_widget_area ('openclass-page-sidebar', array( 'before' => '<div class=“openclass”><div class="wrap">', 'after' => '</div></div>', ) ); }4. Added the List Widget to the new sidebar under Appearance > Widgets.
5. Styled the button with css.Worked perfectly http://gacpr.melanieadcockdevsites.com/openclass/
I even create a custom sidebar for the event page and single events and added that to the default page template.
January 25, 2016 at 8:57 am in reply to: Adding Category to Ticket in Woo – Overridding via Themer's Guide not working. #1061897Melanie Adcock
ParticipantThanks. I’ll use it unless you know a better way for my client to collect other attendees names when someone purchases more than one ticket a time.
Melanie
January 25, 2016 at 7:41 am in reply to: Adding Category to Ticket in Woo – Overridding via Themer's Guide not working. #1061811Melanie Adcock
ParticipantThanks Brian. I had the whole thing set up with WooTickets but since Events Ticket Plus came out I figure I would switch it before this site goes live. Save me the trouble of switching later.
Look forward to hearing from you.
MelanieJanuary 24, 2016 at 4:40 pm in reply to: Adding Category to Events Ticket Plus – Themer's override #1061431Melanie Adcock
ParticipantI posted this in the wrong place. Reposting in correct forum
-
AuthorPosts
