×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Booking-fields Read - Only... Please Help....

Booking-fields Read - Only... Please Help.... 8 years 8 months ago #33796

  • Alexander Webernig
  • Alexander Webernig's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Hi all...
Iam Loading the Fields from the Joomla Registration Process for the Booking-Fields...
I want that the Customer dont can Change the Input.... So i need the Fields "Read Only"..
Maybe there is an Idea how i can Change the Code?

Booking-fields Read - Only... Please Help.... 8 years 8 months ago #33799

  • Yves Hoppe
  • Yves Hoppe's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 3519
  • Karma: 71
  • Thank you received: 556
Hi,

hmm this would be something like disabled="disabled", but that would also require code change (Always !! do a joomla template override instead of modifying Matukio files directly)

Cheers,
Yves

Booking-fields Read - Only... Please Help.... 8 years 8 months ago #33803

  • Alexander Webernig
  • Alexander Webernig's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Thanks... but Where & What ;-)))

Booking-fields Read - Only... Please Help.... 8 years 8 months ago #33804

  • Yves Hoppe
  • Yves Hoppe's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 3519
  • Karma: 71
  • Thank you received: 556
docs.joomla.org/How_to_override_the_outp...rom_the_Joomla!_core

components/com_matukio/views/book/tmpl/default.php

Probably easiest way is to just use javascript

<script type="text/javascript">
jQuery('#fieldid').attr('disabled', 'disabled');
</script>

Yves

Booking-fields Read - Only... Please Help.... 8 years 8 months ago #33806

  • Alexander Webernig
  • Alexander Webernig's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Okay....
But where to insert the Code in the Override?
Linenumber?

Booking-fields Read - Only... Please Help.... 8 years 8 months ago #33807

  • Yves Hoppe
  • Yves Hoppe's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 3519
  • Karma: 71
  • Thank you received: 556
At the end of the file, outside the php context..

Booking-fields Read - Only... Please Help.... 8 years 8 months ago #33810

  • Alexander Webernig
  • Alexander Webernig's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Hmmmm....
No Function..

<input type="hidden" name="option" value="com_matukio"/>
<input type="hidden" name="view" value="book"/>
<input type="hidden" name="controller" value="book"/>
<input type="hidden" name="task" value="book"/>
<input type="hidden" name="uid" value="<?php echo $this->uid; ?>"/>
<input type="hidden" name="steps" value="<?php echo $this->steps; ?>"/>
<input type="hidden" name="event_id" value="<?php echo $this->event->id; ?>"/>
<input type="hidden" name="catid" value="<?php echo $this->event->catid; ?>"/>
<input type="hidden" name="semid" value="<?php echo $this->event->id; ?>"/>
<input type="hidden" name="userid" value="<?php echo $this->user->id; ?>"/>
<input type="hidden" name="uuid" value="<?php echo (empty($this->uuid)) ? MatukioHelperPayment::getUuid(true) : $this->uuid; ?>"/>
<input type="hidden" name="id" value="<?php echo (empty($this->booking)) ? 0 : $this->booking->id; ?>"/>
</div>
</form>
<script type="text/javascript">
jQuery('#fieldid').attr('disabled', 'disabled');
</script>

Booking-fields Read - Only... Please Help.... 8 years 8 months ago #33811

  • Yves Hoppe
  • Yves Hoppe's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 3519
  • Karma: 71
  • Thank you received: 556
You have to change field id to the booking fields id :D -> For example #firstname

Yves

Booking-fields Read - Only... Please Help.... 8 years 8 months ago #33812

  • Alexander Webernig
  • Alexander Webernig's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
;-)

Okay, the Fields are Read Only, the Input stands there, but when i cklixk on "Booking" the Input stands not on the Next Side ;-(

Booking-fields ReadOnly - SOLVED! 8 years 8 months ago #33813

  • Alexander Webernig
  • Alexander Webernig's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Okay, found the Error...
Correct Syntax is:

<script type="text/javascript">
jQuery('#email').attr('readonly', 'readonly');
</script>

Now it Works.... You are my Hero ;-)

Booking-fields ReadOnly 8 years 8 months ago #33822

  • Alexander Webernig
  • Alexander Webernig's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
OHOH!

New Problem with that Code....
When the Customer Choose 2 (Or More Bookingnames) the Fildes are also Disabled ;-(
Any Idea to Solve that Problem?
  • Page:
  • 1
Time to create page: 0.122 seconds