{"id":1356117,"date":"2017-09-28T08:15:24","date_gmt":"2017-09-28T15:15:24","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/notifications-and-css-help\/"},"modified":"2017-09-28T08:15:24","modified_gmt":"2017-09-28T15:15:24","slug":"notifications-and-css-help","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/notifications-and-css-help\/","title":{"rendered":"Notifications and CSS Help"},"content":{"rendered":"<p>Hi there,<\/p>\n<p>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&#8230; <\/p>\n<p><strong>Here was my original question and the answer from Jennifer:<\/strong><\/p>\n<p>Hey\u2014I have installed the Events Tickets Plus plugin on a site for a client who sells tickets to workshops and she isn\u2019t getting notifications when someone purchases a ticket on her site\u2026 she only gets notifications from Paypal or her bank as transactions come through.<\/p>\n<p>How can I set up the plugin to send a notification anytime someone rsvps or purchases a ticket??<\/p>\n<p>========================<br \/>\nPLEASE LEAVE FOR SUPPORT<br \/>\nReporting the same issue as: https:\/\/theeventscalendar.com\/support\/forums\/topic\/email-notifications-3\/<\/p>\n<p><strong>Jennifer:<\/strong><\/p>\n<p>Hi Katherine,<\/p>\n<p>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( \u2018admin_email\u2019 ). 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.<\/p>\n<p>Please let me know if that works for you!<\/p>\n<p>Thanks,<\/p>\n<p>Jennifer<\/p>\n<p>===============================<\/p>\n<p>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 &lt;?php when pasting the snippet in and excluding it since it was already in the .php file at the top\u2014either way the site failed to load)<\/p>\n<pre><code>&lt;?php\n\/* ADD custom theme functions here  *\/\n\n\/**\n * Changes the redirect URL for the Return To Shop button in the cart.\n *\n * @return string\n *\/\nfunction wc_empty_cart_redirect_url() {\n\treturn &#039;https:\/\/www.mindbodyfeeling.co.uk\/events\/&#039;;\n}\nadd_filter( &#039;woocommerce_return_to_shop_redirect&#039;, &#039;wc_empty_cart_redirect_url&#039; );\n\nfunction wc_custom_redirect_continue_shopping() {\n  return &#039;https:\/\/www.mindbodyfeeling.co.uk\/events\/&#039;;\n}\nadd_filter( &#039;woocommerce_continue_shopping_redirect&#039;, &#039;wc_custom_redirect_continue_shopping&#039; );\n\n\/**\n  * BCC multiple email addresses, including the site admin email address, on all Event Tickets&#039; RSVP ticket emails so they get a copy of it too\n  *\n  * From https:\/\/gist.github.com\/cliffordp\/c4fb2ea8fb5ca44973ff06e6facc9742\n  * A fork of https:\/\/gist.github.com\/cliffordp\/4f06f95dbff364242cf54a3b5271b182\n  * For https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-free-not-plus-rsvp-notifications\/#post-1272819\n  *\n  * @link https:\/\/developer.wordpress.org\/reference\/functions\/wp_mail\/#comment-349\n  *\/\nfunction cliff_et_rsvp_bcc_admin_and_more_ticket() {\n\t$bccs = array(\n\t  get_option( &#039;admin_email&#039; ), \/\/ the site admin email, probably do not want to edit this line\n\t  \u2018hello@courtneykyle.com&#039;, \/\/ edit or delete this line\n\t);\n\t\n\t\/\/ set Headers to Event Tickets&#039; default\n\t$headers = array( &#039;Content-type: text\/html&#039; );\n\t\n\t\/\/ add each BCC email if it&#039;s a valid email address\n\tforeach ( $bccs as $bcc ) {\n\t\t$bcc = sanitize_email( $bcc );\n\t\t\n\t\tif ( is_email( $bcc ) ) {\n\t\t\t$headers[] = sprintf( &#039;Bcc: %s&#039;, $bcc );\n\t\t}\n\t}\n\t\n\treturn $headers;\n}\nadd_filter( &#039;tribe_rsvp_email_headers&#039;, &#039;cliff_et_rsvp_bcc_admin_and_more_ticket&#039; );<\/code><\/pre>\n<p>===============================<\/p>\n<p>I have 2 other things I need help with as well:<\/p>\n<p>1) the Buy Now! button is sitting higher than the price box, I&#8217;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\/<\/p>\n<p>2) When you click &#8220;Buy Now!&#8221; the page loads at the bottom of the event page&#8230; I&#8217;m not sure why, but I would prefer it if users didn&#8217;t have to scroll up to the top of the page first. Any way to fix that?<\/p>\n","protected":false},"template":"","class_list":["post-1356117","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Notifications and CSS Help -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/notifications-and-css-help\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Notifications and CSS Help -\" \/>\n<meta property=\"og:description\" content=\"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&#8230; Here was my original question and the answer from Jennifer: Hey\u2014I have installed the Events Tickets Plus [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/notifications-and-css-help\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/notifications-and-css-help\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/notifications-and-css-help\/\",\"name\":\"Notifications and CSS Help -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-09-28T15:15:24+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/notifications-and-css-help\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/notifications-and-css-help\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/notifications-and-css-help\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Ticket Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Event Tickets Plus\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Notifications and CSS Help\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Notifications and CSS Help -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/notifications-and-css-help\/","og_locale":"en_US","og_type":"article","og_title":"Notifications and CSS Help -","og_description":"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&#8230; Here was my original question and the answer from Jennifer: Hey\u2014I have installed the Events Tickets Plus [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/notifications-and-css-help\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/notifications-and-css-help\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/notifications-and-css-help\/","name":"Notifications and CSS Help -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-09-28T15:15:24+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/notifications-and-css-help\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/notifications-and-css-help\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/notifications-and-css-help\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Ticket Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/"},{"@type":"ListItem","position":4,"name":"Event Tickets Plus","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/"},{"@type":"ListItem","position":5,"name":"Notifications and CSS Help"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1356117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1356117\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1356117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}