Hey, friends! My employer (Florida Studio Theatre) sells a lot of subscriptions. We need to be able to send out order confirmations that hide the dates & times of performances far in the future when necessary. We have systems that respect that for TNEW and current order confirmations, but we are trying to re-engineer this using HTML Templates.
I don't really have Razor skills, so I am looking for structures to copy. Using the recipe book's "SHOW DYNAMIC PRODUCT CONTENT" methods, I can display the Content Value that tells TNEW to hide date/time for a particular Performance or Performance Season. I have not been able to use the existence of that value to control whether or not to show "@performance.PerformanceDateTime" and I feel like it should be easy/obvious. Does anyone have advice? We could hire (as a contractor) someone with mad skills; I guarantee there will be more things to convert in the next year.
Hi Clarke,
Instead of displaying the content value, you can use that content value in an IF statement, and then use that IF statement to display the performance date or not. So it would look something like:
IF (performance has content value){ display just performance title}
ELSE{display performance title and performance date}
Does that help?
That is what I am trying to do, but everything seems to break something else. I will try again.
My Razor skills are pretty non-existent; I bought a book and am trying to make myself competent.