Support

Home Forums Event Espresso Premium Promo Codes – how to hide?

Promo Codes – how to hide?

Posted: December 19, 2013 at 6:52 am


Um Library

December 19, 2013 at 6:52 am

Hi, I do not work with promo codes and I have set the option *Allow discounts in the shopping cart* to NO.

However, on the registration page, the promo code field keeps showing under the regitration questions. How do I get rid of this?

Thanks, Ron


Tony

  • Support Staff

December 19, 2013 at 6:58 am

Hi Ron,

Within the Event itself you have Promo codes enabled.

Edit the event and look in the event settings (sidebar)
Under ‘Event Promotions’ set ‘Allow Promo Codes?’ to No Promo codes
http://d.pr/i/g91k

Then update the event and that should remove the promo field from the registration page.


Um Library

December 19, 2013 at 8:05 am

Thanks Tony; works. Manually changed 30 courses…
What is the use of the global setting in this case? And how can I make No Promotions the default for each event?

Thanks, Ron.


Josh

  • Support Staff

December 19, 2013 at 10:15 am

Hi Ron,

The global setting was added for cases where there are promo codes that should automatically be assigned to events without having to manually select theme for each event.

You can change the default for newly created events by using a filter.

Here’s something you can add to your custom file add-on’s custom_functions.php file or in a custom snippet plugin

add_filter( 'FHEE_default_use_coupon_code_value', 'pchth_promo_codes' );
function pchth_promo_codes() {
	return 'N';
}

This will change the default so all new events will be automatically set to “No Promo Codes”.

The support post ‘Promo Codes – how to hide?’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso