Notifications and CSS Help

Home Forums Ticket Products Event Tickets Plus Notifications and CSS Help

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1356117
    Katherine Kyle
    Participant

    Hi there,

    I submitted a ticket about a month ago and have only just got around to trying out the recommended solution, unfortunately the solution (adding a snippet to my functions.php file) made my site fail to load…

    Here was my original question and the answer from Jennifer:

    Hey—I have installed the Events Tickets Plus plugin on a site for a client who sells tickets to workshops and she isn’t getting notifications when someone purchases a ticket on her site… she only gets notifications from Paypal or her bank as transactions come through.

    How can I set up the plugin to send a notification anytime someone rsvps or purchases a ticket??

    ========================
    PLEASE LEAVE FOR SUPPORT
    Reporting the same issue as: https://theeventscalendar.com/support/forums/topic/email-notifications-3/

    Jennifer:

    Hi Katherine,

    You should be able to get this notification set up by adding the snippet in the other post in the functions.php file of your child theme. You may need to edit it slightly, depending on the email address you would like the email to go to. If you want it to go to the admin email for the site, you can leave this line in place: get_option( ‘admin_email’ ). Then, you can either edit the two placeholder emails underneath or remove them if you only want the email to go to the site admin.

    Please let me know if that works for you!

    Thanks,

    Jennifer

    ===============================

    I need notifications to work for my client so that she will get an email whenever someone registers for an event on her website. I added the snippet to my functions.php, could it be that I already had another custom function in the file? It looked like the following when I finished editing and uploading (NOTE: I tried including the <?php when pasting the snippet in and excluding it since it was already in the .php file at the top—either way the site failed to load)

    <?php
    /* ADD custom theme functions here  */
    
    /**
     * Changes the redirect URL for the Return To Shop button in the cart.
     *
     * @return string
     */
    function wc_empty_cart_redirect_url() {
    	return 'https://www.mindbodyfeeling.co.uk/events/';
    }
    add_filter( 'woocommerce_return_to_shop_redirect', 'wc_empty_cart_redirect_url' );
    
    function wc_custom_redirect_continue_shopping() {
      return 'https://www.mindbodyfeeling.co.uk/events/';
    }
    add_filter( 'woocommerce_continue_shopping_redirect', 'wc_custom_redirect_continue_shopping' );
    
    /**
      * BCC multiple email addresses, including the site admin email address, on all Event Tickets' RSVP ticket emails so they get a copy of it too
      *
      * From https://gist.github.com/cliffordp/c4fb2ea8fb5ca44973ff06e6facc9742
      * A fork of https://gist.github.com/cliffordp/4f06f95dbff364242cf54a3b5271b182
      * For https://theeventscalendar.com/support/forums/topic/event-tickets-free-not-plus-rsvp-notifications/#post-1272819
      *
      * @link https://developer.wordpress.org/reference/functions/wp_mail/#comment-349
      */
    function cliff_et_rsvp_bcc_admin_and_more_ticket() {
    	$bccs = array(
    	  get_option( 'admin_email' ), // the site admin email, probably do not want to edit this line
    	  ‘[email protected]', // edit or delete this line
    	);
    	
    	// set Headers to Event Tickets' default
    	$headers = array( 'Content-type: text/html' );
    	
    	// add each BCC email if it's a valid email address
    	foreach ( $bccs as $bcc ) {
    		$bcc = sanitize_email( $bcc );
    		
    		if ( is_email( $bcc ) ) {
    			$headers[] = sprintf( 'Bcc: %s', $bcc );
    		}
    	}
    	
    	return $headers;
    }
    add_filter( 'tribe_rsvp_email_headers', 'cliff_et_rsvp_bcc_admin_and_more_ticket' );

    ===============================

    I have 2 other things I need help with as well:

    1) the Buy Now! button is sitting higher than the price box, I’ve tried to sort out the CSS using Chrome Dev tools but to no avail, could you recommend a fix for this? You can see the issue here: https://mindbodyfeeling.co.uk/events/

    2) When you click “Buy Now!” the page loads at the bottom of the event page… I’m not sure why, but I would prefer it if users didn’t have to scroll up to the top of the page first. Any way to fix that?

    #1357004
    Andras
    Keymaster

    Hello Katherine,

    Thanks for getting in touch with us again. I’m sorry to hear the recommended solution did not work out. Let me try to help you get this fixed, and for that, let’s go back to first base.

    The site itself has an administrator email address, which you can find under Settings > General in your WordPress dashboard. Does that email address receive any emails of ticket purchases? Or any email from the website? (You can easily test that with creating a new user on the site. When a new user is created, the admin email address should receive an email about this.)

    If the email arrives, good, that means that the email system built into WordPress works.

    If the email from the new user does not arrive, then there’s a problem with the email sending of the website. In this case using an smtp plugin is recommended. (You can find some of those on this page.)

    Once we cleared this we will be able to move forward with this.

    the Buy Now! button is sitting higher than the price box

    It looks like the theme you are using makes a small modification to the style. No worries. If you copy this little snippet into your theme’s (child theme’s) style.css file, that should fix it:

    .tribe-events-event-cost form {
    margin-bottom: 0;
    }

    When you click “Buy Now!” the page loads at the bottom of the event page

    It scrolls to the bottom of the page because that is where the ticket form is.

    With this snippet, if you copy it to the functions.php file of your theme, you will get the desired result.

    function buy_now_to_top ( $html ) {
    return preg_replace( '/#buy-[a-z]+/', '', $html );
    }
    add_filter( 'tribe_tickets_buy_button', 'buy_now_to_top' );

    This doesn’t count with the RSVPs. Let me know if you need those included as well.

    Cheers,
    Andras

    #1361959
    Katherine Kyle
    Participant

    Hi! Thanks for this–the CSS and functions.php fixes you sent me worked, I am meeting with the client later today so I will test with her to make sure she is receiving admin emails and get back to you.

    Thanks for all of your help,

    Courtney

    #1362240
    Andras
    Keymaster

    Sure thing Courtney, thanks for getting back to me on this.

    Let me know how the test works out. I’m eager to hear. 🙂

    Cheers,
    Andras

    #1365304
    Katherine Kyle
    Participant

    Hey Andras!

    Apologies for being painfully slow to respond here… I spoke with the client and we did the new-user test you recommended in order to see if she was getting emails, lo and behold she is NOT receiving those emails. So, I am going to check out those smpt plugins you recommended. Once I install one of those, should we expect notifications to work or do I need to try using that .php snippet again from here?

    The client also brought up two other issues, first… is there a way to get the £ in front of the amount rather than after? See attached screen-shot, or go here here: https://mindbodyfeeling.co.uk/events/

    Second… she uses her iPad to make updates to her website, when she views her Events dashboard from the WordPress dashboard, the columns get really narrow and push all the text into narrow columns with bad breaks that are hard to read, see screen shot for example (note I screen-shotted my browser window minimised some to demonstrate). Anything we can do to help that?

    Many thanks!

    Courtney

    #1365832
    Andras
    Keymaster

    Hello Courtney,

    No worries about the slow response. Some things take more time than usual or expected. 🙂

    she is NOT receiving those emails

    I have 3 notes to add to this:

    • Probably you / she did, but please check your spam folder as well. We do our best so that our emails don’t end up there, but unfortunately that happens.
    • If she’s using a corporate email you can possibly check this with the IT department there. Can happen that the corporate email spam filter throws it away.
    • When testing it is a good idea to add another email address to the below list, yours or an external gmail or whatever email address to see whether the email reaches there. This can help pinpoint whether the issue is on the WordPress site (not sending emails) or on the receiver side (spam filter).
     get_option( 'admin_email' ), // the site admin email, probably do not want to edit this line
    '[email protected]', // edit or delete this line
    '[email protected]', // edit or delete this line, and even add another if you want
    );

    Once I install one of those, should we expect notifications to work or do I need to try using that .php snippet

    By default out plugin only send admin notification emails to the website admin’s email address that is set up on your dashboard under Settings > General.

    If you would like other addresses to get the emails as well, you will need to use that snippet.

     is there a way to get the £ in front of the amount rather than after?

    Absolutely, there is a setting under Events > Settings >  General tab > Currency symbol follows valuescreenshot. Looks like on this . Probably that checkbox is checked. Remove it, save and you should be set. If that doesn’t do it, then also adjust your settings under WooCommerce > Settings > General tab > Currency options.

    when she views her Events dashboard from the WordPress dashboard, the columns get really narrow and push all the text into narrow columns

    I totally know where you’re / she’s coming from. I can recommend 2 solutions for this.

    1) At the top right of the screen you should see a button labeled ‘Screen Options’. If you open that you can select which columns you would like to see or hide. Here is a screenshot of that.

    This is a per-user setting, so every user needs to set this up for themselves.

    2) You can download and use our Advanced Post Manager (APM) plugin which does the above settings and nice filtering options as well.

    I hope these help! Let me know if there’s anything else I can help you with.

    Cheers,
    Andras

    #1379955
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Notifications and CSS Help’ is closed to new replies.