$item->can_register stopping buttons showing

  • Dan Atrill
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 months 2 days ago #163987 by Dan Atrill
Hi,

I was trying to change the wording on the button in button_register.php when I found that buttons weren't showing. This seems to be because $item->can_register isn't set for some events. My problem is I can't see where this is set. 

I tried adding a Registration start date for the event but it didn't make any difference. What am I doing wrong?!!!

Web developer in London, England

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

More
3 months 2 days ago #163991 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic $item->can_register stopping buttons showing
Hello

That is dynamic calculated. Do you have any override which could cause the issue? Normally, if event is open for registration, $item->can_register should be true

Regards,

Tuan

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

  • Dan Atrill
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 months 2 days ago #163998 by Dan Atrill
Replied by Dan Atrill on topic $item->can_register stopping buttons showing
Thank you. I had to put a SQL query to test for additional categories and one of the variables seemed to have interfered with variables in the file.
All working now :-)

Web developer in London, England

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

More
3 months 2 days ago #163999 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic $item->can_register stopping buttons showing
OK Dan. Please continue using the extension. If you have questions or need help, please don't hesitate to ask us

Regards,

Tuan

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

Moderators: Tuan Pham Ngoc