Custom Fields Order at Billing Fields

  • adyit
  • Topic Author
  • Away
  • New Member
  • New Member
More
12 years 9 months ago #17776 by adyit
Hello together,

i am looking for a solution to add a custom field at the first position.

The reason for that is, that i need the field: MRS or MR.

After this is the firstname and lastname field.

Any idea for me?

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
12 years 9 months ago #17831 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Custom Fields Order at Billing Fields
Hi

Unfortunately, in the current version of EB, you cannot move custom fields above the basic fields (First Name, Last Name...). So in this case, I think you will have to modify code to add that field to the form. Please have a look at the following files and you should be able to do it :

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

Regards,

Tuan

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

  • adyit
  • Topic Author
  • Away
  • New Member
  • New Member
More
12 years 9 months ago #18042 by adyit
Replied by adyit on topic Re: Custom Fields Order at Billing Fields
Hey, thank you for your help - yes i tried this but the problem is if i add the field manuel to the form i get this field twice time in the form because i have to enable this field at the custom fields in the backend. You see what i mean at the screenshot.

I hope you can give me an other tip for me, thx again


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

<tr>
<td class="title_cell" width="30%">
Anrede<span class="required">*</span>
</td>
<td class="field_cell">
<input type="radio" class="inputbox" name="eb_Anrede" value="Frau" size="25" />Frau
<input type="radio" class="inputbox" name="eb_Anrede" value="Herr" size="25" />Herr
</td>
</tr>

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

More
12 years 8 months ago #18552 by Nathan Morrow
Replied by Nathan Morrow on topic Re: Custom Fields Order at Billing Fields
Hi there,

I've been working on doing the same thing this morning.

Basically the solution in that you're going to have to comment out the bit of code that calls in all of the cutom fields on mass and you are going to have to add each custom field manually to the template file.

You can use a template override to do your modifications so you won't be messing with any of the core Events Booking files.

Override should live in:

$template/html/com_eventbooking/register/default.php

Hope that helps.

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
12 years 8 months ago #18569 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Custom Fields Order at Billing Fields
Yes, snaffle, that's the correct solution, thanks for sharing it. If you know some PHP programming, that should be easy .

Tuan

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

Moderators: Tuan Pham Ngoc