• tgd

    (@terrydaisydesignsca)


    This is not a support request, but rather help to those who wish to have printable tickets.
    I’m using Print-O-matic plugin with Camptix to make the tickets printable. You will have to edit the camptix.php file, though. The print-o-matic plugin uses shortcodes, so the shortcode must be added to camptix using the do_shortcode() hook after the table with the class of tix-ticket-form. I’ve also modified that table to list the ticket details on the left, with a thumbnail of the ticket’s featured image on the right (I also added support for the featured image on line 840). The Print-O-matic plugin allows for printing of just the tickets without the rest of the page header, content, or footer. Quite handy. If anyone else wants to find out more, drop me a line.

    https://wordpress.org/plugins/camptix/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Ian Dunn

    (@iandunn)

    Thanks for posting this. Editing camptix.php isn’t a good idea, though, because your changes will be overwritten whenever you update the plugin, or you’ll be tempted to never update the plugin, which is a security risk.

    There should be a way to use custom hooks to do this gracefully from a second plugin. For more information see The Right Way to Customize a WordPress Plugin and the Hooks section of the Plugin Developer Handbook.

    Thread Starter tgd

    (@terrydaisydesignsca)

    Thanks Ian,
    I realize that editing the plugin files isn’t a good idea, but for this one event I need to sell tickets for, I’ve actually changed the name of the plugin slightly so not to get updates that would revert the code. Like I said, this use is short-term, so I’m hoping that after this one event, there will be a permanent solution for printable tickets.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Printable Tickets’ is closed to new replies.