Possible to make Coupon Code a required field?

More
11 years 2 months ago #55891 by James
Is it possible to make Coupon Code a required field?

If so how do I go about implementing this?

Many Thanks

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago #55907 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Possible to make Coupon Code a required field?
Hi James

Yes. It is possible. Depends on the registration type you are using, you can look at the following files:

components/com_eventbooking/views/register/tmpl/default.php
components/com_eventbooking/views/register/tmpl/cart.php
components/com_eventbooking/views/register/tmpl/group_billing.php

Find the code below:
Code:
<input type="text" class="input-medium" name="coupon_code" id="coupon_code"

Change class="input-medium" from the above code to class="input-medium validate[required]"

After that, coupon code field will be a required file

Regards,

Tuan

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago #55967 by James
Great, thanks so much , is it possible to this feature can be turned on and off for different events?

Thank you

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago #55994 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Possible to make Coupon Code a required field?
Hi James

You will need to customize code to do that. It could not be on/off based on event by default, need some customizations to the code. Maybe you can find a developer to help you with this one

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc