{"id":1064111,"date":"2016-01-28T19:01:21","date_gmt":"2016-01-29T03:01:21","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/multiple-database-entries-for-_eventcost-after-adding-event-tickets\/"},"modified":"2016-02-23T08:35:04","modified_gmt":"2016-02-23T16:35:04","slug":"multiple-database-entries-for-_eventcost-after-adding-event-tickets","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/multiple-database-entries-for-_eventcost-after-adding-event-tickets\/","title":{"rendered":"Multiple database entries for _EventCost after adding Event Tickets"},"content":{"rendered":"<p>There doesn&#8217;t seem to be a forum for Event Tickets so you might want to move this somewhere else, but I found a possible problem I wanted to report.<\/p>\n<p>We use Events Calendar Pro and recently installed Event Tickets &#8211; the RSVP feature is perfect for our simple needs. One problem we noticed is the behavior of the Event Cost field. The expected behavior is perfectly clear and acceptable:<\/p>\n<ol>\n<li>enter a zero for Event Cost and the event detail page should show Cost: Free<\/li>\n<li>leaving the Event Cost blank should make the Cost: lines not display at all<\/li>\n<\/ol>\n<p>Normally we want the second option (blank) because our events do cost money, but not a fixed amount &#8211; they include food and beverages so people pay at the end of the event.<\/p>\n<p>The problem is that even when leaving the Cost blank it still shows FREE on the event page.<\/p>\n<p>Today I discovered why this is happening. There are multiple entries in the database for _EventCost. One of these entries has a zero and the other contains a blank. As soon as I remove the record containing zero the Cost: Free lines are gone as they should be. As soon as I edit an event, just changing some descriptive text and leaving the Cost blank, the extra database entry, with a zero in the cost reappears.<\/p>\n<p>Just to be clear, this is in the wp_postmeta table. When it only has one record where the meta_key column contains _EventCost and the meta_value column is blank, the event detail page does not show Cost: Free. However, if I then make any change and update the event, a second record will be added to wp_postmeta where meta_key is _EventCost and meta_value is zero.<\/p>\n<p>Hope this is clear and helps you solve the problem.<\/p>\n","protected":false},"template":"","class_list":["post-1064111","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>Multiple database entries for _EventCost after adding Event Tickets -<\/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\/multiple-database-entries-for-_eventcost-after-adding-event-tickets\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Multiple database entries for _EventCost after adding Event Tickets -\" \/>\n<meta property=\"og:description\" content=\"There doesn&#8217;t seem to be a forum for Event Tickets so you might want to move this somewhere else, but I found a possible problem I wanted to report. We use Events Calendar Pro and recently installed Event Tickets &#8211; the RSVP feature is perfect for our simple needs. One problem we noticed is the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/multiple-database-entries-for-_eventcost-after-adding-event-tickets\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-02-23T16:35:04+00:00\" \/>\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=\"2 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\/multiple-database-entries-for-_eventcost-after-adding-event-tickets\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/multiple-database-entries-for-_eventcost-after-adding-event-tickets\/\",\"name\":\"Multiple database entries for _EventCost after adding Event Tickets -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-01-29T03:01:21+00:00\",\"dateModified\":\"2016-02-23T16:35:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/multiple-database-entries-for-_eventcost-after-adding-event-tickets\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/multiple-database-entries-for-_eventcost-after-adding-event-tickets\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/multiple-database-entries-for-_eventcost-after-adding-event-tickets\/#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\":\"Multiple database entries for _EventCost after adding Event Tickets\"}]},{\"@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":"Multiple database entries for _EventCost after adding Event Tickets -","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\/multiple-database-entries-for-_eventcost-after-adding-event-tickets\/","og_locale":"en_US","og_type":"article","og_title":"Multiple database entries for _EventCost after adding Event Tickets -","og_description":"There doesn&#8217;t seem to be a forum for Event Tickets so you might want to move this somewhere else, but I found a possible problem I wanted to report. We use Events Calendar Pro and recently installed Event Tickets &#8211; the RSVP feature is perfect for our simple needs. One problem we noticed is the [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/multiple-database-entries-for-_eventcost-after-adding-event-tickets\/","article_modified_time":"2016-02-23T16:35:04+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/multiple-database-entries-for-_eventcost-after-adding-event-tickets\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/multiple-database-entries-for-_eventcost-after-adding-event-tickets\/","name":"Multiple database entries for _EventCost after adding Event Tickets -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-01-29T03:01:21+00:00","dateModified":"2016-02-23T16:35:04+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/multiple-database-entries-for-_eventcost-after-adding-event-tickets\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/multiple-database-entries-for-_eventcost-after-adding-event-tickets\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/multiple-database-entries-for-_eventcost-after-adding-event-tickets\/#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":"Multiple database entries for _EventCost after adding Event Tickets"}]},{"@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\/1064111","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":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1064111\/revisions"}],"predecessor-version":[{"id":1064573,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1064111\/revisions\/1064573"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1064111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}