Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: [SOLVED] Anyway to countdown capacity?

[SOLVED] Anyway to countdown capacity? 14 years 4 months ago #8879

  • allanklar
  • allanklar's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
My Client wants to see seats remaining rather than capacity and how many registered, i have searched and have not found a way to get this to happen, granted i am using this as a bus ticket manager rather than an event manager but it should still work fine.

Can anyone suggest a way to get this to happen?

thanks

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

[SOLVED] Anyway to countdown capacity? 14 years 4 months ago #8911

  • allanklar
  • allanklar's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Any help here, no one has any ideas?

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

[SOLVED] Anyway to countdown capacity? 14 years 4 months ago #8918

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
If you want to show the # of seats remaining instead of capacity, go to this file:
/components/com_dtregister/dtregister.php

Search for this in function listevents:
echo $row->max_registrations;

Replace it with:
echo ($row->max_registrations -  $row->registered );

Hope that helps :)

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

[SOLVED] Anyway to countdown capacity? 14 years 4 months ago #8921

  • allanklar
  • allanklar's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
That worked perfectly thanks so much for the help!

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

[SOLVED] Anyway to countdown capacity? 14 years 3 weeks ago #10808

  • jasonAwA
  • jasonAwA's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
Sorry to bring up an old post, but can anyone help me locate this code in 2.7?

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

  • Page:
  • 1
Time to create page: 0.178 seconds