Home › Forums › Ticket Products › Event Tickets Plus › dynamic values
- This topic has 11 replies, 4 voices, and was last updated 7 years ago by iain.
-
AuthorPosts
-
February 24, 2017 at 3:27 pm #1245564iainParticipant
ok so I am trying to insert the name of the event into the subject line or body of emails and into my facebook tracking pixel. can you tell me what the name of this field is so I can insert it here. For example I’ve inserted {order_subtotal} which gives me the order amount for each sale that occurs as a result of my ads but because we have so many events I cannot decipher which event is creating the sale. I thought it’d be something like {event_name} any guidance with this would be greatly appreciated.
Thanks!
February 27, 2017 at 2:30 pm #1246491CliffMemberHi, iain.
Could you please specify where (e.g. which file) you’re trying to implement this?
Also, if you have a code snippet to include for review, that might help too.
February 27, 2017 at 3:34 pm #1246550iainParticipantI’m not putting it in a file it just shows up as an image of the thank you page and calls the variable order subtotal and i’d like it to call the name of the event created and stored by events calendar but I don’t know what you call that field in the database. I would replace the name of the event in the {eventname} below.
here is the pixel info that i have now:
<!– Facebook Pixel Code –><script>
fbq(‘track’, ‘Purchase’, {
value: {order_total},
currency: ‘USD’
});
</script><!– Facebook Pixel Code –><noscript></noscript><!– DO NOT MODIFY –> <!– End Facebook Pixel Code –>
<script>fbq(‘track’, ‘{eventname}’);</script>- This reply was modified 7 years, 1 month ago by iain.
February 27, 2017 at 7:27 pm #1246608CliffMemberThanks for those details.
The only place I recognize the curly brace format is from the tribe_event_inline shortcode. Is this what you’re using on one of your pages?
You also said you’re not putting your Facebook Pixel Code in a file, but then how/where are you implementing that code?
If you share an annotated screenshot or video screen capture, it might help communicate what you’re seeing and what exactly the issue is.
February 28, 2017 at 1:30 pm #1247185iainParticipantI am placing the pixel on the thankyou page of the order checkout – I don’t need the entire event info just the title.
I am hoping that {title} will fill in this info.
Screenshot of how I place the pixel attached.
Thanks for working on this with me.
February 28, 2017 at 3:46 pm #1247259CliffMemberI don’t see a screenshot attached. Could you please try sharing it again?
Also, please confirm if you are trying to use this in the context of the tribe_event_inline shortcode. If you are not, those curly braces wouldn’t work.
February 28, 2017 at 4:58 pm #1247285iainParticipantI am not using it with that code. the page already displays the event name – I just don’t know what the variable is that calls the event name onto the page. – I just need to pass that info into the pixel.
I could also place the same code on the woocommerce checkout page.
February 28, 2017 at 7:17 pm #1247345CliffMemberThanks for that screenshot.
Those curly brace merge fields are from WooCommerce or whatever third-party add-on you’re using (I’m guessing https://wordpress.org/plugins/woocommerce-conversion-tracking/) that makes that “Integration” tab appear.
I’d suggest asking that third-party add-on’s developer and see if they have any ideas or ability to custom code something for you.
Please let me know if you have any follow-up questions on this topic.
March 1, 2017 at 2:34 pm #1248003iainParticipantcan you atleast tell me the name of the field that the title of events are stored in on the database? This is something that the ticketing system writes to the db and I need to know where it is stored. That is all – yet somehow this has become significantly more complicated.
March 1, 2017 at 3:23 pm #1248038CliffMemberEvents are just a custom post type, so it would be available here in the database: https://cl.ly/1d1l2b33371p
Our templates use default WordPress functions like the_title() or get_the_title().
Examples:
- https://github.com/moderntribe/the-events-calendar/blob/4.4.3/src/views/single-event.php#L34
- https://github.com/moderntribe/the-events-calendar/blob/4.4.3/src/views/month/single-event.php#L28
Please let me know if there’s more I can help with here.
March 23, 2017 at 9:35 am #1258786Support DroidKeymasterHey 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 -
AuthorPosts
- The topic ‘dynamic values’ is closed to new replies.