Title: Adding code to my tickets
Last modified: March 23, 2021

---

# Adding code to my tickets

 *  [jeff41](https://wordpress.org/support/users/jeff41/)
 * (@jeff41)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/adding-code-to-my-tickets/)
 * I have written a lot of compiled and interpreted code for PC. However I am lost
   as to how to implement some of the example php code you have. Where is it placed
   to work with my tickets.
 * I want to be able to allow a credit card to be used if the dollar value is more
   tan a certain amount. I would also like to have a x tickets for $Y with x being
   deducted from the available tickets.
 * I think I need to write some code for that.
 * Thanks, Jeff

Viewing 1 replies (of 1 total)

 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/adding-code-to-my-tickets/#post-14230934)
 * The easiest way to handle the gateways question would probably be with JavaScript;
   I don’t see any way to do it on the PHP side off hand.
 * But using JS, you could monitor the total value and show or hide the selector
   for a credit card gateway based on the total. Not foolproof, but would pretty
   much serve the purpose.
 * I can’t think of a way to do a 3 for $5 deal, however, off hand.

Viewing 1 replies (of 1 total)

The topic ‘Adding code to my tickets’ is closed to new replies.

 * ![](https://ps.w.org/my-tickets/assets/icon-256x256.png?rev=1097581)
 * [My Tickets - Accessible Event Ticketing](https://wordpress.org/plugins/my-tickets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/my-tickets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/my-tickets/)
 * [Active Topics](https://wordpress.org/support/plugin/my-tickets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/my-tickets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/my-tickets/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/adding-code-to-my-tickets/#post-14230934)
 * Status: not resolved