WordPress.org

Ready to get started?Download WordPress

Forums

WP Event Ticketing
removing "coupon code" option and "apply coupon" bu (7 posts)

  1. petarda
    Member
    Posted 3 years ago #

    I'm trying to remove the "coupon code" option and "apply coupon" button, from my event ticketing page- but there doesn't seem to be the option to do so.
    Here's a link: http://anielqa.com/work_in_progress/MustangContest/?page_id=2
    Please advise.
    Thanks!

  2. John Hawkins
    Member
    Plugin Author

    Posted 3 years ago #

    in ticketing.css, find this section:

    #eventTicketing tr.coupon, #eventTicketing tr.paypalbutton {
      text-align: right;
    }

    and make it look like this:

    #eventTicketing tr.coupon, #eventTicketing tr.paypalbutton {
      text-align: right;
      visibility: hidden;
    }
  3. toddhuish
    Member
    Plugin Contributor

    Posted 3 years ago #

    Actually that ends up hiding the paypal button too

    Comment out Line 2218 in ticketing.php. That is the coupon <tr>

    I'll add a ticket to make this an option in a future release.

  4. alsc
    Member
    Posted 2 years ago #

    Hi todd,

    can you be more specific? What section should I comment out?

    Thank you.

  5. alsc
    Member
    Posted 2 years ago #

    Bygones. I got it.

    echo '<tr class="coupon"><td colspan="2"><label for="couponCode">Coupon Code:</label><input class="input" name="couponCode"></td><td colspan="' . ($o["displayPackageQuantity"] == 1 ? "2" : "1") . '"><input type="submit" name="couponSubmitButton" value="Apply Coupon"></td></tr>';

    should be removed or commented out.

    [Please post code snippets between backticks or use the code button.]

  6. rorschachdesign
    Member
    Posted 2 years ago #

    Thanks alsc! I was going through the code trying everything and you nailed it.

    Great plugin, this is a minor glitch all in all.

  7. Tpas
    Member
    Posted 2 years ago #

    Hi everyone,
    I am very new to the wp event ticketing and just posted my first event. i didn't like the empty coupon field there so referenced alsc's suggestions and removed the coupon button.
    Now we are doing a special promotion and actually need to use the coupon field. When I try to post the language back into the original space it gives me an error. Any ideas how I can make the changes without reloading the whole plug-in. would greatly appreciate.

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic