Posted: May 21, 2020 at 1:50 pm
I searched and could not find and answer to this question on the forums yet.
We want to display a “strikethrough price” that is the “original” price and at the same time display and sell a ticket with the sale price.
Is there a best-practice for this using EE?
I thought of storing the original price somewhere hidden in the ticket like you can with Event Meta but I don’t think there is a Ticket Meta.
The best I could come up with was to create a force sold-out ticket (0 quantity) and use some CSS and JS to do the re-formatting of the ticket selector – remove the Sold Out wording and change the price to a strikethrough.
I am not that happy about this solution as it seems kind of weird.
Any suggestions how to do this in the “EE” way?
With EE, everything has meta 🙂 it’s extra_meta.
Note that querying based on extra_meta is inefficient and not straightforward, but pretty much any entity within EE can have extra_meta attached to it.
So there’s nothing stopping you from saving extra_meta for a ticket, if you have an
To store a sale price value.
I’d recommend adding a field to the ticket editor and setting it through that, you can view how the WP User integration add-on does this here:
Outputting that price on the ticket selector isn’t going to be straightforward depending on where you want to output the price.
May I ask what output you are looking for?