- Posts: 115
- Thank you received: 0
- Support Forum
- Appointment Booking Pro - Retired
- Support ABPro 4.0.x
- Payment Quick Change - Advanced Admin
Payment Quick Change - Advanced Admin
- Noel Samuels
- Topic Author
- Offline
- Expert Boarder
-
Less
More
3 months 2 weeks ago #26574
by Noel Samuels
Payment Quick Change - Advanced Admin was created by Noel Samuels
Hello Rob, wondering if there is a way to have a Payment Quick Change drop down on the appointments lists screens (Advanced Admin) so they can also change a booking's payment status without opening the booking detail screen. Similar to the Status Quick Change which exists today.
Question: Could we change this code to reflect payment instead of status. Not sure what to change below to capture the payment status field?
File to change: /com_rsappt_pro3/views/advadmin/tmpl/default.php
<?php if($apptpro_config->status_quick_change == "No"){ ?>
<td align="center"><?php echo translated_status($row->request_status); ?></td>
<?php } else {?>
<td align=\"center\"><select id="booking_status_<?php echo $row->id_requests?>" name="booking_status_<?php echo $row->id_requests?>" style="width:auto"
onfocus="this.oldvalue = this.value;" onchange="quick_status_change('<?php echo $row->id_requests?>',this);">
<?php foreach($statuses as $status_row){ ?>
<option value="<?php echo $status_row->internal_value?>"
<?php echo ($row->request_status == $status_row->internal_value ? " selected='selected' ":"");?>
><?php echo JText::_($status_row->status)?></option>
<?php } ?>
</select>
Question: Could we change this code to reflect payment instead of status. Not sure what to change below to capture the payment status field?
File to change: /com_rsappt_pro3/views/advadmin/tmpl/default.php
<?php if($apptpro_config->status_quick_change == "No"){ ?>
<td align="center"><?php echo translated_status($row->request_status); ?></td>
<?php } else {?>
<td align=\"center\"><select id="booking_status_<?php echo $row->id_requests?>" name="booking_status_<?php echo $row->id_requests?>" style="width:auto"
onfocus="this.oldvalue = this.value;" onchange="quick_status_change('<?php echo $row->id_requests?>',this);">
<?php foreach($statuses as $status_row){ ?>
<option value="<?php echo $status_row->internal_value?>"
<?php echo ($row->request_status == $status_row->internal_value ? " selected='selected' ":"");?>
><?php echo JText::_($status_row->status)?></option>
<?php } ?>
</select>
Please Log in to join the conversation.
- Rob
-
- Offline
- Administrator
-
Less
More
- Posts: 4659
- Karma: 103
- Thank you received: 659
3 months 2 weeks ago #26575
by Rob
Replied by Rob on topic Payment Quick Change - Advanced Admin
That code is just the front end screen display.
It calls some client side JavaScript that makes an AJAX call to the server to do the actual database update.
The Javascript and back end code would all need to be changed to deal with the payment status rather than the booking status.
It calls some client side JavaScript that makes an AJAX call to the server to do the actual database update.
The Javascript and back end code would all need to be changed to deal with the payment status rather than the booking status.
Please Log in to join the conversation.
- Noel Samuels
- Topic Author
- Offline
- Expert Boarder
-
Less
More
- Posts: 115
- Thank you received: 0
3 months 2 weeks ago #26576
by Noel Samuels
Replied by Noel Samuels on topic Payment Quick Change - Advanced Admin
OK thank you Rob. Not a problem. Admin can open up the booking detail screen to change the payment status. The drop down option is so convenient to make a quick Status change.
Please Log in to join the conversation.
- Support Forum
- Appointment Booking Pro - Retired
- Support ABPro 4.0.x
- Payment Quick Change - Advanced Admin
Time to create page: 0.230 seconds