Date and start and end-time separate columns

  • M Thijssen
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 5 months ago #152524 by M Thijssen
Hallo,

Great component!

We are looking for display-option in the list-view.
The list view has Start_date en End_date which now show day date and time.
Start_Date                                      End_Date 
Woensdag 29-05-2022   12:00       Woensdag 29-05-2022  14:30

We would like to have a column which displays the day of the event. And a second column which shows start-time and end-time. 
DATE                              TIME
Woensdag 29 march      12:00 - 14:30

Can't find this option. Any help would be great.



Best regards
Marcel

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

More
2 years 5 months ago #152525 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Date and start and end-time separate columns
Hi Marcel

That option is not supported, so code modification will be needed. The file you need to modify is components/com_eventbooking/themes/default/common

The question is what if event date and event end date is not in the same day? Displaying data like that will be wrong for that case

Tuan

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

  • M Thijssen
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 5 months ago #152530 by M Thijssen
Replied by M Thijssen on topic Date and start and end-time separate columns
Thanks for the quick reply.

I understand your concern, but in our case that wil never happen.
And i would never say that if I wasn't a 1000% certain :-)
I'll keep it in mind and put some comments in the code for future coders.

Thanks!

Best regards
Marcel

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

More
2 years 5 months ago #152540 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Date and start and end-time separate columns
Hi Marcel

Please get this file, unzip it, upload the received file to components/com_eventbooking/themes/default/common folder, then check to see if it works. If Yes, you can move that modified file to PATH_TO_TEMPLATE/html/com_eventbooking/common folder (PATH_TO_TEMPLATE is path to the template which you are using on your site) so that the change won't be lost when you update to future releases of the extension

Regards,

Tuan
Attachments:

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

  • M Thijssen
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 5 months ago #152579 by M Thijssen
Replied by M Thijssen on topic Date and start and end-time separate columns
Hi Tuan,

Sorry for the late reply, I was out and away the last days.

But thanks for your file! I added it and it's almost right.
The data is switched :-) The date is time and time is date.
I attached a screen-image with the name of the columns in the php-file.
Would be great of you have the time to chance it. 

Beste regards, Marcel
Attachments:

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

More
2 years 5 months ago #152583 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Date and start and end-time separate columns
Sorry, there was a small typo. Please use this updated file and it should be OK

Regards,

Tuan
Attachments:
The following user(s) said Thank You: M Thijssen

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

  • M Thijssen
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 4 months ago #153070 by M Thijssen
Replied by M Thijssen on topic Date and start and end-time separate columns
Hi Tuan,

I have changed the columns and that's working fine. Thanks for that!
When you register the mail and the thank you page display only the time. 
We would like to display the date. Could you help me with that?

 

Best regards,
Marcel 
  • Please Log in or Create an account to join the conversation.

    More
    2 years 4 months ago #153071 by Tuan Pham Ngoc
    Replied by Tuan Pham Ngoc on topic Date and start and end-time separate columns
    Not sure if you customized something but I don't think we have that layout in the email ?

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

    • M Thijssen
    • Topic Author
    • Offline
    • Junior Member
    • Junior Member
    More
    2 years 4 months ago #153072 by M Thijssen
    Replied by M Thijssen on topic Date and start and end-time separate columns
    Hi Tuan,

    That's correct, it is an adjusted table-layout for the events list.
    I disable some columns in the table layout. And with your help I changed the displayed date and time annotation

    It doesn't show any prices, and the start-date-time and end date time is edited.
    All our events are max 2 hours and always on the same day.

     

    Works perfect for us.
    Now we also would like to change the column entry in this page:
    .../checkout/registration-complete?registration_code=uXJd8b4WIZ

     

    And the 'Event registration confirmation'-mail:
     

    But can't find which file(s) to edit. Any help would be great
    Best regards, Marcel 
  • Please Log in or Create an account to join the conversation.

    More
    2 years 4 months ago #153073 by Tuan Pham Ngoc
    Replied by Tuan Pham Ngoc on topic Date and start and end-time separate columns
    Could you send me link to the page which I can see this event? I will try to register and tell you the file so that you can try to modify

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