Automattic / camptix

Moved to https://github.com/WordPress/wordcamp.org/
177 stars 97 forks source link

Allow camptix to show specific tickets and columns in table #197

Open bretterer opened 6 years ago

bretterer commented 6 years ago

With the policy of having to do a ticket for "low level" sponsorships, I would like to suggest adding a few attributes to the [camptix] shortcode to let you specify which tickets to show on a page. Example. we have a "Become a sponsor" page, and I would like to show only the sponsor ticket levels "freelancer" and "small business" both under the $250 price.

Suggestion:

[camptix only="678, 680"]

This would show only the tickets with id 678 and 680 (ie. our sponsor ticket id's) that can be displayed on the "become a sponsor" page.

[camptix except="678, 680"]

Would display all tickets, except my sponsor levels.

The second part is to allow me to hide columns, Mainly the remaining tickets. I currently do this with CSS, but would be nice to have something like

[camptix hide="qty"]
iandunn commented 6 years ago

Can you describe the problem this would solve? Is it that having too many tickets available is confusing to attendees? We'd probably want some buy-in from the Community team before spending time on it.

From a technical perspective, before we can add any shortcode options, we'd need to change some of the fundamental architecture around get_tickets_post_id(), which is the cause of the limit of having 1 page with the [camptix] shortcode. That'd probably be better handled in a separate ticket.

bretterer commented 6 years ago

Hey @iandunn . The idea here is stated above as well But with the new requirements of having to sell a ticket for low level sponsorships, it would be nice to list the sponsorship tickets on the "become a sponsor" page, and only the ticket associated with the sponsorship we are talking about.

Example:

Become a Small Business sponsor ($250)

Info about the sponsorship

[camptix ticket_level="small_business"]

Become a Freelancer Sponsor ($100)

Info about the sponsorship

[camptix ticket_level="freelancer"]

Then, on the buy ticket page, we could set it up to either show all tickets, as it is now, or it may be nice to have a shortcode that hides tickets

[camptix except="freelancer, small_business"]

Hope that explains a little better.

nczz commented 6 years ago

Agree with this issue!

EliW commented 5 years ago

Bumping, because this would also be useful if you wanted to do things like have 'addon tickets'. IE: Want to buy a hoodie? ... that you don't list on the same page, or same table, as the tickets.

namortxka commented 5 years ago

any update in this issue??